AGX Dynamics  2.35.0.1
agxOSG::HeightField Class Reference

Rendering class for the agxCollide::HeightField The visual representation will be updated if the HeightField is modified. More...

#include <HeightField.h>

+ Inheritance diagram for agxOSG::HeightField:

Public Member Functions

 HeightField (const agxCollide::HeightField *heightField)
 Construct a renderable height field from the specified collision HeightField. More...
 
osg::Geometry * getGeometry ()
 
const osg::Geometry * getGeometry () const
 
const agxCollide::HeightField * getHeightField () const
 

Protected Member Functions

virtual ~HeightField ()
 
bool createVisual (const agxCollide::HeightField *heightField)
 
virtual void traverse (osg::NodeVisitor &nv)
 

Protected Attributes

osg::ref_ptr< osg::Geometry > m_geometry
 
agxCollide::HeightFieldConstObserver m_heightField
 
agx::UInt32 m_modifiedCount
 
osg::StateSet * m_stateSet
 

Detailed Description

Rendering class for the agxCollide::HeightField The visual representation will be updated if the HeightField is modified.

Definition at line 39 of file agxOSG/HeightField.h.

Constructor & Destructor Documentation

◆ HeightField()

agxOSG::HeightField::HeightField ( const agxCollide::HeightField *  heightField)

Construct a renderable height field from the specified collision HeightField.

Parameters
heightField- The collision height field that we want to render

◆ ~HeightField()

virtual agxOSG::HeightField::~HeightField ( )
protectedvirtual

Member Function Documentation

◆ createVisual()

bool agxOSG::HeightField::createVisual ( const agxCollide::HeightField *  heightField)
protected

◆ getGeometry() [1/2]

osg::Geometry* agxOSG::HeightField::getGeometry ( )

◆ getGeometry() [2/2]

const osg::Geometry* agxOSG::HeightField::getGeometry ( ) const

◆ getHeightField()

const agxCollide::HeightField* agxOSG::HeightField::getHeightField ( ) const
Returns
the collision HeightField

◆ traverse()

virtual void agxOSG::HeightField::traverse ( osg::NodeVisitor &  nv)
protectedvirtual

Member Data Documentation

◆ m_geometry

osg::ref_ptr<osg::Geometry> agxOSG::HeightField::m_geometry
protected

Definition at line 68 of file agxOSG/HeightField.h.

◆ m_heightField

agxCollide::HeightFieldConstObserver agxOSG::HeightField::m_heightField
protected

Definition at line 67 of file agxOSG/HeightField.h.

◆ m_modifiedCount

agx::UInt32 agxOSG::HeightField::m_modifiedCount
protected

Definition at line 70 of file agxOSG/HeightField.h.

◆ m_stateSet

osg::StateSet* agxOSG::HeightField::m_stateSet
protected

Definition at line 69 of file agxOSG/HeightField.h.


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