HLIBpro  2.0
Public Member Functions | List of all members
TGridVis Class Referenceabstract

Base class for grid visualisation.

#include <TGridVis.hh>

Inheritance diagram for TGridVis:
TPSGridVis TVRMLGridVis TVTKGridVis

Public Member Functions

virtual void print (const TGrid *grid, const std::string &filename) const =0
 print grid to file filename
 
virtual void print (const TGrid *grid, const TFnSpace *fnspace, const TVector *vec, const std::string &filename) const =0
 
void set_func_value_interval (const double minval, const double maxval)
 
double min_func_value () const
 access function value interval
 
void set_colourmap (const std::string &cmap)
 set colour map
 
std::string colourmap () const
 return name of colourmap
 

Member Function Documentation

virtual void print ( const TGrid *  grid,
const TFnSpace *  fnspace,
const TVector vec,
const std::string &  filename 
) const
pure virtual

print grid to file filename with colours according to values in vector vec which holds coefficients for function in fnspace

Implemented in TVTKGridVis, TVRMLGridVis, and TPSGridVis.

void set_func_value_interval ( const double  minval,
const double  maxval 
)

set value interval for grid function visualisation

  • colour is chosen based function value and position in interval
  • if actual function value is out of interval, value is clipped