18 #ifndef AGXOSG_TERRAINRENDERER_H
19 #define AGXOSG_TERRAINRENDERER_H
22 #include <osgSim/ColorRange>
23 #include <osgSim/ScalarsToColors>
24 #include <osg/ref_ptr>
65 osg::HeightField* m_renderHeightField;
67 osg::ref_ptr<osg::Group> m_particleGroup;
68 osg::ref_ptr<osg::Geode> m_sphereInstance;
69 osg::ref_ptr<osg::Vec4Array> m_colorArray;
90 osg::ref_ptr<osg::Group> m_particleGroup;
91 osg::ref_ptr<osg::Geode> m_sphereInstance;
92 osg::ref_ptr<osgSim::ColorRange> m_colorRange;
93 osg::ref_ptr<osg::Vec4Array> m_colorArray;
108 osg::HeightField* m_renderHeightField;
109 osg::ref_ptr<osg::Vec4Array> m_colorArray;
A node that can be associated with a collision geometry so that the transformation of this node is up...
virtual ~TerrainGridRenderer()
TerrainGridRenderer(agxModel::Terrain *terrain, const agxRender::Color &gridColor, agx::Real lineThickness, osg::Group *root)
agxOSG::GeometryNode * getTerrainNode()
void post(const agx::TimeStamp &)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
agxOSG::GeometryNode * getTerrainNode()
void post(const agx::TimeStamp &)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
virtual ~TerrainHeightColorRenderer()
TerrainHeightColorRenderer(agxModel::Terrain *terrain, const agxRender::ColorVector &colorRange, agx::RangeReal youngsRange, bool renderWireFrame, osg::Group *root)
virtual ~TerrainRenderer()
agxOSG::GeometryNode * getTerrainNode()
void post(const agx::TimeStamp &)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
TerrainRenderer(agxModel::Terrain *terrain, agx::RangeReal youngsRange, osg::Group *root)
Utility color class with "common colors".
Derive from this class to implement a listener for simulation step events.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
AGXCORE_EXPORT Component * root()