1 //
2 // Computergraphik I
3 // Prof. Dr. Juergen Doellner
4 // Sommersemester 2001
5 //
6 // Rahmenprogramm zu Aufgabenzettel 7
7 //
8
9 #ifndef CG_MULTIVIEW_H
10 #define CG_MULTIVIEW_H
11
12 #include "cgapplication.h"
13
14 class CGMultiview : public CGApplication {
15 public:
16 CGMultiview();
17 virtual ~CGMultiview();
18
19 // Ueberschreibe alle diese Ereignisse:
20 virtual void onInit();
21 virtual void onDraw();
22 virtual void onIdle();
23 virtual void onDrag(double dx, double dy);
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 void drawScene();
32
33 int width_;
34 int height_;
35 double mainzoom_;
36 double zoomxy_;
37 double zoomxz_;
38 double zoomyz_;
39 bool mainfilled_;
40 bool childfilled_;
41 bool run_;
42 double rotate_;
43 double rotate2_;
44 };
45
46 #endif // CG_HeightField_H
47
48
49