GLVis  v3.3
Accurate and flexible finite element visualization
Public Member Functions | Public Attributes | Protected Member Functions | 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 PrepareCP ()
 
virtual void Draw ()
 
void ToggleDrawBdr ()
 
virtual void ToggleDrawElems ()
 
void ToggleDrawMesh ()
 
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 ()
 
- 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 displlist
 
int linelist
 
int lcurvelist
 
int bdrlist
 
int drawbdr
 
int draw_cp
 
int cp_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
 

Detailed Description

Definition at line 20 of file vssolution.hpp.

Constructor & Destructor Documentation

VisualizationSceneSolution::VisualizationSceneSolution ( )

Definition at line 406 of file vssolution.cpp.

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

Definition at line 411 of file vssolution.cpp.

VisualizationSceneSolution::~VisualizationSceneSolution ( )
virtual

Definition at line 503 of file vssolution.cpp.

Member Function Documentation

void VisualizationSceneSolution::AutoRefine ( )
virtual

Implements VisualizationSceneScalarData.

Definition at line 797 of file vssolution.cpp.

void VisualizationSceneSolution::Draw ( )
virtual

Implements VisualizationScene.

Reimplemented in VisualizationSceneVector.

Definition at line 1896 of file vssolution.cpp.

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

Definition at line 1859 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 1472 of file vssolution.cpp.

void VisualizationSceneSolution::FindMeshBox ( bool  prepare)
virtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 948 of file vssolution.cpp.

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

Definition at line 851 of file vssolution.cpp.

void VisualizationSceneSolution::FindNewBox ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 919 of file vssolution.cpp.

virtual void VisualizationSceneSolution::FindNewBoxAndValueRange ( bool  prepare)
inlinevirtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 71 of file vssolution.hpp.

void VisualizationSceneSolution::FindNewValueRange ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 935 of file vssolution.cpp.

int VisualizationSceneSolution::GetAutoRefineFactor ( )
protected

Definition at line 785 of file vssolution.cpp.

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

Definition at line 569 of file vssolution.cpp.

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

Reimplemented in VisualizationSceneVector.

Definition at line 622 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 646 of file vssolution.cpp.

void VisualizationSceneSolution::Init ( )
protected

Definition at line 424 of file vssolution.cpp.

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

Definition at line 540 of file vssolution.cpp.

void VisualizationSceneSolution::Prepare ( )
virtual

Implements VisualizationSceneScalarData.

Definition at line 1336 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareBoundary ( )

Definition at line 1697 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareCP ( )

Definition at line 1765 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareFlat ( )

Definition at line 1187 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareFlat2 ( )

Definition at line 1231 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLevelCurves ( )

Definition at line 1440 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLevelCurves2 ( )

Definition at line 1551 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLines ( )
virtual

Implements VisualizationSceneScalarData.

Reimplemented in VisualizationSceneVector.

Definition at line 1574 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLines2 ( )

Definition at line 1606 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareLines3 ( )

Definition at line 1640 of file vssolution.cpp.

void VisualizationSceneSolution::PrepareWithNormals ( )

Definition at line 1142 of file vssolution.cpp.

void VisualizationSceneSolution::SetGridFunction ( GridFunction &  u)
inline

Definition at line 63 of file vssolution.hpp.

void VisualizationSceneSolution::SetNewScalingFromBox ( )
virtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 832 of file vssolution.cpp.

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

Implements VisualizationSceneScalarData.

Definition at line 759 of file vssolution.cpp.

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

Implements VisualizationSceneScalarData.

Definition at line 701 of file vssolution.cpp.

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

Implements VisualizationSceneScalarData.

Definition at line 806 of file vssolution.cpp.

void VisualizationSceneSolution::ToggleDrawBdr ( )
inline

Definition at line 97 of file vssolution.hpp.

void VisualizationSceneSolution::ToggleDrawCP ( )
inline

Definition at line 107 of file vssolution.hpp.

void VisualizationSceneSolution::ToggleDrawElems ( )
virtual

Reimplemented in VisualizationSceneVector.

Definition at line 512 of file vssolution.cpp.

void VisualizationSceneSolution::ToggleDrawMesh ( )
inline

Definition at line 102 of file vssolution.hpp.

void VisualizationSceneSolution::ToggleLogscale ( bool  print)
virtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 957 of file vssolution.cpp.

void VisualizationSceneSolution::ToggleShading ( )

Definition at line 747 of file vssolution.cpp.

virtual void VisualizationSceneSolution::UpdateLevelLines ( )
inlinevirtual

Implements VisualizationSceneScalarData.

Definition at line 76 of file vssolution.hpp.

void VisualizationSceneSolution::UpdateValueRange ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 1673 of file vssolution.cpp.

Member Data Documentation

int VisualizationSceneSolution::attr_to_show

Definition at line 55 of file vssolution.hpp.

int VisualizationSceneSolution::bdr_attr_to_show

Definition at line 55 of file vssolution.hpp.

Array<int> VisualizationSceneSolution::bdr_el_attr_to_show

Definition at line 56 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::EdgeRefineFactor

Definition at line 53 of file vssolution.hpp.

Array<int> VisualizationSceneSolution::el_attr_to_show

Definition at line 56 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.

GridFunction* VisualizationSceneSolution::rsol
protected

Definition at line 24 of file vssolution.hpp.

int VisualizationSceneSolution::shading

Definition at line 53 of file vssolution.hpp.

int VisualizationSceneSolution::TimesToRefine

Definition at line 53 of file vssolution.hpp.

Vector* VisualizationSceneSolution::v_normals
protected

Definition at line 23 of file vssolution.hpp.


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