Ignore:
Timestamp:
Aug 4, 2008, 9:07:10 AM (15 years ago)
Author:
jack
Message:

Progress on height quantities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anugavis/src/height_quantity.cc

    r5502 r5598  
    1515#endif
    1616#include "height_quantity.hh"
    17 #include "sww_file.hh"
    1817
    1918using std::string;
    2019
    21 HeightQuantity::HeightQuantity(const SWWFile &sww, const string &name,
     20HeightQuantity::HeightQuantity(const string &name,
    2221                               GLdouble offset, GLdouble scale,
    2322                               GLfloat red, GLfloat green, GLfloat blue):
    2423  offset(offset), scale(scale), red(red), green(green), blue(blue), name(name),
    25   frame_number(-1), sww(sww){
     24  frame_number(-1){
    2625  GLenum glerror;
    27   this->dynamic = (sww.nc_inq_varndims_by_name(name) == 2);
    2826  this->display_list = glGenLists(1);
    2927  if((glerror = glGetError()) != GL_NO_ERROR) throw gluErrorString(glerror);
    30  
    3128}
    3229
     
    4845}
    4946
     47const string &HeightQuantity::get_name(void){
     48  return this->name;
     49}
     50
     51void HeightQuantity::set_dynamic(bool dynamic){
     52  this->dynamic = dynamic;
     53}
     54
    5055void HeightQuantity::compile(int frame){
    5156 
Note: See TracChangeset for help on using the changeset viewer.