OpenANN  1.1.0
An open source library for artificial neural networks.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DoublePoleBalancingVisualization.h
Go to the documentation of this file.
1 #ifndef DOUBLEPOLEBALANCINGVISUALIZATION_H_
2 #define DOUBLEPOLEBALANCINGVISUALIZATION_H_
3 
4 #include <QGLWidget>
5 
6 class DoublePoleBalancingVisualization : public QGLWidget
7 {
8  Q_OBJECT
9  int width, height;
10  bool singlePole, fullyObservable, alphaBetaFilter, doubleExponentialSmoothing;
11  double position, angle1, angle2, force;
12  int pause;
13 
14 public:
15  DoublePoleBalancingVisualization(bool singlePole, bool fullyObservable,
16  bool alphaBetaFilter, bool doubleExponentialSmoothing,
17  QWidget* parent = 0, const QGLWidget* shareWidget = 0,
18  Qt::WindowFlags f = 0);
19 
20 protected:
21  virtual void initializeGL();
22  virtual void resizeGL(int width, int height);
23  virtual void paintGL();
24  virtual void keyPressEvent(QKeyEvent* keyEvent);
25  void run();
26 };
27 
28 #endif // DOUBLEPOLEBALANCINGVISUALIZATION_H_