AGXDynamics  2.31.1.0
agxOSG::TerrainVoxelDrawable Class Reference

Internal drawable class for drawing the Voxel grid structure. More...

#include <TerrainVoxelDrawable.h>

+ Inheritance diagram for agxOSG::TerrainVoxelDrawable:

Public Member Functions

 TerrainVoxelDrawable (agxTerrain::Terrain *terrain)
 
virtual const char * className () const
 
virtual osg::Object * clone (const osg::CopyOp &) const
 
virtual osg::Object * cloneType () const
 
virtual osg::BoundingBox computeBound () const
 Compute the bounding box around Drawables's geometry. More...
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 The actual draw method for the merged bodies. More...
 
bool getRenderCompaction () const
 
bool getRenderNodes () const
 
bool getRenderVelocityField () const
 
bool getRenderVoxelBoundingBox () const
 
bool getRenderVoxelFluidMass () const
 
bool getRenderVoxelSolidMass () const
 
bool hasEnabledFeatures () const
 
bool isInitialized () const
 
virtual bool isSameKindAs (const osg::Object *obj) const
 
virtual const char * libraryName () const
 
void onAddNotification (agxSDK::Simulation *simulation)
 
void onRemoveNotification (agxSDK::Simulation *simulation)
 
void setMaxVoxelValueColor (const agx::Vec4f &maxVoxelColor)
 
void setRenderCompaction (bool enable)
 
void setRenderNodes (bool enable)
 
void setRenderVelocityField (bool enable)
 
void setRenderVoxelBoundingBox (bool enable)
 
void setRenderVoxelFluidMass (bool enable)
 
void setRenderVoxelSolidMass (bool enable)
 
void setVelocityFieldLineColor (const agx::Vec4 &lineColor)
 
void updateDrawable ()
 

Protected Member Functions

virtual ~TerrainVoxelDrawable ()
 

Protected Attributes

agxData::BufferRef m_colorBuffer
 
osg::ref_ptr< osgSim::ColorRange > m_colorRange
 
bool m_enable
 
bool m_enableRenderNodes
 
bool m_enableRenderVoxelBoundingBox
 
bool m_enableRenderVoxelCompaction
 
bool m_enableRenderVoxelFluidMass
 
bool m_enableRenderVoxelSolidMass
 
bool m_enableVelocityFieldRendering
 
osg::Group * m_group
 
agx::TaskRef m_lineKernel
 
agxData::BufferRef m_lineOffsets
 
agxData::BufferRef m_linePositions
 
agx::Vec4f m_maxVoxelColor
 
agxData::BufferRef m_nodesColorBuffer
 
agxData::BufferRef m_nodesCountBuffer
 
agxData::BufferRef m_nodesFirstBuffer
 
agxData::BufferRef m_nodesVertices
 
agxTerrain::TerrainRendererRef m_renderer
 
agx::TaskGroupRef m_renderTask
 
float m_rScaling
 
agxTerrain::TerrainRef m_terrain
 
agxData::BufferRef m_verticesBuffer
 
agxData::BufferRef m_voxelEnableRenderBuffer
 
agxData::BufferRef m_voxelSizeBuffer
 

Detailed Description

Internal drawable class for drawing the Voxel grid structure.

Definition at line 36 of file TerrainVoxelDrawable.h.

Constructor & Destructor Documentation

◆ TerrainVoxelDrawable()

agxOSG::TerrainVoxelDrawable::TerrainVoxelDrawable ( agxTerrain::Terrain *  terrain)

◆ ~TerrainVoxelDrawable()

virtual agxOSG::TerrainVoxelDrawable::~TerrainVoxelDrawable ( )
protectedvirtual

Member Function Documentation

◆ className()

virtual const char* agxOSG::TerrainVoxelDrawable::className ( ) const
inlinevirtual

Definition at line 77 of file TerrainVoxelDrawable.h.

◆ clone()

virtual osg::Object* agxOSG::TerrainVoxelDrawable::clone ( const osg::CopyOp &  ) const
inlinevirtual

Definition at line 74 of file TerrainVoxelDrawable.h.

◆ cloneType()

virtual osg::Object* agxOSG::TerrainVoxelDrawable::cloneType ( ) const
inlinevirtual

Definition at line 73 of file TerrainVoxelDrawable.h.

◆ 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.

◆ getRenderCompaction()

bool agxOSG::TerrainVoxelDrawable::getRenderCompaction ( ) const

◆ getRenderNodes()

bool agxOSG::TerrainVoxelDrawable::getRenderNodes ( ) const

◆ getRenderVelocityField()

bool agxOSG::TerrainVoxelDrawable::getRenderVelocityField ( ) const

◆ getRenderVoxelBoundingBox()

bool agxOSG::TerrainVoxelDrawable::getRenderVoxelBoundingBox ( ) 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

Definition at line 75 of file TerrainVoxelDrawable.h.

◆ libraryName()

virtual const char* agxOSG::TerrainVoxelDrawable::libraryName ( ) const
inlinevirtual

Definition at line 76 of file TerrainVoxelDrawable.h.

◆ onAddNotification()

void agxOSG::TerrainVoxelDrawable::onAddNotification ( agxSDK::Simulation *  simulation)

◆ onRemoveNotification()

void agxOSG::TerrainVoxelDrawable::onRemoveNotification ( agxSDK::Simulation *  simulation)

◆ setMaxVoxelValueColor()

void agxOSG::TerrainVoxelDrawable::setMaxVoxelValueColor ( const agx::Vec4f &  maxVoxelColor)

◆ setRenderCompaction()

void agxOSG::TerrainVoxelDrawable::setRenderCompaction ( bool  enable)

◆ setRenderNodes()

void agxOSG::TerrainVoxelDrawable::setRenderNodes ( bool  enable)

◆ setRenderVelocityField()

void agxOSG::TerrainVoxelDrawable::setRenderVelocityField ( bool  enable)

◆ setRenderVoxelBoundingBox()

void agxOSG::TerrainVoxelDrawable::setRenderVoxelBoundingBox ( 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 ( )

Member Data Documentation

◆ m_colorBuffer

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_colorBuffer
protected

Definition at line 117 of file TerrainVoxelDrawable.h.

◆ m_colorRange

osg::ref_ptr<osgSim::ColorRange> agxOSG::TerrainVoxelDrawable::m_colorRange
protected

Definition at line 106 of file TerrainVoxelDrawable.h.

◆ m_enable

bool agxOSG::TerrainVoxelDrawable::m_enable
protected

Definition at line 107 of file TerrainVoxelDrawable.h.

◆ m_enableRenderNodes

bool agxOSG::TerrainVoxelDrawable::m_enableRenderNodes
protected

Definition at line 113 of file TerrainVoxelDrawable.h.

◆ m_enableRenderVoxelBoundingBox

bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelBoundingBox
protected

Definition at line 112 of file TerrainVoxelDrawable.h.

◆ m_enableRenderVoxelCompaction

bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelCompaction
protected

Definition at line 111 of file TerrainVoxelDrawable.h.

◆ m_enableRenderVoxelFluidMass

bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelFluidMass
protected

Definition at line 110 of file TerrainVoxelDrawable.h.

◆ m_enableRenderVoxelSolidMass

bool agxOSG::TerrainVoxelDrawable::m_enableRenderVoxelSolidMass
protected

Definition at line 109 of file TerrainVoxelDrawable.h.

◆ m_enableVelocityFieldRendering

bool agxOSG::TerrainVoxelDrawable::m_enableVelocityFieldRendering
protected

Definition at line 114 of file TerrainVoxelDrawable.h.

◆ m_group

osg::Group* agxOSG::TerrainVoxelDrawable::m_group
protected

Definition at line 104 of file TerrainVoxelDrawable.h.

◆ m_lineKernel

agx::TaskRef agxOSG::TerrainVoxelDrawable::m_lineKernel
protected

Definition at line 131 of file TerrainVoxelDrawable.h.

◆ m_lineOffsets

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_lineOffsets
protected

Definition at line 130 of file TerrainVoxelDrawable.h.

◆ m_linePositions

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_linePositions
protected

Definition at line 129 of file TerrainVoxelDrawable.h.

◆ m_maxVoxelColor

agx::Vec4f agxOSG::TerrainVoxelDrawable::m_maxVoxelColor
protected

Definition at line 120 of file TerrainVoxelDrawable.h.

◆ m_nodesColorBuffer

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_nodesColorBuffer
protected

Definition at line 124 of file TerrainVoxelDrawable.h.

◆ m_nodesCountBuffer

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_nodesCountBuffer
protected

Definition at line 125 of file TerrainVoxelDrawable.h.

◆ m_nodesFirstBuffer

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_nodesFirstBuffer
protected

Definition at line 126 of file TerrainVoxelDrawable.h.

◆ m_nodesVertices

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_nodesVertices
protected

Definition at line 123 of file TerrainVoxelDrawable.h.

◆ m_renderer

agxTerrain::TerrainRendererRef agxOSG::TerrainVoxelDrawable::m_renderer
protected

Definition at line 133 of file TerrainVoxelDrawable.h.

◆ m_renderTask

agx::TaskGroupRef agxOSG::TerrainVoxelDrawable::m_renderTask
protected

Definition at line 105 of file TerrainVoxelDrawable.h.

◆ m_rScaling

float agxOSG::TerrainVoxelDrawable::m_rScaling
protected

Definition at line 108 of file TerrainVoxelDrawable.h.

◆ m_terrain

agxTerrain::TerrainRef agxOSG::TerrainVoxelDrawable::m_terrain
protected

Definition at line 103 of file TerrainVoxelDrawable.h.

◆ m_verticesBuffer

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_verticesBuffer
protected

Definition at line 116 of file TerrainVoxelDrawable.h.

◆ m_voxelEnableRenderBuffer

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_voxelEnableRenderBuffer
protected

Definition at line 119 of file TerrainVoxelDrawable.h.

◆ m_voxelSizeBuffer

agxData::BufferRef agxOSG::TerrainVoxelDrawable::m_voxelSizeBuffer
protected

Definition at line 118 of file TerrainVoxelDrawable.h.


The documentation for this class was generated from the following file: