Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MCGlobalData Struct Reference

This structure collects variables used in several classes. More...

#include <MCGlobalData.h>

Collaboration diagram for MCGlobalData:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

This structure collects variables used in several classes.

Definition at line 21 of file MCGlobalData.h.


Constructor & Destructor Documentation

MCGlobalData::MCGlobalData  ) 
 

Definition at line 18 of file MCGlobalData.cpp.

References cubeSize, DEBUG0, and isObjectColor.


Member Data Documentation

bool MCGlobalData::compileData
 

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().

bool MCGlobalData::compileNormals
 

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().

int MCGlobalData::cube
 

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().

bool MCGlobalData::cubeBrowser
 

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().

float MCGlobalData::cubeSize[3]
 

Size of a cube.

The default value is (1.0,1.0,1.0). This value is change by three sliders in vuMarchingCubes and used in MarchingCubesBase::marchCubes.

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().

vuVector MCGlobalData::cubeTypeColor1
 

The first selected color.

Definition at line 112 of file MCGlobalData.h.

vuVector MCGlobalData::cubeTypeColor2
 

The second selected color.

Definition at line 114 of file MCGlobalData.h.

int MCGlobalData::cullMode
 

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().

bool MCGlobalData::doMeshStatistics
 

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().

bool MCGlobalData::drawLines
 

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.

bool MCGlobalData::drawNormals
 

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().

bool MCGlobalData::drawObject
 

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().

float MCGlobalData::fpsThres
 

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().

float MCGlobalData::frameRadius
 

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().

bool MCGlobalData::isObjectColor[256]
 

If set to true, the color for the cube is the same as the object color.

If it is false, another color is set for this type.

Definition at line 106 of file MCGlobalData.h.

Referenced by MCGlobalData(), vuMarchingCubes::OnCubeChange(), vuMarchingCubes::OnSelectType(), and vuMarchingCubes::OnSetObjectColor().

vuVector MCGlobalData::lineColor
 

The color for the lines.

Definition at line 110 of file MCGlobalData.h.

Referenced by vuMarchingCubes::createGLNotebook(), vuMarchingCubes::OnSetLineColor(), and MCMesh::render().

int MCGlobalData::linesMode
 

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().

unsigned int MCGlobalData::meshSize
 

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().

float MCGlobalData::normalsLength
 

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().

vuVector MCGlobalData::objectColor[256]
 

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().

unsigned short MCGlobalData::recursions
 

The recursion level for the smoothing algorithm.

Definition at line 45 of file MCGlobalData.h.

float MCGlobalData::smooth
 

The smoothing factor.

Definition at line 43 of file MCGlobalData.h.

bool MCGlobalData::termProgress
 

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().

float MCGlobalData::thres
 

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().

int MCGlobalData::valueMax
 

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().

int MCGlobalData::valueMin
 

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().


The documentation for this struct was generated from the following files:
Generated on Wed Dec 15 21:20:57 2004 for vuVolume by  doxygen 1.3.9.1