sources:


website:
more info here


screenshot:
studies/grafik2/Computergrafik-Code3/Aufgabe7/cginterpolation.h
download file

  1 //
  2 // Computergraphik II
  3 // Prof. Dr. Juergen Doellner
  4 // Wintersemester 2001/02
  5 //
  6 // Rahmenprogramm zu Aufgabenzettel 3
  7 //
  8
  9 #ifndef CG_INTERPOLATION_H
 10 #define CG_INTERPOLATION_H
 11
 12 #include "cgapplication.h"
 13 #include "vector.h"
 14
 15 class CGInterpolation : public CGApplication {
 16 public:
 17     CGInterpolation();
 18     virtual ~CGInterpolation();
 19
 20     // Ueberschreibe alle diese Ereignisse:
 21     virtual void onInit();
 22     virtual void onDraw();       
 23     virtual void onIdle();
 24     virtual void onKey(unsigned char key);   
 25     virtual void onSize(unsigned int newWidth, unsigned int newHeight);
 26
 27     // value Methode
 28     unsigned char value(int x, int z) const;
 29    
 30 private:
 31
 32     void drawScene();
 33     void loadGeometry();
 34     void drawObject(const Vector& ref);
 35
 36     int width_;
 37     int height_;
 38     double zoom_;
 39     bool run_;   
 40     bool culling_;
 41
 42     unsigned int max_;
 43     unsigned int counter_;
 44     Vector ref_;
 45     Vector* list_;
 46 };
 47
 48 #endif // CG_INTERPOLATION_H
 49
 50
 51