#include <MCGlobalData.h>
Collaboration diagram for MCGlobalData:
Public Member Functions | |
MCGlobalData () | |
Public Attributes | |
float | thres |
The Threshold. | |
int | valueMin |
Lowest value in the data. | |
int | valueMax |
Highest value in the data (see valueMin). | |
float | cubeSize [3] |
Size of a cube. | |
float | smooth |
The smoothing factor. | |
unsigned short | recursions |
The recursion level for the smoothing algorithm. | |
bool | compileData |
If true, the data and index arrayes are recompiled. | |
float | frameRadius |
Radius of the tubes and spheres building the frame. | |
bool | drawLines |
If true, a whireframe is drawn. | |
bool | cubeBrowser |
If true the user can browse the cubes. | |
int | cube |
The cube type to be drawn by the cube browser. | |
int | cullMode |
Holds the actual CullFace mode or 0 if faces should not be culled. | |
int | linesMode |
Holds the mode for the line drawing mode. | |
bool | drawNormals |
If set to true the normals should be drawn. | |
float | normalsLength |
The length of the normals. | |
bool | compileNormals |
If true, the normals arra in MCMech is recompiled. | |
vuVector | objectColor [256] |
The object color for a specific cube type. | |
bool | isObjectColor [256] |
If set to true , the color for the cube is the same as the object color. | |
vuVector | lineColor |
The color for the lines. | |
vuVector | cubeTypeColor1 |
The first selected color. | |
vuVector | cubeTypeColor2 |
The second selected color. | |
bool | doMeshStatistics |
If true, MCMesh does some statitics on it's size. | |
unsigned int | meshSize |
Mesh size. | |
float | fpsThres |
If the frame rate falls below this value, the drawing of the object will be turned of. | |
bool | drawObject |
If true, the object will be drawn. | |
bool | termProgress |
If this is true, progress messages are printed to the terminal. |
Definition at line 21 of file MCGlobalData.h.
|
Definition at line 18 of file MCGlobalData.cpp. References cubeSize, DEBUG0, and isObjectColor. |
|
If true, the data and index arrayes are recompiled.
Definition at line 47 of file MCGlobalData.h. Referenced by MCMesh::_compileData(), vuMarchingCubes::OnCubeSizeChange(), and MCMesh::prepare(). |
|
If true, the normals arra in MCMech is recompiled. This should be set when normalsLength is changed and will be reset in MCMesh::_compileNormalsArray. Definition at line 94 of file MCGlobalData.h. Referenced by MCMesh::_compileNormalsArray(), MCMesh::MCMesh(), vuMarchingCubes::OnCubeSizeChange(), vuMarchingCubes::OnNormalLengthChange(), and MCMesh::prepare(). |
|
The cube type to be drawn by the cube browser. This value also indicates the cube type to highlight. Definition at line 70 of file MCGlobalData.h. Referenced by MarchingCubesBase::drawTriangles(), MarchingCubesBase::glRender(), vuMarchingCubes::OnCubeChange(), and vuMarchingCubes::OnSelectType(). |
|
If true the user can browse the cubes. This value is set by vuMarchingCubes::m_cubeEnable and used in MarchingCubesBase::glRender. Definition at line 65 of file MCGlobalData.h. Referenced by vuMarchingCubes::createSettingsNotebook(), MarchingCubesBase::glRender(), and vuMarchingCubes::OnCubeEnabledChecked(). |
|
Size of a cube.
The default value is Definition at line 40 of file MCGlobalData.h. Referenced by MCMesh::_compileData(), MarchingCubesBase::drawCorner(), MarchingCubesBase::drawHorCylinder(), MarchingCubesBase::drawSpot(), MarchingCubesBase::drawVertCylinder(), MarchingCubesBase::glRenderFrame(), vuMarchingCubes::glResize(), MCGlobalData(), and vuMarchingCubes::OnCubeSizeChange(). |
|
The first selected color.
Definition at line 112 of file MCGlobalData.h. |
|
The second selected color.
Definition at line 114 of file MCGlobalData.h. |
|
Holds the actual CullFace mode or 0 if faces should not be culled.
Definition at line 73 of file MCGlobalData.h. Referenced by MarchingCubesBase::glRender(), and vuMarchingCubes::OnCullLinesFrontBackChecked(). |
|
If true, MCMesh does some statitics on it's size.
Definition at line 117 of file MCGlobalData.h. Referenced by MCMesh::_compileData(), MCMesh::AddTriangle(), MCMesh::AddVertex(), and vuMarchingCubes::createSettingsNotebook(). |
|
If true, a whireframe is drawn. This value is set by vuMarchingCubes::m_drawLines and used in several drawing functions MarchingCubesBase. Definition at line 59 of file MCGlobalData.h. |
|
If set to true the normals should be drawn. This value is set by vuMarchingCubes::m_drawNormals and used in MCMesh. Definition at line 84 of file MCGlobalData.h. Referenced by vuMarchingCubes::createSettingsNotebook(), vuMarchingCubes::init(), vuMarchingCubes::OnDrawNormalsChecked(), MCMesh::prepare(), and MCMesh::render(). |
|
If true, the object will be drawn. This variable is used for a simple state machine which turns of the drawing of the object, when the frame rate falls below a certain value. Definition at line 132 of file MCGlobalData.h. Referenced by vuMarchingCubes::glRender(), MarchingCubesBase::glRender(), vuMarchingCubes::onMouseDown(), and vuMarchingCubes::onMouseUp(). |
|
If the frame rate falls below this value, the drawing of the object will be turned of.
Definition at line 127 of file MCGlobalData.h. Referenced by vuMarchingCubes::onMouseDown(). |
|
Radius of the tubes and spheres building the frame. This value is set by the vuMarchingCubes::m_frameRadius slider and read by MarchingCubesBase::glRenderFrame. Definition at line 53 of file MCGlobalData.h. Referenced by MarchingCubesBase::glRenderFrame(), vuMarchingCubes::init(), and vuMarchingCubes::OnChangeFrame(). |
|
If set to
If it is Definition at line 106 of file MCGlobalData.h. Referenced by MCGlobalData(), vuMarchingCubes::OnCubeChange(), vuMarchingCubes::OnSelectType(), and vuMarchingCubes::OnSetObjectColor(). |
|
The color for the lines.
Definition at line 110 of file MCGlobalData.h. Referenced by vuMarchingCubes::createGLNotebook(), vuMarchingCubes::OnSetLineColor(), and MCMesh::render(). |
|
Holds the mode for the line drawing mode. If no lines should be drawn, it is set to zero. Definition at line 78 of file MCGlobalData.h. Referenced by vuMarchingCubes::OnCullLinesFrontBackChecked(), and MCMesh::render(). |
|
Mesh size. This is a byte counter counting the memory usage of all dynamic objects of type MCTriangle and MCVertex. Definition at line 122 of file MCGlobalData.h. Referenced by MCMesh::_compileData(), MCMesh::AddTriangle(), MCMesh::AddVertex(), vuMarchingCubes::doThresChange(), vuMCMCBHistoCallback::Inc(), vuMarchingCubes::init(), MarchingCubesBase::marchCubes(), and MCMesh::MCMesh(). |
|
The length of the normals. This value is set by vuMarchingCubes::m_drawNormalsSize and used in MCMesh when calculating the normals array. Definition at line 89 of file MCGlobalData.h. Referenced by MCMesh::_compileNormalsArray(), vuMarchingCubes::createSettingsNotebook(), vuMarchingCubes::init(), vuMarchingCubes::OnNormalLengthChange(), and MarchingCubesBase::Size(). |
|
The object color for a specific cube type. This value is set by vuMarchingCubes::m_objectColor and used in MCMesh to set up the color array used by glDrawElements. Definition at line 101 of file MCGlobalData.h. Referenced by vuMarchingCubes::createGLNotebook(), vuMarchingCubes::OnCubeChange(), vuMarchingCubes::OnSelectType(), vuMarchingCubes::OnSetObjectColor(), and MCMesh::render(). |
|
The recursion level for the smoothing algorithm.
Definition at line 45 of file MCGlobalData.h. |
|
The smoothing factor.
Definition at line 43 of file MCGlobalData.h. |
|
If this is true, progress messages are printed to the terminal.
Definition at line 135 of file MCGlobalData.h. Referenced by MCMesh::_compileData(), MarchingCubesBase::glRender(), MarchingCubesBase::marchCubes(), and MarchingCubesBase::Size(). |
|
The Threshold. This value is set in vuMarchingCubes through the m_thres slider and read in MarchingCubesBase::marchCubes. Definition at line 27 of file MCGlobalData.h. Referenced by vuMarchingCubes::addTop(), MarchingCubesBase::calcVertex(), MarchingCubesBase::getCubeType(), and vuMarchingCubes::OnThresChange(). |
|
Highest value in the data (see valueMin).
Definition at line 34 of file MCGlobalData.h. Referenced by vuMarchingCubes::addTop(), vuMarchingCubes::doThresChange(), MarchingCubesBase::getCubeType(), and MarchingCubesBase::marchCubes(). |
|
Lowest value in the data. This value is set by MarchingCubesBase::getCubeType and used to adjust the threshold slider vuMarchingCubes::m_thres. Definition at line 32 of file MCGlobalData.h. Referenced by vuMarchingCubes::addTop(), vuMarchingCubes::doThresChange(), MarchingCubesBase::getCubeType(), and MarchingCubesBase::marchCubes(). |