70 #ifndef DOXYGEN_SHOULD_SKIP_THIS 82 struct cVoxelCoordList
87 std::vector<cVoxelCoord> m_coords;
91 #endif // DOXYGEN_SHOULD_SKIP_THIS 129 void setRenderingModeBasic();
132 void setRenderingModeVoxelColors();
135 void setRenderingModeVoxelColorMap();
138 void setRenderingModeIsosurfaceMaterial();
141 void setRenderingModeIsosurfaceColors();
144 void setRenderingModeIsosurfaceColorMap();
147 void setRenderingModeDVRColorMap();
150 void setRenderingModeCustom();
184 void setOpticalDensity(
const float a_opticalDensity) { m_opticalDensity = fabs(a_opticalDensity); }
209 bool polygonize(
cMesh* a_mesh,
double a_gridSizeX = -1.0,
double a_gridSizeY = -1.0,
double a_gridSizeZ = -1.0);
212 bool polygonize(
cMultiMesh* a_multiMesh,
double a_gridSizeX = -1.0,
double a_gridSizeY = -1.0,
double a_gridSizeZ = -1.0);
244 void loadRenderingShaders();
253 virtual bool computeOtherCollisionDetection(
cVector3d& a_segmentPointA,
This class implements a 3D vector.
Definition: CVector3d.h:88
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
cVector3d m_maxCorner
Corner with maximum position coordinate.
Definition: CVoxelObject.h:225
float m_isosurfaceValue
Isosurface value.
Definition: CVoxelObject.h:272
void setOpacityThreshold(const float a_opacityThreshold)
This method sets the opacity threshold. This value is the opacity accumulated along the ray before th...
Definition: CVoxelObject.h:178
This class implements a 3D multi-mesh object.
Definition: CMultiMesh.h:80
cVector3d m_minTextureCoord
Texture coordinate at point v000 (minimum corner).
Definition: CVoxelObject.h:228
cTexture1dPtr m_colorMap
Color Map. (Lookup table)
Definition: CVoxelObject.h:234
int m_renderingMode
Rendering mode.
Definition: CVoxelObject.h:284
Implements a class to model polygonal meshes.
cVector3d m_minCorner
Corner with minimum position coordinate.
Definition: CVoxelObject.h:222
const int C_NUM_VOXEL_RENDERING_MODES
Definition: CVoxelObject.h:56
double m_quality
Quality of the displayed graphical model.
Definition: CVoxelObject.h:269
std::shared_ptr< cTexture1d > cTexture1dPtr
Definition: CTexture1d.h:67
bool m_useColorMap
If true use color mapping.
Definition: CVoxelObject.h:290
Implements a 3D multi-mesh object.
std::shared_ptr< cShader > cShaderPtr
Definition: CShader.h:109
void setIsosurfaceValue(const float a_isosurfaceValue)
This method sets the isosurface value. Used when isometric rendering is enabled.
Definition: CVoxelObject.h:166
void setOpticalDensity(const float a_opticalDensity)
This method sets the optical density factor. This setting is used when the direct volume rendering mo...
Definition: CVoxelObject.h:184
This class implements a 3D volumetric object composed of voxels.
Definition: CVoxelObject.h:107
float m_voxelOpacity
Voxel opacity value.
Definition: CVoxelObject.h:275
void setUseLinearInterpolation(const bool a_useLinearInterpolation)
This method enables or disables linear interpolation.
Definition: CVoxelObject.h:190
cVector3d m_maxTextureCoord
Texture coordinate at point v111 (maximum corner).
Definition: CVoxelObject.h:231
double getQuality()
This method returns the quality level of the graphic rendering.
Definition: CVoxelObject.h:163
This class implements a collision detection recorder that stores all collision events that are report...
Definition: CCollisionBasics.h:185
bool m_useLinearInterpolation
If true use linear interpolation, otherwise used nearest voxel.
Definition: CVoxelObject.h:287
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition: CCollisionBasics.h:242
void setQuality(const double a_quality)
This method sets the quality level of the graphic rendering. This number ranges from 0...
Definition: CVoxelObject.h:160
void setUseColorMap(const bool a_useColorMap)
This method enables or disables the use of the color look-up table.
Definition: CVoxelObject.h:196
float getIsosurfaceValue()
This method returns the isosurface value. This setting is used when isometric rendering is enabled...
Definition: CVoxelObject.h:169
float getOpticalDensity()
This method returns the optical density factor.
Definition: CVoxelObject.h:187
bool m_flagShadersInitialized
Flag that indicates if shaders have been initialized.
Definition: CVoxelObject.h:303
This class implements a 3D polygonal mesh.
Definition: CMesh.h:108
bool getUseColorMap() const
This method returns true if the color look-up table is enabled, false otherwise.
Definition: CVoxelObject.h:199
std::shared_ptr< cShaderProgram > cShaderProgramPtr
Definition: CShaderProgram.h:70
T cClamp(const T &a_value, const T &a_low, const T &a_high)
This function clamps a value to a specified range.
Definition: CMaths.h:362
void setVoxelOpacity(const float a_voxelOpacity)
This method sets the voxel opacity value. This setting is used with basic voxel rendering mode...
Definition: CVoxelObject.h:172
float getOpacityThreshold()
This method returns the opacity threshold.
Definition: CVoxelObject.h:181
Definition: CAudioBuffer.cpp:56
bool getUseLinearInterpolation()
This method returns true if linear interpolation is enabled, false otherwise.
Definition: CVoxelObject.h:193
float m_opticalDensity
Optical density factor.
Definition: CVoxelObject.h:281
float m_opacityThreshold
Opacity threshold. This value is the opacity accumulated along the ray before the shader decides to s...
Definition: CVoxelObject.h:278
float getVoxelOpacity()
This method returns the voxel opacity value.
Definition: CVoxelObject.h:175
std::vector< cVoxelCoordList > m_voxelCoordList
List of points.
Definition: CVoxelObject.h:293