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:
39 
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;
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::interfaces::SimulatorInterface * sim
Definition: GraphicsTimer.h:57
GraphicsTimer(mars::interfaces::GraphicsManagerInterface *graphics_, mars::interfaces::SimulatorInterface *sim_)
Copyright 2012, DFKI GmbH Robotics Innovation Center.
mars::interfaces::GraphicsManagerInterface * graphics
Definition: GraphicsTimer.h:56