source: trunk/anuga_work/development/anugavis/src/anugavis.hh @ 7924

Last change on this file since 7924 was 5636, checked in by jack, 17 years ago

Almost ready to run.

File size: 823 bytes
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
14using boost::shared_ptr;
15using std::list;
16using std::string;
17
18class AnugaVis{
19public:
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);
24private:
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.