Changeset 5598 for anuga_work/development/anugavis/src/height_quantity.cc
- Timestamp:
- Aug 4, 2008, 9:07:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anugavis/src/height_quantity.cc
r5502 r5598 15 15 #endif 16 16 #include "height_quantity.hh" 17 #include "sww_file.hh"18 17 19 18 using std::string; 20 19 21 HeightQuantity::HeightQuantity(const SWWFile &sww, conststring &name,20 HeightQuantity::HeightQuantity(const string &name, 22 21 GLdouble offset, GLdouble scale, 23 22 GLfloat red, GLfloat green, GLfloat blue): 24 23 offset(offset), scale(scale), red(red), green(green), blue(blue), name(name), 25 frame_number(-1) , sww(sww){24 frame_number(-1){ 26 25 GLenum glerror; 27 this->dynamic = (sww.nc_inq_varndims_by_name(name) == 2);28 26 this->display_list = glGenLists(1); 29 27 if((glerror = glGetError()) != GL_NO_ERROR) throw gluErrorString(glerror); 30 31 28 } 32 29 … … 48 45 } 49 46 47 const string &HeightQuantity::get_name(void){ 48 return this->name; 49 } 50 51 void HeightQuantity::set_dynamic(bool dynamic){ 52 this->dynamic = dynamic; 53 } 54 50 55 void HeightQuantity::compile(int frame){ 51 56
Note: See TracChangeset
for help on using the changeset viewer.