sources:
attribute.cpp (1.1k)
attribute.h (1.5k)
cgapplication.cpp (4.1k)
cgapplication.h (4.8k)
cgrobot.cpp (7.9k)
cgrobot.h (716 bytes)
node.cpp (2.4k)
node.h (2.3k)
shape.cpp (3.2k)
shape.h (966 bytes)
transformation.cpp (2.9k)
transformation.h (2.4k)
vector.cpp (1.4k)
vector.h (5.3k)


website:
more info here


screenshot:
studies/grafik/Computergrafik-Code8/cgrobot.h
download file

  1 // Computergraphik I
  2 // Prof. Dr. Juergen Doellner
  3 // Sommersemester 2001
  4 //
  5 // Rahmenprogramm fuer Aufgabenzettel 8
  6
  7 #ifndef CGROBOT_H
  8 #define CGROBOT_H
  9
 10 #include "cgapplication.h"
 11 #include "node.h"
 12 #include "transformation.h"
 13
 14 class CGRobot : public CGApplication {
 15 public:
 16     CGRobot();
 17
 18     virtual void onInit();
 19     virtual void onDraw();
 20     virtual void onSize(unsigned int newWidth, unsigned int newHeight);
 21
 22     virtual void onKey(unsigned char key);
 23     virtual void onTimer();
 24
 25 private:
 26     Node* rootNode_;
 27
 28     bool pause_;
 29     bool constructed_;
 30     bool cameraBezier_;
 31
 32     Camera*   camera_;
 33     Rotation* fingerRotation_;
 34     Rotation* armRotation_;
 35     Color*      sensorColor_;
 36 };
 37
 38 #endif // CGROBOT_H
 39
 40