27 #include <osg/Drawable>
28 #include <osg/Version>
41 void setRenderVoxelSolidMass(
bool enable );
42 bool getRenderVoxelSolidMass()
const;
44 void setRenderVoxelFluidMass(
bool enable );
45 bool getRenderVoxelFluidMass()
const;
47 void setRenderVoxelBoundingBox(
bool enable );
48 bool getRenderVoxelBoundingBox()
const;
50 void setRenderNodes(
bool enable );
51 bool getRenderNodes()
const;
53 void setRenderCompaction(
bool enable );
54 bool getRenderCompaction()
const;
56 void setRenderVelocityField(
bool enable );
57 bool getRenderVelocityField()
const;
59 void setVelocityFieldLineColor(
const agx::Vec4& lineColor);
61 void setMaxVoxelValueColor(
const agx::Vec4f& maxVoxelColor);
66 bool hasEnabledFeatures()
const;
77 virtual const char*
className()
const {
return "TerrainVoxelDrawable"; }
80 #if OSG_VERSION_GREATER_OR_EQUAL(3,4,0)
81 virtual osg::BoundingSphere computeBound()
const;
82 virtual osg::BoundingBox computeBoundingBox()
const;
84 virtual osg::BoundingBox computeBound()
const;
88 virtual void drawImplementation(osg::RenderInfo& renderInfo)
const;
90 void updateDrawable();
virtual osg::Object * clone(const osg::CopyOp &) const
bool m_enableRenderVoxelSolidMass
agxData::BufferRef m_lineOffsets
agxData::BufferRef m_nodesCountBuffer
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
agxTerrain::TerrainRendererRef m_renderer
virtual osg::Object * cloneType() const
agxData::BufferRef m_voxelSizeBuffer
A class holding 4 dimensional vectors and providing basic arithmetic.
agxData::BufferRef m_verticesBuffer
agx::TaskGroupRef m_renderTask
virtual bool isSameKindAs(const osg::Object *obj) const
agxData::BufferRef m_colorBuffer
agxData::BufferRef m_nodesColorBuffer
agxData::BufferRef m_linePositions
osg::ref_ptr< osgSim::ColorRange > m_colorRange
agxData::BufferRef m_nodesVertices
agx::TaskRef m_lineKernel
bool m_enableRenderVoxelBoundingBox
agxData::BufferRef m_voxelEnableRenderBuffer
Internal drawable class for drawing the Voxel grid structure.
virtual const char * className() const
virtual const char * libraryName() const
bool m_enableVelocityFieldRendering
bool m_enableRenderVoxelCompaction
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
AGXBRICK_EXPORT bool isInitialized()
agxTerrain::TerrainRef m_terrain
bool m_enableRenderVoxelFluidMass
agx::Vec4f m_maxVoxelColor
agxData::BufferRef m_nodesFirstBuffer