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:
37 
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;
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::interfaces::GraphicsManagerInterface * graphics
Definition: GraphicsTimer.h:54
Copyright 2012, DFKI GmbH Robotics Innovation Center.
GraphicsTimer(mars::interfaces::GraphicsManagerInterface *graphics_)