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

#include <vssolution.hpp>

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

Public Member Functions

 VisualizationSceneSolution ()
 
 VisualizationSceneSolution (Mesh &m, Vector &s, Vector *normals=NULL)
 
virtual ~VisualizationSceneSolution ()
 
void SetGridFunction (GridFunction &u)
 
void NewMeshAndSolution (Mesh *new_m, Vector *new_sol, GridFunction *new_u=NULL)
 
virtual void SetNewScalingFromBox ()
 
virtual void FindNewBox (bool prepare)
 
virtual void FindNewValueRange (bool prepare)
 
virtual void FindNewBoxAndValueRange (bool prepare)
 
virtual void FindMeshBox (bool prepare)
 
virtual void ToggleLogscale (bool print)
 
virtual void UpdateLevelLines ()
 
virtual void UpdateValueRange (bool prepare)
 
void PrepareWithNormals ()
 
void PrepareFlat ()
 
void PrepareFlat2 ()
 
virtual void PrepareLines ()
 
void PrepareLines2 ()
 
void PrepareLines3 ()
 
virtual void Prepare ()
 
void PrepareLevelCurves ()
 
void PrepareLevelCurves2 ()
 
void PrepareBoundary ()
 
void PrepareNumbering ()
 
void PrepareElementNumbering ()
 
void PrepareElementNumbering1 ()
 
void PrepareElementNumbering2 ()
 
void PrepareVertexNumbering ()
 
void PrepareVertexNumbering1 ()
 
void PrepareVertexNumbering2 ()
 
void PrepareCP ()
 
virtual void Draw ()
 
void ToggleDrawBdr ()
 
virtual void ToggleDrawElems ()
 
void ToggleDrawMesh ()
 
void ToggleDrawNumberings ()
 
virtual void SetShading (int, bool)
 
void ToggleShading ()
 
void ToggleDrawCP ()
 
virtual void SetRefineFactors (int, int)
 
virtual void AutoRefine ()
 
virtual void ToggleAttributes (Array< int > &attr_list)
 
- Public Member Functions inherited from VisualizationSceneScalarData
 VisualizationSceneScalarData ()
 
 VisualizationSceneScalarData (Mesh &m, Vector &s)
 
virtual ~VisualizationSceneScalarData ()
 
void DoAutoscale (bool prepare)
 
void DoAutoscaleValue (bool prepare)
 
void UpdateBoundingBox ()
 
virtual void EventUpdateColors ()
 
void SetValueRange (double, double)
 
void SetAutoRefineLimits (int max_ref, int max_surf_elem)
 
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 ()
 
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 ()
 
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

int shading
 
int TimesToRefine
 
int EdgeRefineFactor
 
int attr_to_show
 
int bdr_attr_to_show
 
Array< int > el_attr_to_show
 
Array< int > bdr_el_attr_to_show
 
- Public Attributes inherited from VisualizationSceneScalarData
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 ()
 
void FindNewBox (double rx[], double ry[], double rval[])
 
void DrawCPLine (DenseMatrix &pointmat, Vector &values, Array< int > &ind)
 
void GetRefinedDetJ (int i, const IntegrationRule &ir, Vector &vals, DenseMatrix &tr)
 
virtual void GetRefinedValues (int i, const IntegrationRule &ir, Vector &vals, DenseMatrix &tr)
 
virtual int GetRefinedValuesAndNormals (int i, const IntegrationRule &ir, Vector &vals, DenseMatrix &tr, DenseMatrix &normals)
 
void DrawLevelCurves (Array< int > &RG, DenseMatrix &pointmat, Vector &values, int sides, Array< double > &lvl, int flat=0)
 
int GetAutoRefineFactor ()
 
double GetElementLengthScale (int k)
 
- Protected Member Functions inherited from VisualizationSceneScalarData
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

Vector * v_normals
 
GridFunction * rsol
 
int drawmesh
 
int drawelems
 
int drawnums
 
int displlist
 
int linelist
 
int lcurvelist
 
int bdrlist
 
int drawbdr
 
int draw_cp
 
int cp_list
 
int e_nums_list
 
int v_nums_list
 
- Protected Attributes inherited from VisualizationSceneScalarData
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
 

Static Protected Attributes

static const int MAX_RENDER_NUMBERING = 1000
 

Detailed Description

Definition at line 20 of file vssolution.hpp.

Constructor & Destructor Documentation

VisualizationSceneSolution::VisualizationSceneSolution ( )

Definition at line 417 of file vssolution.cpp.

VisualizationSceneSolution::VisualizationSceneSolution ( Mesh &  m,
Vector &  s,
Vector *  normals = NULL 
)

Definition at line 422 of file vssolution.cpp.

VisualizationSceneSolution::~VisualizationSceneSolution ( )
virtual

Definition at line 521 of file vssolution.cpp.

Member Function Documentation

void VisualizationSceneSolution::AutoRefine ( )
virtual

Implements VisualizationSceneScalarData.

Definition at line 822 of file vssolution.cpp.

void VisualizationSceneSolution::Draw ( )
virtual

Implements VisualizationScene.

Reimplemented in VisualizationSceneVector.

Definition at line 2179 of file vssolution.cpp.

void VisualizationSceneSolution::DrawCPLine ( DenseMatrix &  pointmat,
Vector &  values,
Array< int > &  ind 
)
protected

Definition at line 2142 of file vssolution.cpp.

void VisualizationSceneSolution::DrawLevelCurves ( Array< int > &  RG,
DenseMatrix &  pointmat,
Vector &  values,
int  sides,
Array< double > &  lvl,
int  flat = 0 
)
protected

Definition at line 1530 of file vssolution.cpp.

void VisualizationSceneSolution::FindMeshBox ( bool  prepare)
virtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 973 of file vssolution.cpp.

void VisualizationSceneSolution::FindNewBox ( double  rx[],
double  ry[],
double  rval[] 
)
protected

Definition at line 876 of file vssolution.cpp.

void VisualizationSceneSolution::FindNewBox ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 944 of file vssolution.cpp.

virtual void VisualizationSceneSolution::FindNewBoxAndValueRange ( bool  prepare)
inlinevirtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 79 of file vssolution.hpp.

void VisualizationSceneSolution::FindNewValueRange ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 960 of file vssolution.cpp.

int VisualizationSceneSolution::GetAutoRefineFactor ( )
protected

Definition at line 810 of file vssolution.cpp.

double VisualizationSceneSolution::GetElementLengthScale ( int  k)
protected

Definition at line 1664 of file vssolution.cpp.

void VisualizationSceneSolution::GetRefinedDetJ ( int  i,
const IntegrationRule &  ir,
Vector &  vals,
DenseMatrix &  tr 
)
protected

Definition at line 593 of file vssolution.cpp.

void VisualizationSceneSolution::GetRefinedValues ( int  i,
const IntegrationRule &  ir,
Vector &  vals,
DenseMatrix &  tr 
)
protectedvirtual

Reimplemented in VisualizationSceneVector.

Definition at line 646 of file vssolution.cpp.

int VisualizationSceneSolution::GetRefinedValuesAndNormals ( int  i,
const IntegrationRule &  ir,
Vector &  vals,
DenseMatrix &  tr,
DenseMatrix &  normals 
)
protectedvirtual

Reimplemented in VisualizationSceneVector.

Definition at line 670 of file vssolution.cpp.

void VisualizationSceneSolution::Init ( )
protected

Definition at line 435 of file vssolution.cpp.

void VisualizationSceneSolution::NewMeshAndSolution ( Mesh *  new_m,
Vector *  new_sol,
GridFunction *  new_u = NULL 
)

Definition at line 564 of file vssolution.cpp.

void VisualizationSceneSolution::Prepare ( )
virtual

Implements VisualizationSceneScalarData.

Definition at line 1391 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareBoundary ( )

Definition at line 1980 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareCP ( )

Definition at line 2048 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareElementNumbering ( )

Definition at line 1695 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareElementNumbering1 ( )

Definition at line 1717 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareElementNumbering2 ( )

Definition at line 1756 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareFlat ( )

Definition at line 1242 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareFlat2 ( )

Definition at line 1286 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLevelCurves ( )

Definition at line 1498 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLevelCurves2 ( )

Definition at line 1609 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLines ( )
virtual

Implements VisualizationSceneScalarData.

Reimplemented in VisualizationSceneVector.

Definition at line 1632 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLines2 ( )

Definition at line 1889 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLines3 ( )

Definition at line 1923 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareNumbering ( )

Definition at line 1883 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareVertexNumbering ( )

Definition at line 1787 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareVertexNumbering1 ( )

Definition at line 1809 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareVertexNumbering2 ( )

Definition at line 1845 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareWithNormals ( )

Definition at line 1197 of file vssolution.cpp.

void VisualizationSceneSolution::SetGridFunction ( GridFunction &  u)
inline

Definition at line 71 of file vssolution.hpp.

void VisualizationSceneSolution::SetNewScalingFromBox ( )
virtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 857 of file vssolution.cpp.

void VisualizationSceneSolution::SetRefineFactors ( int  tot,
int  bdr 
)
virtual

Implements VisualizationSceneScalarData.

Definition at line 784 of file vssolution.cpp.

void VisualizationSceneSolution::SetShading ( int  s,
bool  print 
)
virtual

Implements VisualizationSceneScalarData.

Definition at line 725 of file vssolution.cpp.

void VisualizationSceneSolution::ToggleAttributes ( Array< int > &  attr_list)
virtual

Implements VisualizationSceneScalarData.

Definition at line 831 of file vssolution.cpp.

void VisualizationSceneSolution::ToggleDrawBdr ( )
inline

Definition at line 113 of file vssolution.hpp.

void VisualizationSceneSolution::ToggleDrawCP ( )
inline

Definition at line 125 of file vssolution.hpp.

void VisualizationSceneSolution::ToggleDrawElems ( )
virtual

Reimplemented in VisualizationSceneVector.

Definition at line 532 of file vssolution.cpp.

void VisualizationSceneSolution::ToggleDrawMesh ( )
inline

Definition at line 118 of file vssolution.hpp.

void VisualizationSceneSolution::ToggleDrawNumberings ( )
inline

Definition at line 120 of file vssolution.hpp.

void VisualizationSceneSolution::ToggleLogscale ( bool  print)
virtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 982 of file vssolution.cpp.

void VisualizationSceneSolution::ToggleShading ( )

Definition at line 772 of file vssolution.cpp.

virtual void VisualizationSceneSolution::UpdateLevelLines ( )
inlinevirtual

Implements VisualizationSceneScalarData.

Definition at line 84 of file vssolution.hpp.

void VisualizationSceneSolution::UpdateValueRange ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 1956 of file vssolution.cpp.

Member Data Documentation

int VisualizationSceneSolution::attr_to_show

Definition at line 63 of file vssolution.hpp.

int VisualizationSceneSolution::bdr_attr_to_show

Definition at line 63 of file vssolution.hpp.

Array<int> VisualizationSceneSolution::bdr_el_attr_to_show

Definition at line 64 of file vssolution.hpp.

int VisualizationSceneSolution::bdrlist
protected

Definition at line 28 of file vssolution.hpp.

int VisualizationSceneSolution::cp_list
protected

Definition at line 28 of file vssolution.hpp.

int VisualizationSceneSolution::displlist
protected

Definition at line 27 of file vssolution.hpp.

int VisualizationSceneSolution::draw_cp
protected

Definition at line 28 of file vssolution.hpp.

int VisualizationSceneSolution::drawbdr
protected

Definition at line 28 of file vssolution.hpp.

int VisualizationSceneSolution::drawelems
protected

Definition at line 26 of file vssolution.hpp.

int VisualizationSceneSolution::drawmesh
protected

Definition at line 26 of file vssolution.hpp.

int VisualizationSceneSolution::drawnums
protected

Definition at line 26 of file vssolution.hpp.

int VisualizationSceneSolution::e_nums_list
protected

Definition at line 29 of file vssolution.hpp.

int VisualizationSceneSolution::EdgeRefineFactor

Definition at line 61 of file vssolution.hpp.

Array<int> VisualizationSceneSolution::el_attr_to_show

Definition at line 64 of file vssolution.hpp.

int VisualizationSceneSolution::lcurvelist
protected

Definition at line 27 of file vssolution.hpp.

int VisualizationSceneSolution::linelist
protected

Definition at line 27 of file vssolution.hpp.

const int VisualizationSceneSolution::MAX_RENDER_NUMBERING = 1000
staticprotected

Definition at line 58 of file vssolution.hpp.

GridFunction* VisualizationSceneSolution::rsol
protected

Definition at line 24 of file vssolution.hpp.

int VisualizationSceneSolution::shading

Definition at line 61 of file vssolution.hpp.

int VisualizationSceneSolution::TimesToRefine

Definition at line 61 of file vssolution.hpp.

Vector* VisualizationSceneSolution::v_normals
protected

Definition at line 23 of file vssolution.hpp.

int VisualizationSceneSolution::v_nums_list
protected

Definition at line 29 of file vssolution.hpp.


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