source:
anuga_work/development/anugavis/src/anugavis.hh
@
5685
Last change on this file since 5685 was 5636, checked in by , 17 years ago | |
---|---|
File size: 823 bytes |
Rev | Line | |
---|---|---|
[5487] | 1 | #ifndef ANUGAVIS_HH |
2 | #define ANUGAVIS_HH | |
3 | ||
4 | /* The main controller object. */ | |
5 | ||
[5598] | 6 | #include <list> |
[5487] | 7 | #include <string> |
[5600] | 8 | #include <boost/shared_ptr.hpp> |
[5487] | 9 | #include <SDL.h> |
[5598] | 10 | #include "height_quantity.hh" |
[5488] | 11 | #include "sww_file.hh" |
[5636] | 12 | #include "vector.hh" |
[5487] | 13 | |
[5600] | 14 | using boost::shared_ptr; |
[5598] | 15 | using std::list; |
[5487] | 16 | using std::string; |
17 | ||
18 | class AnugaVis{ | |
19 | public: | |
20 | AnugaVis(const string &sww_file, int width, int height); | |
21 | ~AnugaVis(void); | |
[5600] | 22 | void add_HeightQuantity(shared_ptr<HeightQuantity> &height); |
[5598] | 23 | void run(void); |
[5487] | 24 | private: |
[5636] | 25 | void init_camera(void); |
[5487] | 26 | void init_SDL(int width, int height); |
27 | void init_OpenGL(int width, int height); | |
[5636] | 28 | bool step(void); |
29 | Vector eye; | |
30 | Vector focus; | |
31 | int frame; | |
32 | list<shared_ptr<HeightQuantity> > heights; | |
33 | bool paused; | |
[5487] | 34 | SDL_Surface *screen; |
[5600] | 35 | shared_ptr<SWWFile> sww_file; |
[5487] | 36 | }; |
37 | ||
38 | #endif |
Note: See TracBrowser
for help on using the repository browser.