source: anuga_work/development/anugavis/src/height_quantity.hh @ 5502

Last change on this file since 5502 was 5502, checked in by jack, 14 years ago

More work on height quantities.

File size: 897 bytes
Line 
1#ifndef HEIGHT_QUANTITY_HH
2#define HEIGHT_QUANTITY_HH
3
4/* An individual height quantity to render. */
5
6#ifdef HAVE_CONFIG_H
7#  include "config.h"
8#endif
9
10#include <string>
11
12#ifdef HAVE_GL_GL_H
13#  include <GL/gl.h>
14#elif HAVE_OPENGL_GL_H
15#  include <OpenGL/gl.h>
16#endif
17#include "sww_file.hh"
18
19using std::string;
20
21class HeightQuantity {
22public:
23  HeightQuantity(const SWWFile &sww, const string &name,
24                 const GLdouble offset, GLdouble scale,
25                 GLfloat red, GLfloat green, GLfloat blue);
26  ~HeightQuantity(void);
27  void draw(int frame);
28  GLdouble offset;
29  GLdouble scale;
30  GLfloat red;
31  GLfloat green;
32  GLfloat blue;
33private:
34  void compile(int frame);
35  string name;
36  int frame_number; /* The most recently drawn frame (i.e., the one
37                       cached in the display list. */
38  bool dynamic;
39  GLuint display_list;
40  const SWWFile &sww;
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.