AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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
virtual agxOSG::HeightField::~HeightField ( )
protectedvirtual

Member Function Documentation

bool agxOSG::HeightField::createVisual ( const agxCollide::HeightField *  heightField)
protected
osg::Geometry* agxOSG::HeightField::getGeometry ( )
const osg::Geometry* agxOSG::HeightField::getGeometry ( ) const
const agxCollide::HeightField* agxOSG::HeightField::getHeightField ( ) const
Returns
the collision HeightField
virtual void agxOSG::HeightField::traverse ( osg::NodeVisitor &  nv)
protectedvirtual

Member Data Documentation

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

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

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

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

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

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

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: