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

#include <vssolution3d.hpp>

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

Public Member Functions

 VisualizationSceneSolution3d ()
 
 VisualizationSceneSolution3d (Mesh &m, Vector &s)
 
void SetGridFunction (GridFunction *gf)
 
void NewMeshAndSolution (Mesh *new_m, Vector *new_sol, GridFunction *new_u=NULL)
 
virtual ~VisualizationSceneSolution3d ()
 
virtual void FindNewBox (bool prepare)
 
virtual void FindNewValueRange (bool prepare)
 
virtual void PrepareFlat ()
 
virtual void PrepareLines ()
 
virtual void Prepare ()
 
virtual void Draw ()
 
void ToggleDrawElems ()
 
void ToggleDrawMesh ()
 
void ToggleShading ()
 
int GetShading ()
 
virtual void SetShading (int, bool)
 
virtual void SetRefineFactors (int, int)
 
virtual void AutoRefine ()
 
virtual void ToggleAttributes (Array< int > &attr_list)
 
void FindNodePos ()
 
void CuttingPlaneFunc (int type)
 
void CPPrepare ()
 
void CPMoved ()
 
void PrepareFlat2 ()
 
void PrepareLines2 ()
 
virtual void PrepareCuttingPlane ()
 
void PrepareCuttingPlane2 ()
 
void PrepareCuttingPlaneLines ()
 
void PrepareCuttingPlaneLines2 ()
 
void PrepareLevelSurf ()
 
void ToggleCuttingPlane ()
 
void ToggleCPDrawElems ()
 
void ToggleCPDrawMesh ()
 
void MoveLevelSurf (int)
 
void NumberOfLevelSurf (int)
 
virtual void EventUpdateColors ()
 
virtual void UpdateLevelLines ()
 
virtual void UpdateValueRange (bool prepare)
 
- Public Member Functions inherited from VisualizationSceneScalarData
 VisualizationSceneScalarData ()
 
 VisualizationSceneScalarData (Mesh &m, Vector &s)
 
virtual ~VisualizationSceneScalarData ()
 
virtual void SetNewScalingFromBox ()
 
virtual void FindNewBoxAndValueRange (bool prepare)
 
virtual void FindMeshBox (bool prepare)
 
void DoAutoscale (bool prepare)
 
void DoAutoscaleValue (bool prepare)
 
void UpdateBoundingBox ()
 
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 ()
 
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 ()
 
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 TimesToRefine
 
double FaceShiftScale
 
Array< int > bdr_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 GetFaceNormals (const int FaceNo, const int side, const IntegrationRule &ir, DenseMatrix &normals)
 
void DrawRefinedSurf (int n, double *points, int elem, int func, int part=-1)
 
void DrawRefinedSurf (int n, DenseMatrix &pointmat, Vector &values, Array< int > &RefGeoms)
 
void DrawRefinedSurfLevelLines (int n, DenseMatrix &pointmat, Vector &values, Array< int > &RefGeoms)
 
void DrawRefinedSurfEdges (int n, DenseMatrix &pointmat, Vector &values, Array< int > &RefEdges, int part=-1)
 
void LiftRefinedSurf (int n, DenseMatrix &pointmat, Vector &values, int *RG)
 
void DrawTetLevelSurf (const DenseMatrix &verts, const Vector &vals, const int *ind, const Array< double > &levels, const DenseMatrix *grad=NULL)
 
int GetAutoRefineFactor ()
 
bool CheckPositions (Array< int > &vertices) const
 
- 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

int drawmesh
 
int drawelems
 
int shading
 
int displlist
 
int linelist
 
int cplane
 
int cplanelist
 
int cplanelineslist
 
int lsurflist
 
int cp_drawmesh
 
int cp_drawelems
 
int drawlsurf
 
double * node_pos
 
int nlevels
 
Array< double > levels
 
GridFunction * GridF
 
- 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 18 of file vssolution3d.hpp.

Constructor & Destructor Documentation

VisualizationSceneSolution3d::VisualizationSceneSolution3d ( )

Definition at line 579 of file vssolution3d.cpp.

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

Definition at line 582 of file vssolution3d.cpp.

VisualizationSceneSolution3d::~VisualizationSceneSolution3d ( )
virtual

Definition at line 713 of file vssolution3d.cpp.

Member Function Documentation

void VisualizationSceneSolution3d::AutoRefine ( )
virtual

Implements VisualizationSceneScalarData.

Definition at line 833 of file vssolution3d.cpp.

bool VisualizationSceneSolution3d::CheckPositions ( Array< int > &  vertices) const
inlineprotected

Definition at line 56 of file vssolution3d.hpp.

void VisualizationSceneSolution3d::CPMoved ( )

Definition at line 118 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::CPPrepare ( )

Definition at line 112 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::CuttingPlaneFunc ( int  type)

Definition at line 1978 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::Draw ( )
virtual

Implements VisualizationScene.

Reimplemented in VisualizationSceneVector3d.

Definition at line 2683 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::DrawRefinedSurf ( int  n,
double *  points,
int  elem,
int  func,
int  part = -1 
)
protected

Definition at line 1108 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::DrawRefinedSurf ( int  n,
DenseMatrix &  pointmat,
Vector &  values,
Array< int > &  RefGeoms 
)
protected

Definition at line 1234 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::DrawRefinedSurfEdges ( int  n,
DenseMatrix &  pointmat,
Vector &  values,
Array< int > &  RefEdges,
int  part = -1 
)
protected

Definition at line 1275 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::DrawRefinedSurfLevelLines ( int  n,
DenseMatrix &  pointmat,
Vector &  values,
Array< int > &  RefGeoms 
)
protected

Definition at line 1309 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::DrawTetLevelSurf ( const DenseMatrix &  verts,
const Vector &  vals,
const int *  ind,
const Array< double > &  levels,
const DenseMatrix *  grad = NULL 
)
protected

Definition at line 2408 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::EventUpdateColors ( )
virtual

Reimplemented from VisualizationSceneScalarData.

Reimplemented in VisualizationSceneVector3d.

Definition at line 953 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::FindNewBox ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 871 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::FindNewValueRange ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 937 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::FindNodePos ( )

Definition at line 977 of file vssolution3d.cpp.

int VisualizationSceneSolution3d::GetAutoRefineFactor ( )
protected

Definition at line 817 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::GetFaceNormals ( const int  FaceNo,
const int  side,
const IntegrationRule &  ir,
DenseMatrix &  normals 
)
protected

Definition at line 1065 of file vssolution3d.cpp.

int VisualizationSceneSolution3d::GetShading ( )
inline

Definition at line 96 of file vssolution3d.hpp.

void VisualizationSceneSolution3d::Init ( )
protected

Definition at line 596 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::LiftRefinedSurf ( int  n,
DenseMatrix &  pointmat,
Vector &  values,
int *  RG 
)
protected

Definition at line 1175 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::MoveLevelSurf ( int  move)

Definition at line 1031 of file vssolution3d.cpp.

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

Definition at line 723 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::NumberOfLevelSurf ( int  c)

Definition at line 1045 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::Prepare ( )
virtual

Implements VisualizationSceneScalarData.

Reimplemented in VisualizationSceneVector3d.

Definition at line 1547 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareCuttingPlane ( )
virtual

Reimplemented in VisualizationSceneVector3d.

Definition at line 2208 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareCuttingPlane2 ( )

Definition at line 2227 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareCuttingPlaneLines ( )

Definition at line 2297 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareCuttingPlaneLines2 ( )

Definition at line 2323 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareFlat ( )
virtual

Reimplemented in VisualizationSceneVector3d.

Definition at line 1332 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareFlat2 ( )

Definition at line 1400 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareLevelSurf ( )

Definition at line 2570 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareLines ( )
virtual

Implements VisualizationSceneScalarData.

Reimplemented in VisualizationSceneVector3d.

Definition at line 1721 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::PrepareLines2 ( )

Definition at line 1812 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::SetGridFunction ( GridFunction *  gf)
inline

Definition at line 75 of file vssolution3d.hpp.

void VisualizationSceneSolution3d::SetRefineFactors ( int  f,
int  ignored 
)
virtual

Implements VisualizationSceneScalarData.

Definition at line 799 of file vssolution3d.cpp.

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

Implements VisualizationSceneScalarData.

Definition at line 757 of file vssolution3d.cpp.

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

Implements VisualizationSceneScalarData.

Definition at line 842 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::ToggleCPDrawElems ( )

Definition at line 1012 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::ToggleCPDrawMesh ( )

Definition at line 1018 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::ToggleCuttingPlane ( )

Definition at line 993 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::ToggleDrawElems ( )
inline

Definition at line 90 of file vssolution3d.hpp.

void VisualizationSceneSolution3d::ToggleDrawMesh ( )

Definition at line 987 of file vssolution3d.cpp.

void VisualizationSceneSolution3d::ToggleShading ( )

Definition at line 787 of file vssolution3d.cpp.

virtual void VisualizationSceneSolution3d::UpdateLevelLines ( )
inlinevirtual

Implements VisualizationSceneScalarData.

Definition at line 120 of file vssolution3d.hpp.

void VisualizationSceneSolution3d::UpdateValueRange ( bool  prepare)
virtual

Implements VisualizationSceneScalarData.

Definition at line 964 of file vssolution3d.cpp.

Member Data Documentation

Array<int> VisualizationSceneSolution3d::bdr_attr_to_show

Definition at line 70 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::cp_drawelems
protected

Definition at line 25 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::cp_drawmesh
protected

Definition at line 25 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::cplane
protected

Definition at line 24 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::cplanelineslist
protected

Definition at line 24 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::cplanelist
protected

Definition at line 24 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::displlist
protected

Definition at line 23 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::drawelems
protected

Definition at line 22 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::drawlsurf
protected

Definition at line 25 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::drawmesh
protected

Definition at line 22 of file vssolution3d.hpp.

double VisualizationSceneSolution3d::FaceShiftScale

Definition at line 68 of file vssolution3d.hpp.

GridFunction* VisualizationSceneSolution3d::GridF
protected

Definition at line 32 of file vssolution3d.hpp.

Array<double> VisualizationSceneSolution3d::levels
protected

Definition at line 30 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::linelist
protected

Definition at line 23 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::lsurflist
protected

Definition at line 24 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::nlevels
protected

Definition at line 29 of file vssolution3d.hpp.

double* VisualizationSceneSolution3d::node_pos
protected

Definition at line 27 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::shading
protected

Definition at line 22 of file vssolution3d.hpp.

int VisualizationSceneSolution3d::TimesToRefine

Definition at line 67 of file vssolution3d.hpp.


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