69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81 struct cVoxelCoordList
86 std::vector<cVoxelCoord> m_coords;
90 #endif // DOXYGEN_SHOULD_SKIP_THIS
This class implements a 3D vector.
Definition: CVector3d.h:85
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:211
float m_isosurfaceValue
Isosurface value.
Definition: CVoxelObject.h:258
cVoxelObject()
Constructor of cVoxelObject.
Definition: CVoxelObject.cpp:80
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:177
void update(cRenderOptions &a_options)
This method updates the mesh model.
Definition: CVoxelObject.cpp:385
void setRenderingModeIsosurfaceMaterial()
This method sets an isosurface renderer using shader and material color.
Definition: CVoxelObject.cpp:203
cVector3d m_minTextureCoord
Texture coordinate at point v000 (minimum corner).
Definition: CVoxelObject.h:214
cTexture1dPtr m_colorMap
Color Map. (Lookup table)
Definition: CVoxelObject.h:220
int m_renderingMode
Rendering mode.
Definition: CVoxelObject.h:270
Implements a class to model polygonal meshes.
cVector3d m_minCorner
Corner with minimum position coordinate.
Definition: CVoxelObject.h:208
cShaderPtr m_vertexShaders[C_NUM_VOXEL_RENDERING_MODES]
Vertex shaders.
Definition: CVoxelObject.h:292
void setRenderingModeIsosurfaceColors()
This method sets an isosurface renderer using shader and individual voxel colors. ...
Definition: CVoxelObject.cpp:233
const int C_NUM_VOXEL_RENDERING_MODES
Definition: CVoxelObject.h:55
double m_quality
Quality of the displayed graphical model.
Definition: CVoxelObject.h:255
std::shared_ptr< cTexture1d > cTexture1dPtr
Definition: CTexture1d.h:67
bool m_useColorMap
If true use color mapping.
Definition: CVoxelObject.h:276
std::shared_ptr< cShader > cShaderPtr
Definition: CShader.h:89
void setRenderingModeIsosurfaceColorMap()
This method sets an isosurface renderer using shader and colormap.
Definition: CVoxelObject.cpp:262
virtual void render(cRenderOptions &a_options)
This method renders the object graphically using OpenGL.
Definition: CVoxelObject.cpp:315
void setIsosurfaceValue(const float a_isosurfaceValue)
This method sets the isosurface value. Used when isometric rendering is enabled.
Definition: CVoxelObject.h:165
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:183
This class implements a 3D volumetric object composed of voxels.
Definition: CVoxelObject.h:106
float m_voxelOpacity
Voxel opacity value.
Definition: CVoxelObject.h:261
void setUseLinearInterpolation(const bool a_useLinearInterpolation)
This method enables or disables linear interpolation.
Definition: CVoxelObject.h:189
cVector3d m_maxTextureCoord
Texture coordinate at point v111 (maximum corner).
Definition: CVoxelObject.h:217
void setRenderingModeBasic()
This method sets the basic rendering mode without shader.
Definition: CVoxelObject.cpp:158
double getQuality()
This method returns the quality level of the graphic rendering.
Definition: CVoxelObject.h:162
void setRenderingModeVoxelColorMap()
This method sets a basic voxel renderer with shader and colormap.
Definition: CVoxelObject.cpp:188
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:273
virtual ~cVoxelObject()
Destructor of cVoxelObject.
Definition: CVoxelObject.cpp:148
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:159
void setUseColorMap(const bool a_useColorMap)
This method enables or disables the use of the color look-up table.
Definition: CVoxelObject.h:195
float getIsosurfaceValue()
This method returns the isosurface value. This setting is used when isometric rendering is enabled...
Definition: CVoxelObject.h:168
float getOpticalDensity()
This method returns the optical density factor.
Definition: CVoxelObject.h:186
bool m_flagShadersInitialized
Flag that indicates if shaders have been initialized.
Definition: CVoxelObject.h:289
This class implements a 3D polygonal mesh.
Definition: CMesh.h:108
cVector3d m_edges[12][2]
List of edges.
Definition: CVoxelObject.h:252
cShaderPtr m_fragmentShaders[C_NUM_VOXEL_RENDERING_MODES]
Fragment shaders.
Definition: CVoxelObject.h:295
virtual bool computeOtherCollisionDetection(cVector3d &a_segmentPointA, cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
This method computes any collision between a segment and this object.
Definition: CVoxelObject.cpp:984
bool getUseColorMap() const
This method returns true if the color look-up table is enabled, false otherwise.
Definition: CVoxelObject.h:198
std::shared_ptr< cShaderProgram > cShaderProgramPtr
Definition: CShaderProgram.h:70
void setRenderingModeVoxelColors()
This method sets a basic voxel renderer with shader.
Definition: CVoxelObject.cpp:173
void loadRenderingShaders()
This method loads all rendering shaders.
Definition: CVoxelObject.cpp:748
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:171
float getOpacityThreshold()
This method returns the opacity threshold.
Definition: CVoxelObject.h:180
Definition: CAudioBuffer.cpp:56
bool getUseLinearInterpolation()
This method returns true if linear interpolation is enabled, false otherwise.
Definition: CVoxelObject.h:192
void setRenderingModeCustom()
This method sets a custom shader renderer.
Definition: CVoxelObject.cpp:298
float m_opticalDensity
Optical density factor.
Definition: CVoxelObject.h:267
cShaderProgramPtr m_programShaders[C_NUM_VOXEL_RENDERING_MODES]
Program shaders.
Definition: CVoxelObject.h:298
void setRenderingModeDVRColorMap()
This method sets a direct volume renderer.
Definition: CVoxelObject.cpp:280
float m_opacityThreshold
Opacity threshold. This value is the opacity accumulated along the ray before the shader decides to s...
Definition: CVoxelObject.h:264
float getVoxelOpacity()
This method returns the voxel opacity value.
Definition: CVoxelObject.h:174
std::vector< cVoxelCoordList > m_voxelCoordList
List of points.
Definition: CVoxelObject.h:279