19 #include <agx/config/AGX_USE_AGXTERRAIN.h> 20 #if defined(SWIG) || AGX_USE_AGXTERRAIN() 27 #include <osg/Drawable> 28 #include <osgViewer/Viewer> 29 #include <osgSim/ColorRange> 30 #include <osgSim/ScalarsToColors> 31 #include <osg/Version> 34 #include <agx/config/AGX_USE_AGXTERRAIN.h> 85 void setRenderVoxelSolidMass(
bool enable);
90 bool getRenderVoxelSolidMass()
const;
96 void setRenderVoxelFluidMass(
bool enable);
101 bool getRenderVoxelFluidMass()
const;
107 void setRenderVoxelBoundingBox(
bool enable);
112 bool getRenderVoxelBoundingBox()
const;
118 void setRenderHeightField(
bool enable);
123 bool getRenderHeightField()
const;
129 void setRenderVoxelCompaction(
bool enable);
134 bool getRenderVoxelCompaction()
const;
140 void setRenderTerrainMaterials(
bool enable);
145 bool getRenderTerrainMaterials()
const;
153 void setRenderDefaultTerrainMaterial(
bool enable);
158 bool getRenderDefaultTerrainMaterial()
const;
174 void setRenderVelocityField(
bool enable);
179 bool getRenderVelocityField()
const;
185 void setRenderSoilParticles(
bool enable);
190 bool getRenderSoilParticles()
const;
196 void setRenderSoilParticlesMesh(
bool enable);
201 bool getRenderSoilParticlesMesh()
const;
208 void setSoilParticleMeshData(
const agx::String& modelFilename,
const agx::String& textureFilename =
"" );
213 const agx::String& getSoilParticleMeshModelFilename()
const;
218 const agx::String& getSoilParticleMeshTextureFilename()
const;
233 bool getRenderHeights()
const;
245 bool getRenderCompaction()
const;
262 void setVelocityFieldLineColor(
const agx::Vec4& lineColor);
268 void setMaxVoxelValueColor(
const agx::Vec4f& maxVoxelColor);
279 osg::ref_ptr<agxOSG::GeometryNode>
node;
298 virtual void addNotification()
override;
299 virtual void removeNotification()
override;
osg::ref_ptr< TerrainVoxelDrawable > m_voxelDrawable
osg::ref_ptr< osgSim::ColorRange > colorRange
osg::ref_ptr< osg::Node > node
Derive from this class to implement a listener for simulation step events.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
A class holding 4 dimensional vectors and providing basic arithmetic.
osg::ref_ptr< osg::Geometry > geometry
agxTerrain::TerrainObserver m_terrain
#define AGX_DECLARE_POINTER_TYPES(type)
osg::ref_ptr< SoilParticleSystemDrawable > m_soilParticleDrawable
const Node * getNode(const IteratorCompatibleContainer &container, agx::Real distanceFromStart)
Finds the wire node given current distance from the start of the wire (wire defined to be iterator co...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
osg::observer_ptr< osg::Group > parent
SoilParticleMeshData m_soilParticleMeshData
agx::String textureFilename
osg::ref_ptr< osg::Vec4Array > colorArray
A node that can be associated with a collision geometry so that the transformation of this node is up...
osg::ref_ptr< osg::Geode > geode
ContextData m_surfaceContextData
osg::ref_ptr< osg::Group > group
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Rendering class for the agxTerrain::Terrain.
agx::String modelFilename
ContextData m_heightsContextData
osg::ref_ptr< agxOSG::GeometryNode > node