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

#include <vsvector3d.hpp>

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

Public Member Functions

 VisualizationSceneVector3d (Mesh &m, Vector &sx, Vector &sy, Vector &sz)
 
 VisualizationSceneVector3d (GridFunction &vgf)
 
void NewMeshAndSolution (Mesh *new_m, GridFunction *new_v)
 
virtual ~VisualizationSceneVector3d ()
 
void NPressed ()
 
virtual void PrepareFlat ()
 
virtual void Prepare ()
 
virtual void PrepareLines ()
 
void PrepareFlat2 ()
 
void PrepareLines2 ()
 
void DrawVector (int type, double v0, double v1, double v2, double sx, double sy, double sz, double s)
 
virtual void PrepareVectorField ()
 
void PrepareDisplacedMesh ()
 
void ToggleVectorField (int i)
 
void SetScalarFunction ()
 
void ToggleScalarFunction ()
 
virtual void PrepareCuttingPlane ()
 
void ToggleDisplacements ()
 
virtual void Draw ()
 
virtual void EventUpdateColors ()
 
void ToggleVectorFieldLevel (int v)
 
void AddVectorFieldLevel ()
 
void RemoveVectorFieldLevel ()
 
- Public Member Functions inherited from VisualizationSceneSolution3d
 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)
 
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 ()
 
void PrepareCuttingPlane2 ()
 
void PrepareCuttingPlaneLines ()
 
void PrepareCuttingPlaneLines2 ()
 
void PrepareLevelSurf ()
 
void ToggleCuttingPlane ()
 
void ToggleCPDrawElems ()
 
void ToggleCPDrawMesh ()
 
void MoveLevelSurf (int)
 
void NumberOfLevelSurf (int)
 
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 ianim
 
int ianimd
 
int ianimmax
 
int drawdisp
 
- Public Attributes inherited from VisualizationSceneSolution3d
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 ()
 
- Protected Member Functions inherited from VisualizationSceneSolution3d
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

Vector * solx
 
Vector * soly
 
Vector * solz
 
int vectorlist
 
int displinelist
 
int drawvector
 
int scal_func
 
GridFunction * VecGridF
 
FiniteElementSpace * sfes
 
Array< int > vflevel
 
Array< double > dvflevel
 
- Protected Attributes inherited from VisualizationSceneSolution3d
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 vsvector3d.hpp.

Constructor & Destructor Documentation

VisualizationSceneVector3d::VisualizationSceneVector3d ( Mesh &  m,
Vector &  sx,
Vector &  sy,
Vector &  sz 
)

Definition at line 324 of file vsvector3d.cpp.

VisualizationSceneVector3d::VisualizationSceneVector3d ( GridFunction &  vgf)

Definition at line 340 of file vsvector3d.cpp.

VisualizationSceneVector3d::~VisualizationSceneVector3d ( )
virtual

Definition at line 428 of file vsvector3d.cpp.

Member Function Documentation

void VisualizationSceneVector3d::AddVectorFieldLevel ( )

Definition at line 218 of file vsvector3d.cpp.

void VisualizationSceneVector3d::Draw ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 1505 of file vsvector3d.cpp.

void VisualizationSceneVector3d::DrawVector ( int  type,
double  v0,
double  v1,
double  v2,
double  sx,
double  sy,
double  sz,
double  s 
)

Definition at line 1204 of file vsvector3d.cpp.

virtual void VisualizationSceneVector3d::EventUpdateColors ( )
inlinevirtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 66 of file vsvector3d.hpp.

void VisualizationSceneVector3d::Init ( )
protected

Definition at line 369 of file vsvector3d.cpp.

void VisualizationSceneVector3d::NewMeshAndSolution ( Mesh *  new_m,
GridFunction *  new_v 
)

Definition at line 445 of file vsvector3d.cpp.

void VisualizationSceneVector3d::NPressed ( )

Definition at line 160 of file vsvector3d.cpp.

void VisualizationSceneVector3d::Prepare ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 725 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareCuttingPlane ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 1364 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareDisplacedMesh ( )

Definition at line 1104 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareFlat ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 510 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareFlat2 ( )

Definition at line 565 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareLines ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 849 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareLines2 ( )

Definition at line 930 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareVectorField ( )
virtual

Definition at line 1255 of file vsvector3d.cpp.

void VisualizationSceneVector3d::RemoveVectorFieldLevel ( )

Definition at line 227 of file vsvector3d.cpp.

void VisualizationSceneVector3d::SetScalarFunction ( )

Definition at line 261 of file vsvector3d.cpp.

void VisualizationSceneVector3d::ToggleDisplacements ( )
inline

Definition at line 62 of file vsvector3d.hpp.

void VisualizationSceneVector3d::ToggleScalarFunction ( )

Definition at line 316 of file vsvector3d.cpp.

void VisualizationSceneVector3d::ToggleVectorField ( int  i)

Definition at line 252 of file vsvector3d.cpp.

void VisualizationSceneVector3d::ToggleVectorFieldLevel ( int  v)

Definition at line 187 of file vsvector3d.cpp.

Member Data Documentation

int VisualizationSceneVector3d::displinelist
protected

Definition at line 23 of file vsvector3d.hpp.

int VisualizationSceneVector3d::drawdisp

Definition at line 34 of file vsvector3d.hpp.

int VisualizationSceneVector3d::drawvector
protected

Definition at line 23 of file vsvector3d.hpp.

Array<double> VisualizationSceneVector3d::dvflevel
protected

Definition at line 31 of file vsvector3d.hpp.

int VisualizationSceneVector3d::ianim

Definition at line 34 of file vsvector3d.hpp.

int VisualizationSceneVector3d::ianimd

Definition at line 34 of file vsvector3d.hpp.

int VisualizationSceneVector3d::ianimmax

Definition at line 34 of file vsvector3d.hpp.

int VisualizationSceneVector3d::scal_func
protected

Definition at line 23 of file vsvector3d.hpp.

FiniteElementSpace* VisualizationSceneVector3d::sfes
protected

Definition at line 26 of file vsvector3d.hpp.

Vector* VisualizationSceneVector3d::solx
protected

Definition at line 22 of file vsvector3d.hpp.

Vector * VisualizationSceneVector3d::soly
protected

Definition at line 22 of file vsvector3d.hpp.

Vector * VisualizationSceneVector3d::solz
protected

Definition at line 22 of file vsvector3d.hpp.

GridFunction* VisualizationSceneVector3d::VecGridF
protected

Definition at line 25 of file vsvector3d.hpp.

int VisualizationSceneVector3d::vectorlist
protected

Definition at line 23 of file vsvector3d.hpp.

Array<int> VisualizationSceneVector3d::vflevel
protected

Definition at line 30 of file vsvector3d.hpp.


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