Internal drawable class for drawing the Voxel grid structure.
More...
#include <TerrainVoxelDrawable.h>
|
| virtual | ~TerrainVoxelDrawable () |
| |
| void | renderInternalNodes (const agxTerrain::BasicGrid *solid, const agx::AffineMatrix4x4 &terrainTransform, agxData::Buffer *nodesVertices, agxData::Buffer *nodesColorBuffer, agxData::Buffer *nodesFirstBuffer, agxData::Buffer *nodesCountBuffer, bool enableRenderVoxelBoundingBox) |
| |
| void | renderVelocityTableLines (const agxTerrain::BasicGrid *solid, const agx::AffineMatrix4x4 &terrainTransform, const agx::HashTable< agx::Vec3i, agx::Vec3f > &velocityTable, agx::Real elementSize, bool enableVelocityFieldRendering, agxData::Buffer *linePositions, agxData::Buffer *lineOffsets) |
| |
| void | renderVoxels (const agxTerrain::BasicGrid *solid, const agxTerrain::BasicGrid *fluid, const agxTerrain::BasicGrid *compaction, const agx::AffineMatrix4x4 &terrainTransform, agx::Real elementSize, bool enableRenderVoxelSolidMass, bool enableRenderVoxelFluidMass, bool enableRenderVoxelCompaction, agxData::Buffer *verticesBuffer, agxData::Buffer *colorBuffer, agxData::Buffer *voxelSizeBuffer, agxData::Buffer *enableRenderBuffer, std::function< agx::Vec4f(float)> getColor) |
| |
Internal drawable class for drawing the Voxel grid structure.
Definition at line 41 of file TerrainVoxelDrawable.h.
◆ TerrainVoxelDrawable()
◆ ~TerrainVoxelDrawable()
| virtual agxOSG::TerrainVoxelDrawable::~TerrainVoxelDrawable |
( |
| ) |
|
|
protectedvirtual |
◆ className()
| virtual const char* agxOSG::TerrainVoxelDrawable::className |
( |
| ) |
const |
|
inlinevirtual |
◆ clone()
| virtual osg::Object* agxOSG::TerrainVoxelDrawable::clone |
( |
const osg::CopyOp & |
| ) |
const |
|
inlinevirtual |
◆ cloneType()
| virtual osg::Object* agxOSG::TerrainVoxelDrawable::cloneType |
( |
| ) |
const |
|
inlinevirtual |
◆ computeBound()
| virtual osg::BoundingBox agxOSG::TerrainVoxelDrawable::computeBound |
( |
| ) |
const |
|
virtual |
Compute the bounding box around Drawables's geometry.
◆ drawImplementation()
| virtual void agxOSG::TerrainVoxelDrawable::drawImplementation |
( |
osg::RenderInfo & |
renderInfo | ) |
const |
|
virtual |
The actual draw method for the merged bodies.
◆ getRenderVelocityField()
| bool agxOSG::TerrainVoxelDrawable::getRenderVelocityField |
( |
| ) |
const |
◆ getRenderVoxelBoundingBox()
| bool agxOSG::TerrainVoxelDrawable::getRenderVoxelBoundingBox |
( |
| ) |
const |
◆ getRenderVoxelCompaction()
| bool agxOSG::TerrainVoxelDrawable::getRenderVoxelCompaction |
( |
| ) |
const |
◆ getRenderVoxelFluidMass()
| bool agxOSG::TerrainVoxelDrawable::getRenderVoxelFluidMass |
( |
| ) |
const |
◆ getRenderVoxelSolidMass()
| bool agxOSG::TerrainVoxelDrawable::getRenderVoxelSolidMass |
( |
| ) |
const |
◆ hasEnabledFeatures()
| bool agxOSG::TerrainVoxelDrawable::hasEnabledFeatures |
( |
| ) |
const |
- Returns
- true if at least one feature is enabled
◆ isInitialized()
| bool agxOSG::TerrainVoxelDrawable::isInitialized |
( |
| ) |
const |
- Returns
- true when the render task has been added to the simulation
◆ isSameKindAs()
| virtual bool agxOSG::TerrainVoxelDrawable::isSameKindAs |
( |
const osg::Object * |
obj | ) |
const |
|
inlinevirtual |
◆ libraryName()
| virtual const char* agxOSG::TerrainVoxelDrawable::libraryName |
( |
| ) |
const |
|
inlinevirtual |
◆ onAddNotification()
◆ onRemoveNotification()
| void agxOSG::TerrainVoxelDrawable::onRemoveNotification |
( |
agxSDK::Simulation * |
simulation | ) |
|
◆ renderInternalNodes()
◆ renderVelocityTableLines()
◆ renderVoxels()
| void agxOSG::TerrainVoxelDrawable::renderVoxels |
( |
const agxTerrain::BasicGrid * |
solid, |
|
|
const agxTerrain::BasicGrid * |
fluid, |
|
|
const agxTerrain::BasicGrid * |
compaction, |
|
|
const agx::AffineMatrix4x4 & |
terrainTransform, |
|
|
agx::Real |
elementSize, |
|
|
bool |
enableRenderVoxelSolidMass, |
|
|
bool |
enableRenderVoxelFluidMass, |
|
|
bool |
enableRenderVoxelCompaction, |
|
|
agxData::Buffer * |
verticesBuffer, |
|
|
agxData::Buffer * |
colorBuffer, |
|
|
agxData::Buffer * |
voxelSizeBuffer, |
|
|
agxData::Buffer * |
enableRenderBuffer, |
|
|
std::function< agx::Vec4f(float)> |
getColor |
|
) |
| |
|
protected |
◆ setMaxVoxelValueColor()
| void agxOSG::TerrainVoxelDrawable::setMaxVoxelValueColor |
( |
const agx::Vec4f & |
maxVoxelColor | ) |
|
◆ setRenderVelocityField()
| void agxOSG::TerrainVoxelDrawable::setRenderVelocityField |
( |
bool |
enable | ) |
|
◆ setRenderVoxelBoundingBox()
| void agxOSG::TerrainVoxelDrawable::setRenderVoxelBoundingBox |
( |
bool |
enable | ) |
|
◆ setRenderVoxelCompaction()
| void agxOSG::TerrainVoxelDrawable::setRenderVoxelCompaction |
( |
bool |
enable | ) |
|
◆ setRenderVoxelFluidMass()
| void agxOSG::TerrainVoxelDrawable::setRenderVoxelFluidMass |
( |
bool |
enable | ) |
|
◆ setRenderVoxelSolidMass()
| void agxOSG::TerrainVoxelDrawable::setRenderVoxelSolidMass |
( |
bool |
enable | ) |
|
◆ setVelocityFieldLineColor()
| void agxOSG::TerrainVoxelDrawable::setVelocityFieldLineColor |
( |
const agx::Vec4 & |
lineColor | ) |
|
◆ updateDrawable()
| void agxOSG::TerrainVoxelDrawable::updateDrawable |
( |
| ) |
|
◆ m_colorBuffer
◆ m_colorRange
| osg::ref_ptr<osgSim::ColorRange> agxOSG::TerrainVoxelDrawable::m_colorRange |
|
protected |
◆ m_enable
| bool agxOSG::TerrainVoxelDrawable::m_enable |
|
protected |
◆ m_enableRenderVoxelBoundingBox
| bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelBoundingBox |
|
protected |
◆ m_enableRenderVoxelCompaction
| bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelCompaction |
|
protected |
◆ m_enableRenderVoxelFluidMass
| bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelFluidMass |
|
protected |
◆ m_enableRenderVoxelSolidMass
| bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelSolidMass |
|
protected |
◆ m_enableVelocityFieldRendering
| bool agxOSG::TerrainVoxelDrawable::m_enableVelocityFieldRendering |
|
protected |
◆ m_group
| osg::Group* agxOSG::TerrainVoxelDrawable::m_group |
|
protected |
◆ m_lineKernel
◆ m_lineOffsets
◆ m_linePositions
◆ m_maxVoxelColor
| agx::Vec4f agxOSG::TerrainVoxelDrawable::m_maxVoxelColor |
|
protected |
◆ m_nodesColorBuffer
◆ m_nodesCountBuffer
◆ m_nodesFirstBuffer
◆ m_nodesVertices
◆ m_renderTask
◆ m_rScaling
| float agxOSG::TerrainVoxelDrawable::m_rScaling |
|
protected |
◆ m_terrain
◆ m_verticesBuffer
◆ m_voxelEnableRenderBuffer
◆ m_voxelSizeBuffer
The documentation for this class was generated from the following file: