GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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 ()
 
virtual std::string GetHelpString () const
 
void NPressed ()
 
virtual void PrepareFlat ()
 
virtual void Prepare ()
 
virtual void PrepareLines ()
 
void PrepareFlat2 ()
 
void PrepareLines2 ()
 
void DrawVector (gl3::GlBuilder &builder, 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 gl3::SceneInfo GetSceneObjs ()
 
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)
 
virtual void PrepareRuler ()
 
virtual void PrepareOrderingCurve ()
 
virtual void PrepareOrderingCurve1 (gl3::GlDrawable &buf, bool arrows, bool color)
 
virtual void glTF_Export ()
 
void ToggleDrawElems ()
 
void ToggleDrawMesh ()
 
void ToggleDrawOrdering ()
 
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 CutRefinedElement (gl3::GlDrawable &target, const DenseMatrix &verts, const Vector &vert_dist, const Vector &vals, const Geometry::Type geom, const int *elems, int num_elems, int func)
 
void CutRefinedFace (gl3::GlDrawable &target, const DenseMatrix &verts, const Vector &vert_dist, const Vector &vals, const Geometry::Type geom, const int *faces, int num_faces)
 
void CPPrepare ()
 
void CPMoved ()
 
void PrepareFlat2 ()
 
void PrepareLines2 ()
 
void PrepareCuttingPlane2 ()
 
void PrepareCuttingPlaneLines ()
 
void PrepareCuttingPlaneLines2 ()
 
void PrepareLevelSurf ()
 
void ToggleCuttingPlane ()
 
void ToggleCPDrawElems ()
 
void ToggleCPDrawMesh ()
 
void ToggleCPAlgorithm ()
 
void MoveLevelSurf (int)
 
void NumberOfLevelSurf (int)
 
virtual void UpdateLevelLines ()
 
virtual void UpdateValueRange (bool prepare)
 
virtual void SetDrawMesh (int i)
 
virtual int GetDrawMesh ()
 
- 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 ()
 
virtual void EventUpdateBackground ()
 
void SetValueRange (double, double)
 
void SetAutoRefineLimits (int max_ref, int max_surf_elem)
 
virtual void PrintState ()
 
Mesh * GetMesh ()
 
void glTF_ExportBox (glTF_Builder &bld, glTF_Builder::buffer_id buffer, glTF_Builder::material_id black_mat)
 
void glTF_ExportElements (glTF_Builder &bld, glTF_Builder::buffer_id buffer, glTF_Builder::material_id palette_mat, const gl3::GlDrawable &gl_drawable)
 
void glTF_ExportMesh (glTF_Builder &bld, glTF_Builder::buffer_id buffer, glTF_Builder::material_id black_mat, const gl3::GlDrawable &gl_drawable)
 
double & GetMinV ()
 
double & GetMaxV ()
 
void SetLevelLines (double min, double max, int n, int adj=1)
 
void Arrow (gl3::GlBuilder &builder, double px, double py, double pz, double vx, double vy, double vz, double length, double cone_scale=0.075)
 
void Arrow2 (gl3::GlBuilder &builder, double px, double py, double pz, double vx, double vy, double vz, double length, double cone_scale=0.075)
 
void Arrow3 (gl3::GlBuilder &builder, double px, double py, double pz, double vx, double vy, double vz, double length, double cone_scale=0.075)
 
void DrawPolygonLevelLines (gl3::GlBuilder &builder, double *point, int n, Array< double > &level, bool log_vals)
 
void ToggleLight ()
 
void SetLight (bool light_set)
 
void ToggleDrawColorbar ()
 
void PrepareCaption ()
 
void PrepareColorBar (double minval, double maxval, Array< double > *level=NULL, Array< double > *levels=NULL)
 
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 PrepareRuler (bool log_z)
 
void ToggleTexture ()
 
void Toggle2DView ()
 
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 SetProjectionMtx (glm::mat4 projection)
 
void SetLightMatIdx (unsigned i)
 
int GetLightMatIdx ()
 
void SetLight0CustomPos (std::array< float, 4 > pos)
 
void ToggleBackground ()
 
void GenerateAlphaTexture ()
 

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 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
 
PaletteState palette
 
struct {
   double   x [2]
 
   double   y [2]
 
   double   z [2]
 
bb
 Bounding box. More...
 
double cut_lambda
 Amount of face cutting with keys Ctrl-F3/F4 (0: no cut, 1: cut to edges) More...
 
bool cut_updated
 Have the reference geometries been updated for the cut? More...
 
glm::mat4 rotmat
 
glm::mat4 translmat
 
float matAlpha = 1.0
 
float matAlphaCenter = 0.5
 
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 (gl3::GlDrawable &target, const DenseMatrix &verts, const Vector &vals, const int *ind, const Array< double > &levels, const DenseMatrix *grad=NULL)
 
void DrawRefinedPyramidLevelSurf (gl3::GlDrawable &target, const DenseMatrix &verts, const Vector &vals, const int *RG, const int np, const int face_splits, const DenseMatrix *grad=NULL)
 
void DrawRefinedWedgeLevelSurf (gl3::GlDrawable &target, const DenseMatrix &verts, const Vector &vals, const int *RG, const int np, const int face_splits, const DenseMatrix *grad=NULL)
 
void DrawRefinedHexLevelSurf (gl3::GlDrawable &target, const DenseMatrix &verts, const Vector &vals, const int *RG, const int nh, const int face_splits, 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 ()
 
void Cone (gl3::GlBuilder &builder, glm::mat4 transform)
 
- Protected Member Functions inherited from VisualizationScene
gl3::RenderParams GetMeshDrawParams ()
 
glm::mat4 GetModelViewMtx ()
 
std::array< float, 4 > GetLineColor ()
 
void MySetColor (gl3::GlBuilder &builder, double val, double min, double max)
 
void MySetColor (gl3::GlBuilder &builder, double val)
 
void DrawTriangle (gl3::GlDrawable &buff, const double(&pts)[4][3], const double(&cv)[4], const double minv, const double maxv)
 
void DrawQuad (gl3::GlDrawable &buff, const double(&pts)[4][3], const double(&cv)[4], const double minv, const double maxv)
 
void DrawCutTriangle (gl3::GlDrawable &buff, const double(&pts)[4][3], const double(&cv)[4], const double minv, const double maxv)
 
void DrawCutQuad (gl3::GlDrawable &buff, const double(&pts)[4][3], const double(&cv)[4], const double minv, const double maxv)
 
void DrawPatch (gl3::GlDrawable &buff, const mfem::DenseMatrix &pts, mfem::Vector &vals, mfem::DenseMatrix &normals, const int n, const mfem::Array< int > &ind, const double minv, const double maxv, const int normals_opt=0)
 
glTF_Builder::material_id AddPaletteMaterial (glTF_Builder &bld)
 
glTF_Builder::material_id AddBlackMaterial (glTF_Builder &bld)
 
glTF_Builder::material_id AddPaletteLinesMaterial (glTF_Builder &bld, glTF_Builder::material_id palette_mat)
 
glTF_Builder::node_id AddModelNode (glTF_Builder &bld, const std::string &nodeName)
 
int AddTriangles (glTF_Builder &bld, glTF_Builder::mesh_id mesh, glTF_Builder::buffer_id buffer, glTF_Builder::material_id material, const gl3::GlDrawable &gl_drawable)
 
int AddLines (glTF_Builder &bld, glTF_Builder::mesh_id mesh, glTF_Builder::buffer_id buffer, glTF_Builder::material_id material, const gl3::GlDrawable &gl_drawable)
 

Protected Attributes

Vector * solx
 
Vector * soly
 
Vector * solz
 
int drawvector
 
int scal_func
 
gl3::GlDrawable vector_buf
 
gl3::GlDrawable displine_buf
 
GridFunction * VecGridF
 
FiniteElementSpace * sfes
 
Array< int > vflevel
 
Array< double > dvflevel
 
- Protected Attributes inherited from VisualizationSceneSolution3d
int drawmesh
 
int drawelems
 
int shading
 
int draworder
 
int cplane
 
int cp_drawmesh
 
int cp_drawelems
 
int drawlsurf
 
int cp_algo
 
gl3::GlDrawable disp_buf
 
gl3::GlDrawable line_buf
 
gl3::GlDrawable cplane_buf
 
gl3::GlDrawable cplines_buf
 
gl3::GlDrawable lsurf_buf
 
gl3::GlDrawable other_buf
 
gl3::GlDrawable order_buf
 
gl3::GlDrawable order_noarrow_buf
 
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 auto_ref_max
 
int auto_ref_max_surf_elem
 
vector< gl3::GlDrawable * > updated_bufs
 
gl3::GlDrawable axes_buf
 
gl3::GlDrawable coord_cross_buf
 
gl3::GlDrawable color_bar
 
gl3::GlDrawable ruler_buf
 
gl3::GlDrawable caption_buf
 
int caption_w
 
int caption_h
 
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
 
SdlWindowwnd
 
glm::mat4 proj_mtx
 
enum VisualizationScene:: { ... }  background
 
const Material BLK_MAT
 
std::array< float, 4 > _l0_pos
 
bool _use_cust_l0_pos
 
int light_mat_idx
 
bool use_light
 

Additional Inherited Members

- Protected Types inherited from VisualizationScene
enum  { BG_BLK = 0, BG_WHITE = 1 }
 
- Static Protected Member Functions inherited from VisualizationSceneSolution3d
static int GetPyramidFaceSplits (const Array< bool > &quad_diag, const Array< int > &faces, const Array< int > &ofaces)
 
static int GetWedgeFaceSplits (const Array< bool > &quad_diag, const Array< int > &faces, const Array< int > &ofaces)
 
static int GetHexFaceSplits (const Array< bool > &quad_diag, const Array< int > &faces, const Array< int > &ofaces)
 

Detailed Description

Definition at line 19 of file vsvector3d.hpp.

Constructor & Destructor Documentation

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

Definition at line 341 of file vsvector3d.cpp.

VisualizationSceneVector3d::VisualizationSceneVector3d ( GridFunction &  vgf)

Definition at line 357 of file vsvector3d.cpp.

VisualizationSceneVector3d::~VisualizationSceneVector3d ( )
virtual

Definition at line 439 of file vsvector3d.cpp.

Member Function Documentation

void VisualizationSceneVector3d::AddVectorFieldLevel ( )

Definition at line 235 of file vsvector3d.cpp.

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

Definition at line 1255 of file vsvector3d.cpp.

virtual void VisualizationSceneVector3d::EventUpdateColors ( )
inlinevirtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 72 of file vsvector3d.hpp.

std::string VisualizationSceneVector3d::GetHelpString ( ) const
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 33 of file vsvector3d.cpp.

gl3::SceneInfo VisualizationSceneVector3d::GetSceneObjs ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 1558 of file vsvector3d.cpp.

void VisualizationSceneVector3d::Init ( )
protected

Definition at line 386 of file vsvector3d.cpp.

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

Definition at line 453 of file vsvector3d.cpp.

void VisualizationSceneVector3d::NPressed ( )

Definition at line 177 of file vsvector3d.cpp.

void VisualizationSceneVector3d::Prepare ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 773 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareCuttingPlane ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 1416 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareDisplacedMesh ( )

Definition at line 1154 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareFlat ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 518 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareFlat2 ( )

Definition at line 587 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareLines ( )
virtual

Reimplemented from VisualizationSceneSolution3d.

Definition at line 898 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareLines2 ( )

Definition at line 979 of file vsvector3d.cpp.

void VisualizationSceneVector3d::PrepareVectorField ( )
virtual

Definition at line 1307 of file vsvector3d.cpp.

void VisualizationSceneVector3d::RemoveVectorFieldLevel ( )

Definition at line 244 of file vsvector3d.cpp.

void VisualizationSceneVector3d::SetScalarFunction ( )

Definition at line 278 of file vsvector3d.cpp.

void VisualizationSceneVector3d::ToggleDisplacements ( )
inline

Definition at line 68 of file vsvector3d.hpp.

void VisualizationSceneVector3d::ToggleScalarFunction ( )

Definition at line 333 of file vsvector3d.cpp.

void VisualizationSceneVector3d::ToggleVectorField ( int  i)

Definition at line 269 of file vsvector3d.cpp.

void VisualizationSceneVector3d::ToggleVectorFieldLevel ( int  v)

Definition at line 204 of file vsvector3d.cpp.

Member Data Documentation

gl3::GlDrawable VisualizationSceneVector3d::displine_buf
protected

Definition at line 26 of file vsvector3d.hpp.

int VisualizationSceneVector3d::drawdisp

Definition at line 37 of file vsvector3d.hpp.

int VisualizationSceneVector3d::drawvector
protected

Definition at line 24 of file vsvector3d.hpp.

Array<double> VisualizationSceneVector3d::dvflevel
protected

Definition at line 34 of file vsvector3d.hpp.

int VisualizationSceneVector3d::ianim

Definition at line 37 of file vsvector3d.hpp.

int VisualizationSceneVector3d::ianimd

Definition at line 37 of file vsvector3d.hpp.

int VisualizationSceneVector3d::ianimmax

Definition at line 37 of file vsvector3d.hpp.

int VisualizationSceneVector3d::scal_func
protected

Definition at line 24 of file vsvector3d.hpp.

FiniteElementSpace* VisualizationSceneVector3d::sfes
protected

Definition at line 29 of file vsvector3d.hpp.

Vector* VisualizationSceneVector3d::solx
protected

Definition at line 23 of file vsvector3d.hpp.

Vector * VisualizationSceneVector3d::soly
protected

Definition at line 23 of file vsvector3d.hpp.

Vector * VisualizationSceneVector3d::solz
protected

Definition at line 23 of file vsvector3d.hpp.

GridFunction* VisualizationSceneVector3d::VecGridF
protected

Definition at line 28 of file vsvector3d.hpp.

gl3::GlDrawable VisualizationSceneVector3d::vector_buf
protected

Definition at line 25 of file vsvector3d.hpp.

Array<int> VisualizationSceneVector3d::vflevel
protected

Definition at line 33 of file vsvector3d.hpp.


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