Line | |
---|
1 | #ifndef ANUGAVIS_HH |
---|
2 | #define ANUGAVIS_HH |
---|
3 | |
---|
4 | /* The main controller object. */ |
---|
5 | |
---|
6 | #include <list> |
---|
7 | #include <string> |
---|
8 | #include <boost/shared_ptr.hpp> |
---|
9 | #include <SDL.h> |
---|
10 | #include "height_quantity.hh" |
---|
11 | #include "sww_file.hh" |
---|
12 | #include "vector.hh" |
---|
13 | |
---|
14 | using boost::shared_ptr; |
---|
15 | using std::list; |
---|
16 | using std::string; |
---|
17 | |
---|
18 | class AnugaVis{ |
---|
19 | public: |
---|
20 | AnugaVis(const string &sww_file, int width, int height); |
---|
21 | ~AnugaVis(void); |
---|
22 | void add_HeightQuantity(shared_ptr<HeightQuantity> &height); |
---|
23 | void run(void); |
---|
24 | private: |
---|
25 | void init_camera(void); |
---|
26 | void init_SDL(int width, int height); |
---|
27 | void init_OpenGL(int width, int height); |
---|
28 | bool step(void); |
---|
29 | Vector eye; |
---|
30 | Vector focus; |
---|
31 | int frame; |
---|
32 | list<shared_ptr<HeightQuantity> > heights; |
---|
33 | bool paused; |
---|
34 | SDL_Surface *screen; |
---|
35 | shared_ptr<SWWFile> sww_file; |
---|
36 | }; |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.