Privacy
An open-source, flexible 3D physical simulation framework
GraphicsTimer.h
Go to the documentation of this file.
1
/*
2
* Copyright 2013 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_VIZ_GRAPHICSTIMER_H
22
#define MARS_VIZ_GRAPHICSTIMER_H
23
24
#include <QObject>
25
#include <QTimer>
26
27
#include <mars/interfaces/graphics/GraphicsManagerInterface.h>
28
29
namespace
mars
{
30
namespace
viz {
31
32
class
GraphicsTimer
:
public
QObject {
33
Q_OBJECT;
34
35
public
:
36
GraphicsTimer
(
mars::interfaces::GraphicsManagerInterface
*graphics_);
37
38
~GraphicsTimer
() {
39
graphicsTimer
->stop();
40
}
41
42
void
run
();
43
void
runOnce
();
44
void
stop
();
45
signals:
46
void
internalRun
();
47
48
public
slots:
49
void
timerEvent
(
void
);
50
void
runOnceInternal
(
void
);
51
52
private
:
53
QTimer *
graphicsTimer
;
54
mars::interfaces::GraphicsManagerInterface
*
graphics
;
55
bool
runFinished
;
56
57
};
// end of class GraphicsTimer
58
59
}
// end of namespace viz
60
}
// end of namespace mars
61
62
#endif
/* MARS_VIZ_GRAPHICSTIMER_H */
mars::viz::GraphicsTimer::graphics
mars::interfaces::GraphicsManagerInterface * graphics
Definition:
GraphicsTimer.h:54
mars::viz::GraphicsTimer::runOnceInternal
void runOnceInternal(void)
Definition:
GraphicsTimer.cpp:54
mars::viz::GraphicsTimer::run
void run()
Definition:
GraphicsTimer.cpp:37
mars::viz::GraphicsTimer::internalRun
void internalRun()
mars::viz::GraphicsTimer::~GraphicsTimer
~GraphicsTimer()
Definition:
GraphicsTimer.h:38
mars::viz::GraphicsTimer::stop
void stop()
Definition:
GraphicsTimer.cpp:41
mars::viz::GraphicsTimer
Definition:
GraphicsTimer.h:32
mars::viz::GraphicsTimer::graphicsTimer
QTimer * graphicsTimer
Definition:
GraphicsTimer.h:53
mars
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Definition:
GraphicsTimer.cpp:25
mars::viz::GraphicsTimer::runOnce
void runOnce()
Definition:
GraphicsTimer.cpp:46
mars::viz::GraphicsTimer::runFinished
bool runFinished
Definition:
GraphicsTimer.h:55
mars::interfaces::GraphicsManagerInterface
Definition:
GraphicsManagerInterface.h:54
mars::viz::GraphicsTimer::GraphicsTimer
GraphicsTimer(mars::interfaces::GraphicsManagerInterface *graphics_)
Definition:
GraphicsTimer.cpp:29
mars::viz::GraphicsTimer::timerEvent
void timerEvent(void)
Definition:
GraphicsTimer.cpp:59
viz
src
GraphicsTimer.h
Generated on Fri May 25 2018 11:46:19 by
1.8.13