GLVis  v3.4
Accurate and flexible finite element visualization
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
VisualizationSceneScalarData Class Referenceabstract

#include <vsdata.hpp>

Inheritance diagram for VisualizationSceneScalarData:
[legend]
Collaboration diagram for VisualizationSceneScalarData:
[legend]

Public Member Functions

 VisualizationSceneScalarData ()
 
 VisualizationSceneScalarData (Mesh &m, Vector &s)
 
virtual ~VisualizationSceneScalarData ()
 
virtual void SetNewScalingFromBox ()
 
virtual void FindNewBox (bool prepare)=0
 
virtual void FindNewValueRange (bool prepare)=0
 
virtual void FindNewBoxAndValueRange (bool prepare)
 
virtual void FindMeshBox (bool prepare)
 
void DoAutoscale (bool prepare)
 
void DoAutoscaleValue (bool prepare)
 
virtual void Prepare ()=0
 
virtual void PrepareLines ()=0
 
void UpdateBoundingBox ()
 
virtual void EventUpdateColors ()
 
virtual void UpdateLevelLines ()=0
 
virtual void UpdateValueRange (bool prepare)=0
 
void SetValueRange (double, double)
 
virtual void SetShading (int, bool)=0
 
virtual void SetRefineFactors (int, int)=0
 
void SetAutoRefineLimits (int max_ref, int max_surf_elem)
 
virtual void AutoRefine ()=0
 
virtual void ToggleAttributes (Array< int > &attr_list)=0
 
virtual void PrintState ()
 
Mesh * GetMesh ()
 
void DrawColorBar (double minval, double maxval, Array< double > *level=NULL, Array< double > *levels=NULL)
 
void DrawCaption ()
 
void DrawCoordinateCross ()
 
double & GetMinV ()
 
double & GetMaxV ()
 
void SetLevelLines (double min, double max, int n, int adj=1)
 
void Arrow (double px, double py, double pz, double vx, double vy, double vz, double length, double cone_scale=0.075)
 
void Arrow2 (double px, double py, double pz, double vx, double vy, double vz, double length, double cone_scale=0.075)
 
void Arrow3 (double px, double py, double pz, double vx, double vy, double vz, double length, double cone_scale=0.075)
 
void DrawPolygonLevelLines (double *point, int n, Array< double > &level, bool log_vals)
 
void ToggleLight ()
 
void ToggleDrawColorbar ()
 
void UpdateCaption ()
 
void SetAxisLabels (const char *a_x, const char *a_y, const char *a_z)
 
void PrepareAxes ()
 
void ToggleDrawAxes ()
 
void ToggleScaling ()
 
virtual void ToggleLogscale (bool print)
 
void ToggleRuler ()
 
void RulerPosition ()
 
void DrawRuler (bool log_z=false)
 
void ToggleTexture ()
 
void SetAutoscale (int _autoscale)
 
int GetAutoscale () const
 
void ShrinkPoints (DenseMatrix &pointmat, int i, int fn, int di)
 Shrink the set of points towards attributes centers of gravity. More...
 
void ComputeBdrAttrCenter ()
 Compute the center of gravity for each boundary attribute. More...
 
void ComputeElemAttrCenter ()
 Compute the center of gravity for each element attribute. More...
 
- Public Member Functions inherited from VisualizationScene
 VisualizationScene ()
 
virtual ~VisualizationScene ()
 
virtual void Draw ()=0
 
void SetView (double theta, double phi)
 
void Zoom (double factor)
 
void Rotate (double angle, double x, double y, double z)
 
void PreRotate (double angle, double x, double y, double z)
 
void Rotate (double angley, double anglex)
 
void Translate (double x, double y, double z=0.0)
 
void Scale (double s)
 
void Scale (double s1, double s2, double s3)
 
void CenterObject ()
 
void CenterObject2D ()
 
void ModelView ()
 

Public Attributes

PlaneCuttingPlane
 
int light
 
int key_r_state
 
double shrink
 
double shrinkmat
 Shrink factor with respect to the element (material) attributes centers. More...
 
DenseMatrix bdrc
 
DenseMatrix matc
 
- Public Attributes inherited from VisualizationScene
int spinning
 
int OrthogonalProjection
 
int print
 
int movie
 
double ViewAngle
 
double ViewScale
 
double ViewCenterX
 
double ViewCenterY
 
Camera cam
 
double x [2]
 Bounding box. More...
 
double y [2]
 
double z [2]
 
double rotmat [16]
 
double translmat [16]
 
int view
 This is set by SetVisualizationScene. More...
 

Protected Member Functions

void Init ()
 
bool LogscaleRange ()
 
void PrintLogscale (bool warn)
 
void SetLogA ()
 
double _ULogVal (const double &u)
 
double ULogVal (const double &u)
 
double LogUVal (const double &z)
 
double _LogVal_ (const double &z)
 
double _LogVal (const double &z)
 
double LogVal (const double &z, const bool &log_val)
 
double LogVal (const double &z)
 
void FixValueRange ()
 

Protected Attributes

Mesh * mesh
 
Vector * sol
 
double minv
 
double maxv
 
std::string a_label_x
 
std::string a_label_y
 
std::string a_label_z
 
int scaling
 
int colorbar
 
int drawaxes
 
int axeslist
 
int auto_ref_max
 
int auto_ref_max_surf_elem
 
int arrow_type
 
int arrow_scaling_type
 
int nl
 
Array< double > level
 
int ruler_on
 
double ruler_x
 
double ruler_y
 
double ruler_z
 
int autoscale
 
bool logscale
 
double log_a
 
double unit_a
 
- Protected Attributes inherited from VisualizationScene
double xscale
 
double yscale
 
double zscale
 

Detailed Description

Definition at line 52 of file vsdata.hpp.

Constructor & Destructor Documentation

VisualizationSceneScalarData::VisualizationSceneScalarData ( )
inline

Definition at line 125 of file vsdata.hpp.

VisualizationSceneScalarData::VisualizationSceneScalarData ( Mesh &  m,
Vector &  s 
)

Definition at line 1198 of file vsdata.cpp.

VisualizationSceneScalarData::~VisualizationSceneScalarData ( )
virtual

Definition at line 1314 of file vsdata.cpp.

Member Function Documentation

double VisualizationSceneScalarData::_LogVal ( const double &  z)
inlineprotected

Definition at line 107 of file vsdata.hpp.

double VisualizationSceneScalarData::_LogVal_ ( const double &  z)
inlineprotected

Definition at line 106 of file vsdata.hpp.

double VisualizationSceneScalarData::_ULogVal ( const double &  u)
inlineprotected

Definition at line 98 of file vsdata.hpp.

void VisualizationSceneScalarData::Arrow ( double  px,
double  py,
double  pz,
double  vx,
double  vy,
double  vz,
double  length,
double  cone_scale = 0.075 
)

Definition at line 166 of file vsdata.cpp.

void VisualizationSceneScalarData::Arrow2 ( double  px,
double  py,
double  pz,
double  vx,
double  vy,
double  vz,
double  length,
double  cone_scale = 0.075 
)

Definition at line 135 of file vsdata.cpp.

void VisualizationSceneScalarData::Arrow3 ( double  px,
double  py,
double  pz,
double  vx,
double  vy,
double  vz,
double  length,
double  cone_scale = 0.075 
)

Definition at line 79 of file vsdata.cpp.

virtual void VisualizationSceneScalarData::AutoRefine ( )
pure virtual
void VisualizationSceneScalarData::ComputeBdrAttrCenter ( )

Compute the center of gravity for each boundary attribute.

Definition at line 1658 of file vsdata.cpp.

void VisualizationSceneScalarData::ComputeElemAttrCenter ( )

Compute the center of gravity for each element attribute.

Definition at line 1687 of file vsdata.cpp.

void VisualizationSceneScalarData::DoAutoscale ( bool  prepare)

Definition at line 49 of file vsdata.cpp.

void VisualizationSceneScalarData::DoAutoscaleValue ( bool  prepare)

Definition at line 65 of file vsdata.cpp.

void VisualizationSceneScalarData::DrawCaption ( )

Definition at line 533 of file vsdata.cpp.

void VisualizationSceneScalarData::DrawColorBar ( double  minval,
double  maxval,
Array< double > *  level = NULL,
Array< double > *  levels = NULL 
)

Definition at line 292 of file vsdata.cpp.

void VisualizationSceneScalarData::DrawCoordinateCross ( )

Definition at line 596 of file vsdata.cpp.

void VisualizationSceneScalarData::DrawPolygonLevelLines ( double *  point,
int  n,
Array< double > &  level,
bool  log_vals 
)

Definition at line 1488 of file vsdata.cpp.

void VisualizationSceneScalarData::DrawRuler ( bool  log_z = false)

Definition at line 1096 of file vsdata.cpp.

virtual void VisualizationSceneScalarData::EventUpdateColors ( )
inlinevirtual
virtual void VisualizationSceneScalarData::FindMeshBox ( bool  prepare)
inlinevirtual

Reimplemented in VisualizationSceneSolution.

Definition at line 149 of file vsdata.hpp.

virtual void VisualizationSceneScalarData::FindNewBox ( bool  prepare)
pure virtual
virtual void VisualizationSceneScalarData::FindNewBoxAndValueRange ( bool  prepare)
inlinevirtual

Reimplemented in VisualizationSceneSolution.

Definition at line 145 of file vsdata.hpp.

virtual void VisualizationSceneScalarData::FindNewValueRange ( bool  prepare)
pure virtual
void VisualizationSceneScalarData::FixValueRange ( )
protected

Definition at line 29 of file vsdata.cpp.

int VisualizationSceneScalarData::GetAutoscale ( ) const
inline

Definition at line 250 of file vsdata.hpp.

double& VisualizationSceneScalarData::GetMaxV ( )
inline

Definition at line 190 of file vsdata.hpp.

Mesh* VisualizationSceneScalarData::GetMesh ( )
inline

Definition at line 181 of file vsdata.hpp.

double& VisualizationSceneScalarData::GetMinV ( )
inline

Definition at line 189 of file vsdata.hpp.

void VisualizationSceneScalarData::Init ( )
protected

Definition at line 1208 of file vsdata.cpp.

bool VisualizationSceneScalarData::LogscaleRange ( )
inlineprotected

Definition at line 83 of file vsdata.hpp.

double VisualizationSceneScalarData::LogUVal ( const double &  z)
inlineprotected

Definition at line 101 of file vsdata.hpp.

double VisualizationSceneScalarData::LogVal ( const double &  z,
const bool &  log_val 
)
inlineprotected

Definition at line 109 of file vsdata.hpp.

double VisualizationSceneScalarData::LogVal ( const double &  z)
inlineprotected

Definition at line 111 of file vsdata.hpp.

virtual void VisualizationSceneScalarData::Prepare ( )
pure virtual
void VisualizationSceneScalarData::PrepareAxes ( )

Definition at line 1373 of file vsdata.cpp.

virtual void VisualizationSceneScalarData::PrepareLines ( )
pure virtual
void VisualizationSceneScalarData::PrintLogscale ( bool  warn)
protected

Definition at line 1026 of file vsdata.cpp.

void VisualizationSceneScalarData::PrintState ( )
virtual

Definition at line 1572 of file vsdata.cpp.

void VisualizationSceneScalarData::RulerPosition ( )

Definition at line 1061 of file vsdata.cpp.

void VisualizationSceneScalarData::SetAutoRefineLimits ( int  max_ref,
int  max_surf_elem 
)
inline

Definition at line 171 of file vsdata.hpp.

void VisualizationSceneScalarData::SetAutoscale ( int  _autoscale)

Definition at line 1189 of file vsdata.cpp.

void VisualizationSceneScalarData::SetAxisLabels ( const char *  a_x,
const char *  a_y,
const char *  a_z 
)

Definition at line 1364 of file vsdata.cpp.

void VisualizationSceneScalarData::SetLevelLines ( double  min,
double  max,
int  n,
int  adj = 1 
)

Definition at line 1531 of file vsdata.cpp.

void VisualizationSceneScalarData::SetLogA ( )
inlineprotected

Definition at line 87 of file vsdata.hpp.

void VisualizationSceneScalarData::SetNewScalingFromBox ( )
virtual

Reimplemented in VisualizationSceneSolution.

Definition at line 1320 of file vsdata.cpp.

virtual void VisualizationSceneScalarData::SetRefineFactors ( int  ,
int   
)
pure virtual
virtual void VisualizationSceneScalarData::SetShading ( int  ,
bool   
)
pure virtual
void VisualizationSceneScalarData::SetValueRange ( double  min,
double  max 
)

Definition at line 1356 of file vsdata.cpp.

void VisualizationSceneScalarData::ShrinkPoints ( DenseMatrix &  pointmat,
int  i,
int  fn,
int  di 
)

Shrink the set of points towards attributes centers of gravity.

Definition at line 1592 of file vsdata.cpp.

virtual void VisualizationSceneScalarData::ToggleAttributes ( Array< int > &  attr_list)
pure virtual
void VisualizationSceneScalarData::ToggleDrawAxes ( )
inline

Definition at line 229 of file vsdata.hpp.

void VisualizationSceneScalarData::ToggleDrawColorbar ( )
inline

Definition at line 211 of file vsdata.hpp.

void VisualizationSceneScalarData::ToggleLight ( )
inline

Definition at line 209 of file vsdata.hpp.

void VisualizationSceneScalarData::ToggleLogscale ( bool  print)
virtual

Reimplemented in VisualizationSceneSolution.

Definition at line 1035 of file vsdata.cpp.

void VisualizationSceneScalarData::ToggleRuler ( )

Definition at line 1056 of file vsdata.cpp.

void VisualizationSceneScalarData::ToggleScaling ( )
inline

Definition at line 238 of file vsdata.hpp.

void VisualizationSceneScalarData::ToggleTexture ( )

Definition at line 1176 of file vsdata.cpp.

double VisualizationSceneScalarData::ULogVal ( const double &  u)
inlineprotected

Definition at line 99 of file vsdata.hpp.

void VisualizationSceneScalarData::UpdateBoundingBox ( )
inline

Definition at line 163 of file vsdata.hpp.

void VisualizationSceneScalarData::UpdateCaption ( )
inline

Definition at line 220 of file vsdata.hpp.

virtual void VisualizationSceneScalarData::UpdateLevelLines ( )
pure virtual
virtual void VisualizationSceneScalarData::UpdateValueRange ( bool  prepare)
pure virtual

Member Data Documentation

std::string VisualizationSceneScalarData::a_label_x
protected

Definition at line 60 of file vsdata.hpp.

std::string VisualizationSceneScalarData::a_label_y
protected

Definition at line 60 of file vsdata.hpp.

std::string VisualizationSceneScalarData::a_label_z
protected

Definition at line 60 of file vsdata.hpp.

int VisualizationSceneScalarData::arrow_scaling_type
protected

Definition at line 67 of file vsdata.hpp.

int VisualizationSceneScalarData::arrow_type
protected

Definition at line 67 of file vsdata.hpp.

int VisualizationSceneScalarData::auto_ref_max
protected

Definition at line 63 of file vsdata.hpp.

int VisualizationSceneScalarData::auto_ref_max_surf_elem
protected

Definition at line 63 of file vsdata.hpp.

int VisualizationSceneScalarData::autoscale
protected

Definition at line 80 of file vsdata.hpp.

int VisualizationSceneScalarData::axeslist
protected

Definition at line 62 of file vsdata.hpp.

DenseMatrix VisualizationSceneScalarData::bdrc

Definition at line 255 of file vsdata.hpp.

int VisualizationSceneScalarData::colorbar
protected

Definition at line 62 of file vsdata.hpp.

Plane* VisualizationSceneScalarData::CuttingPlane

Definition at line 116 of file vsdata.hpp.

int VisualizationSceneScalarData::drawaxes
protected

Definition at line 62 of file vsdata.hpp.

int VisualizationSceneScalarData::key_r_state

Definition at line 118 of file vsdata.hpp.

Array<double> VisualizationSceneScalarData::level
protected

Definition at line 70 of file vsdata.hpp.

int VisualizationSceneScalarData::light

Definition at line 117 of file vsdata.hpp.

double VisualizationSceneScalarData::log_a
protected

Definition at line 86 of file vsdata.hpp.

bool VisualizationSceneScalarData::logscale
protected

Definition at line 82 of file vsdata.hpp.

DenseMatrix VisualizationSceneScalarData::matc

Definition at line 255 of file vsdata.hpp.

double VisualizationSceneScalarData::maxv
protected

Definition at line 58 of file vsdata.hpp.

Mesh* VisualizationSceneScalarData::mesh
protected

Definition at line 55 of file vsdata.hpp.

double VisualizationSceneScalarData::minv
protected

Definition at line 58 of file vsdata.hpp.

int VisualizationSceneScalarData::nl
protected

Definition at line 69 of file vsdata.hpp.

int VisualizationSceneScalarData::ruler_on
protected

Definition at line 72 of file vsdata.hpp.

double VisualizationSceneScalarData::ruler_x
protected

Definition at line 73 of file vsdata.hpp.

double VisualizationSceneScalarData::ruler_y
protected

Definition at line 73 of file vsdata.hpp.

double VisualizationSceneScalarData::ruler_z
protected

Definition at line 73 of file vsdata.hpp.

int VisualizationSceneScalarData::scaling
protected

Definition at line 62 of file vsdata.hpp.

double VisualizationSceneScalarData::shrink

Shrink factor with respect to the center of each element (2D) or the center of each boundary attribute (3D)

Definition at line 121 of file vsdata.hpp.

double VisualizationSceneScalarData::shrinkmat

Shrink factor with respect to the element (material) attributes centers.

Definition at line 123 of file vsdata.hpp.

Vector* VisualizationSceneScalarData::sol
protected

Definition at line 56 of file vsdata.hpp.

double VisualizationSceneScalarData::unit_a
protected

Definition at line 86 of file vsdata.hpp.


The documentation for this class was generated from the following files: