 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
26 #include <osg/Drawable>
27 #include <osg/Version>
46 void setRenderVoxelSolidMass(
bool enable );
47 bool getRenderVoxelSolidMass()
const;
49 void setRenderVoxelFluidMass(
bool enable );
50 bool getRenderVoxelFluidMass()
const;
52 void setRenderVoxelBoundingBox(
bool enable );
53 bool getRenderVoxelBoundingBox()
const;
55 void setRenderVoxelCompaction(
bool enable );
56 bool getRenderVoxelCompaction()
const;
58 void setRenderVelocityField(
bool enable );
59 bool getRenderVelocityField()
const;
61 void setVelocityFieldLineColor(
const agx::Vec4& lineColor);
63 void setMaxVoxelValueColor(
const agx::Vec4f& maxVoxelColor);
68 bool hasEnabledFeatures()
const;
79 virtual const char*
className()
const {
return "TerrainVoxelDrawable"; }
82 #if OSG_VERSION_GREATER_OR_EQUAL(3,4,0)
83 virtual osg::BoundingSphere computeBound()
const;
84 virtual osg::BoundingBox computeBoundingBox()
const;
86 virtual osg::BoundingBox computeBound()
const;
90 virtual void drawImplementation(osg::RenderInfo& renderInfo)
const;
92 void updateDrawable();
102 void renderVelocityTableLines(
107 bool enableVelocityFieldRendering,
117 bool enableRenderVoxelSolidMass,
118 bool enableRenderVoxelFluidMass,
119 bool enableRenderVoxelCompaction,
126 void renderInternalNodes(
133 bool enableRenderVoxelBoundingBox);
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
agxData::BufferRef m_voxelEnableRenderBuffer
virtual const char * libraryName() const
bool m_enableRenderVoxelSolidMass
agxData::BufferRef m_colorBuffer
A class holding 4 dimensional vectors and providing basic arithmetic.
agxData::BufferRef m_lineOffsets
agx::TaskRef m_lineKernel
virtual bool isSameKindAs(const osg::Object *obj) const
bool m_enableRenderVoxelBoundingBox
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
virtual osg::Object * clone(const osg::CopyOp &) const
agx::TaskGroupRef m_renderTask
Inheritance with partial specialization due to bug with ref_ptr containers.
Abstract representation of a data buffer.
osg::ref_ptr< osgSim::ColorRange > m_colorRange
agxTerrain::TerrainRef m_terrain
Pure virtual interface class for the data storage grid classes we have.
virtual osg::Object * cloneType() const
bool m_enableVelocityFieldRendering
agxData::BufferRef m_voxelSizeBuffer
bool m_enableRenderVoxelFluidMass
agxData::BufferRef m_nodesCountBuffer
Internal drawable class for drawing the Voxel grid structure.
agxData::BufferRef m_verticesBuffer
AGXBRICK_EXPORT bool isInitialized()
agxData::BufferRef m_nodesVertices
agxData::BufferRef m_nodesColorBuffer
agxData::BufferRef m_linePositions
agxData::BufferRef m_nodesFirstBuffer
bool m_enableRenderVoxelCompaction
agx::Vec4f m_maxVoxelColor
virtual const char * className() const