#include <openglvis.hpp>
|
| VisualizationScene () |
|
virtual | ~VisualizationScene () |
|
virtual gl3::SceneInfo | GetSceneObjs ()=0 |
|
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 () |
|
|
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) |
|
Definition at line 62 of file openglvis.hpp.
VisualizationScene::VisualizationScene |
( |
| ) |
|
VisualizationScene::~VisualizationScene |
( |
| ) |
|
|
virtual |
void VisualizationScene::CenterObject |
( |
| ) |
|
void VisualizationScene::CenterObject2D |
( |
| ) |
|
void VisualizationScene::DrawCutQuad |
( |
gl3::GlDrawable & |
buff, |
|
|
const double(&) |
pts[4][3], |
|
|
const double(&) |
cv[4], |
|
|
const double |
minv, |
|
|
const double |
maxv |
|
) |
| |
|
protected |
Draw a 3D quad in physical space with a central square removed. The cut is controlled by the value of cut_lambda. See keys Ctrl+F3/F4. Similar to CutReferenceSquare in lib/vssolution3d.cpp.
Definition at line 196 of file openglvis.cpp.
void VisualizationScene::DrawCutTriangle |
( |
gl3::GlDrawable & |
buff, |
|
|
const double(&) |
pts[4][3], |
|
|
const double(&) |
cv[4], |
|
|
const double |
minv, |
|
|
const double |
maxv |
|
) |
| |
|
protected |
Draw a 3D triangle in physical space with a central triangle removed. The cut is controlled by value of cut_lambda. See keys Ctrl+F3/F4. Similar to CutReferenceTriangle in lib/vssolution3d.cpp.
Definition at line 145 of file openglvis.cpp.
void VisualizationScene::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 |
|
) |
| |
|
protected |
void VisualizationScene::DrawQuad |
( |
gl3::GlDrawable & |
buff, |
|
|
const double(&) |
pts[4][3], |
|
|
const double(&) |
cv[4], |
|
|
const double |
minv, |
|
|
const double |
maxv |
|
) |
| |
|
protected |
void VisualizationScene::DrawTriangle |
( |
gl3::GlDrawable & |
buff, |
|
|
const double(&) |
pts[4][3], |
|
|
const double(&) |
cv[4], |
|
|
const double |
minv, |
|
|
const double |
maxv |
|
) |
| |
|
protected |
void VisualizationScene::GenerateAlphaTexture |
( |
| ) |
|
|
inline |
int VisualizationScene::GetLightMatIdx |
( |
| ) |
|
|
inline |
std::array<float, 4> VisualizationScene::GetLineColor |
( |
| ) |
|
|
inlineprotected |
glm::mat4 VisualizationScene::GetModelViewMtx |
( |
| ) |
|
|
protected |
void VisualizationScene::MySetColor |
( |
gl3::GlBuilder & |
builder, |
|
|
double |
val, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
inlineprotected |
void VisualizationScene::MySetColor |
( |
gl3::GlBuilder & |
builder, |
|
|
double |
val |
|
) |
| |
|
inlineprotected |
void VisualizationScene::PreRotate |
( |
double |
angle, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
void VisualizationScene::Rotate |
( |
double |
angle, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
void VisualizationScene::Rotate |
( |
double |
angley, |
|
|
double |
anglex |
|
) |
| |
void VisualizationScene::Scale |
( |
double |
s | ) |
|
void VisualizationScene::Scale |
( |
double |
s1, |
|
|
double |
s2, |
|
|
double |
s3 |
|
) |
| |
void VisualizationScene::SetLight0CustomPos |
( |
std::array< float, 4 > |
pos | ) |
|
void VisualizationScene::SetLightMatIdx |
( |
unsigned |
i | ) |
|
void VisualizationScene::SetProjectionMtx |
( |
glm::mat4 |
projection | ) |
|
|
inline |
void VisualizationScene::SetView |
( |
double |
theta, |
|
|
double |
phi |
|
) |
| |
void VisualizationScene::ToggleBackground |
( |
| ) |
|
void VisualizationScene::Translate |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z = 0.0 |
|
) |
| |
void VisualizationScene::Zoom |
( |
double |
factor | ) |
|
std::array<float, 4> VisualizationScene::_l0_pos |
|
protected |
bool VisualizationScene::_use_cust_l0_pos |
|
protected |
enum { ... } VisualizationScene::background |
struct { ... } VisualizationScene::bb |
const Material VisualizationScene::BLK_MAT |
|
protected |
Initial value:=
{
{{ 0.0, 0.0, 0.0, 1.0 }},
{{ 0.0, 0.0, 0.0, 1.0 }},
{{ 0.0, 0.0, 0.0, 1.0 }},
0.0
}
Definition at line 78 of file openglvis.hpp.
Camera VisualizationScene::cam |
double VisualizationScene::cut_lambda |
Amount of face cutting with keys Ctrl-F3/F4 (0: no cut, 1: cut to edges)
Definition at line 187 of file openglvis.hpp.
bool VisualizationScene::cut_updated |
Have the reference geometries been updated for the cut?
Definition at line 189 of file openglvis.hpp.
int VisualizationScene::light_mat_idx |
|
protected |
float VisualizationScene::matAlpha = 1.0 |
float VisualizationScene::matAlphaCenter = 0.5 |
int VisualizationScene::movie |
int VisualizationScene::OrthogonalProjection |
int VisualizationScene::print |
glm::mat4 VisualizationScene::proj_mtx |
|
protected |
glm::mat4 VisualizationScene::rotmat |
int VisualizationScene::spinning |
glm::mat4 VisualizationScene::translmat |
bool VisualizationScene::use_light |
|
protected |
int VisualizationScene::view |
This is set by SetVisualizationScene.
Definition at line 224 of file openglvis.hpp.
double VisualizationScene::ViewAngle |
double VisualizationScene::ViewCenterX |
double VisualizationScene::ViewCenterY |
double VisualizationScene::ViewScale |
double VisualizationScene::x[2] |
double VisualizationScene::xscale |
|
protected |
double VisualizationScene::y[2] |
double VisualizationScene::yscale |
|
protected |
double VisualizationScene::z[2] |
double VisualizationScene::zscale |
|
protected |
The documentation for this class was generated from the following files: