Privacy
An open-source, flexible 3D physical simulation framework
GraphicsTimer.h
Go to the documentation of this file.
1
/*
2
* Copyright 2011, 2012 DFKI GmbH Robotics Innovation Center
3
*
4
* This file is part of the MARS simulation framework.
5
*
6
* MARS is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License
8
* as published by the Free Software Foundation, either version 3
9
* of the License, or (at your option) any later version.
10
*
11
* MARS is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with MARS. If not, see <http://www.gnu.org/licenses/>.
18
*
19
*/
20
21
#ifndef MARS_APP_GRAPHICSTIMER_H
22
#define MARS_APP_GRAPHICSTIMER_H
23
24
#include <QObject>
25
#include <QTimer>
26
27
#include <mars/interfaces/graphics/GraphicsManagerInterface.h>
28
#include <mars/interfaces/sim/SimulatorInterface.h>
29
30
namespace
mars
{
31
namespace
app {
32
33
class
GraphicsTimer
:
public
QObject {
34
Q_OBJECT;
35
36
public
:
37
GraphicsTimer
(
mars::interfaces::GraphicsManagerInterface
*graphics_,
38
mars::interfaces::SimulatorInterface
*sim_);
39
40
~GraphicsTimer
() {
41
graphicsTimer
->stop();
42
}
43
44
void
run
();
45
void
runOnce
();
46
void
stop
();
47
signals:
48
void
internalRun
();
49
50
public
slots:
51
void
timerEvent
(
void
);
52
void
runOnceInternal
(
void
);
53
54
private
:
55
QTimer *
graphicsTimer
;
56
mars::interfaces::GraphicsManagerInterface
*
graphics
;
57
mars::interfaces::SimulatorInterface
*
sim
;
58
bool
runFinished
;
59
60
};
// end of class GraphicsTimer
61
62
}
// end of namespace app
63
}
// end of namespace mars
64
65
#endif
/* MARS_APP_GRAPHICSTIMER_H */
mars::app::GraphicsTimer::graphicsTimer
QTimer * graphicsTimer
Definition:
GraphicsTimer.h:55
mars::app::GraphicsTimer::sim
mars::interfaces::SimulatorInterface * sim
Definition:
GraphicsTimer.h:57
mars::app::GraphicsTimer::stop
void stop()
Definition:
GraphicsTimer.cpp:49
mars::app::GraphicsTimer::runOnceInternal
void runOnceInternal(void)
Definition:
GraphicsTimer.cpp:62
mars::app::GraphicsTimer::~GraphicsTimer
~GraphicsTimer()
Definition:
GraphicsTimer.h:40
mars::app::GraphicsTimer::GraphicsTimer
GraphicsTimer(mars::interfaces::GraphicsManagerInterface *graphics_, mars::interfaces::SimulatorInterface *sim_)
Definition:
GraphicsTimer.cpp:31
mars
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Definition:
GraphicsTimer.cpp:25
mars::app::GraphicsTimer::timerEvent
void timerEvent(void)
Definition:
GraphicsTimer.cpp:67
mars::app::GraphicsTimer
Definition:
GraphicsTimer.h:33
mars::interfaces::GraphicsManagerInterface
Definition:
GraphicsManagerInterface.h:54
mars::app::GraphicsTimer::run
void run()
Definition:
GraphicsTimer.cpp:40
mars::app::GraphicsTimer::runFinished
bool runFinished
Definition:
GraphicsTimer.h:58
mars::app::GraphicsTimer::graphics
mars::interfaces::GraphicsManagerInterface * graphics
Definition:
GraphicsTimer.h:56
mars::app::GraphicsTimer::runOnce
void runOnce()
Definition:
GraphicsTimer.cpp:54
mars::interfaces::SimulatorInterface
Definition:
SimulatorInterface.h:50
mars::app::GraphicsTimer::internalRun
void internalRun()
app
src
GraphicsTimer.h
Generated on Fri May 25 2018 11:46:19 by
1.8.13