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

#include <vsvector.hpp>

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

Public Member Functions

 VisualizationSceneVector (Mesh &m, Vector &sx, Vector &sy)
 
 VisualizationSceneVector (GridFunction &vgf)
 
void NewMeshAndSolution (GridFunction &vgf)
 
virtual ~VisualizationSceneVector ()
 
void NPressed ()
 
void PrepareDisplacedMesh ()
 
virtual void PrepareLines ()
 
virtual void ToggleDrawElems ()
 
virtual void PrepareVectorField ()
 
void ToggleVectorField ()
 
void ToggleDisplacements ()
 
virtual void Draw ()
 
virtual void EventUpdateColors ()
 
void CycleVec2Scalar (int print=0)
 
- Public Member Functions inherited from VisualizationSceneSolution
 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 ()
 
void PrepareLines2 ()
 
void PrepareLines3 ()
 
virtual void Prepare ()
 
void PrepareLevelCurves ()
 
void PrepareLevelCurves2 ()
 
void PrepareBoundary ()
 
void PrepareCP ()
 
void ToggleDrawBdr ()
 
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 ()
 
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 RefineFactor
 
double ArrowScale
 
- Public Attributes inherited from VisualizationSceneSolution
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 ()
 
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 DrawVector (double, double, double, double, double)
 
- Protected Member Functions inherited from VisualizationSceneSolution
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)
 
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 * solx
 
Vector * soly
 
int vectorlist
 
int displinelist
 
int drawdisp
 
int drawvector
 
GridFunction * VecGridF
 
double(* Vec2Scalar )(double, double)
 
double maxlen
 
Vector vc0
 
IsoparametricTransformation T0
 
- Protected Attributes inherited from VisualizationSceneSolution
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 18 of file vsvector.hpp.

Constructor & Destructor Documentation

VisualizationSceneVector::VisualizationSceneVector ( Mesh &  m,
Vector &  sx,
Vector &  sy 
)

Definition at line 246 of file vsvector.cpp.

VisualizationSceneVector::VisualizationSceneVector ( GridFunction &  vgf)

Definition at line 260 of file vsvector.cpp.

VisualizationSceneVector::~VisualizationSceneVector ( )
virtual

Definition at line 518 of file vsvector.cpp.

Member Function Documentation

void VisualizationSceneVector::CycleVec2Scalar ( int  print = 0)

Definition at line 339 of file vsvector.cpp.

void VisualizationSceneVector::Draw ( )
virtual

Reimplemented from VisualizationSceneSolution.

Definition at line 955 of file vsvector.cpp.

void VisualizationSceneVector::DrawVector ( double  px,
double  py,
double  vx,
double  vy,
double  cval 
)
protected

Definition at line 843 of file vsvector.cpp.

virtual void VisualizationSceneVector::EventUpdateColors ( )
inlinevirtual

Reimplemented from VisualizationSceneScalarData.

Definition at line 73 of file vsvector.hpp.

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

Reimplemented from VisualizationSceneSolution.

Definition at line 532 of file vsvector.cpp.

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

Reimplemented from VisualizationSceneSolution.

Definition at line 644 of file vsvector.cpp.

void VisualizationSceneVector::Init ( )
protected

Definition at line 469 of file vsvector.cpp.

void VisualizationSceneVector::NewMeshAndSolution ( GridFunction &  vgf)

Definition at line 397 of file vsvector.cpp.

void VisualizationSceneVector::NPressed ( )

Definition at line 119 of file vsvector.cpp.

void VisualizationSceneVector::PrepareDisplacedMesh ( )

Definition at line 655 of file vsvector.cpp.

virtual void VisualizationSceneVector::PrepareLines ( )
inlinevirtual

Reimplemented from VisualizationSceneSolution.

Definition at line 54 of file vsvector.hpp.

void VisualizationSceneVector::PrepareVectorField ( )
virtual

Definition at line 881 of file vsvector.cpp.

void VisualizationSceneVector::ToggleDisplacements ( )
inline

Definition at line 62 of file vsvector.hpp.

void VisualizationSceneVector::ToggleDrawElems ( )
virtual

Reimplemented from VisualizationSceneSolution.

Definition at line 214 of file vsvector.cpp.

void VisualizationSceneVector::ToggleVectorField ( )

Definition at line 234 of file vsvector.cpp.

Member Data Documentation

double VisualizationSceneVector::ArrowScale

Definition at line 78 of file vsvector.hpp.

int VisualizationSceneVector::displinelist
protected

Definition at line 23 of file vsvector.hpp.

int VisualizationSceneVector::drawdisp
protected

Definition at line 23 of file vsvector.hpp.

int VisualizationSceneVector::drawvector
protected

Definition at line 23 of file vsvector.hpp.

double VisualizationSceneVector::maxlen
protected

Definition at line 39 of file vsvector.hpp.

int VisualizationSceneVector::RefineFactor

Definition at line 76 of file vsvector.hpp.

Vector* VisualizationSceneVector::solx
protected

Definition at line 22 of file vsvector.hpp.

Vector * VisualizationSceneVector::soly
protected

Definition at line 22 of file vsvector.hpp.

IsoparametricTransformation VisualizationSceneVector::T0
protected

Definition at line 42 of file vsvector.hpp.

Vector VisualizationSceneVector::vc0
protected

Definition at line 41 of file vsvector.hpp.

double(* VisualizationSceneVector::Vec2Scalar) (double, double)
protected

Definition at line 35 of file vsvector.hpp.

GridFunction* VisualizationSceneVector::VecGridF
protected

Definition at line 25 of file vsvector.hpp.

int VisualizationSceneVector::vectorlist
protected

Definition at line 23 of file vsvector.hpp.


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