19 #include <agx/config/AGX_USE_AGXTERRAIN.h> 20 #if AGX_USE_AGXTERRAIN() 29 #include <osg/Drawable> 30 #include <osg/Version> 38 class AGXOSG_EXPORT SoilParticleSystemDrawable :
public osg::Drawable
43 void setEnable(
bool enable);
44 bool getEnable()
const;
51 virtual osg::Object* cloneType()
const {
return new SoilParticleSystemDrawable(m_terrain); }
52 virtual osg::Object* clone(
const osg::CopyOp&)
const {
return new SoilParticleSystemDrawable(*
this); }
53 virtual bool isSameKindAs(
const osg::Object* obj)
const {
return dynamic_cast<const SoilParticleSystemDrawable *
>(obj) !=
nullptr; }
54 virtual const char* libraryName()
const {
return "agxOSG"; }
55 virtual const char* className()
const {
return "SoilParticleSystemDrawable"; }
58 #if OSG_VERSION_GREATER_OR_EQUAL(3,4,0) 59 virtual osg::BoundingSphere computeBound()
const;
60 virtual osg::BoundingBox computeBoundingBox()
const;
62 virtual osg::BoundingBox computeBound()
const;
66 virtual void drawImplementation(osg::RenderInfo& renderInfo)
const;
73 virtual ~SoilParticleSystemDrawable();
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
AGXBRICK_EXPORT bool isInitialized()