25 #include <osg/MatrixTransform>
26 #include <osg/observer_ptr>
84 virtual osg::Object*
clone(
const osg::CopyOp& copyop)
const {
return new GeometryNode (*
this,copyop); }
86 virtual const char*
className()
const {
return "MatrixTransform"; }
The geometry representation used by the collision detection engine.
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
A node that can be associated with a collision geometry so that the transformation of this node is up...
osg::Node * getRenderChild(RenderFlag flag)
void setRenderChild(RenderFlag flag, osg::Node *node)
Set a child to this node so it can be toggled with the setRenderFlag.
virtual osg::Object * clone(const osg::CopyOp ©op) const
void setGeometry(agxCollide::Geometry *geometry)
Associate this node's transformation with the transformation of the specified geometry.
GeometryNode(agxCollide::Geometry *geometry)
Constructor that associates this node's transformation with the transformation of the specified geome...
void setAutoRemove(bool flag)
Specify whether this node should be removed when the destructor of the associated geometry is called.
agxCollide::Geometry * getGeometry()
Get the associated geometry.
GeometryNode(const GeometryNode &node, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void removeNode(agxCollide::Space *space, agxCollide::Geometry *geometry)
bool getAutoRemove() const
const osg::Node * getRenderChild(RenderFlag flag) const
RenderFlag getSelectedRenderChild() const
osg::ref_ptr< osg::Group > m_renderParent
agxCollide::Geometry::ShapeChangeEvent::CallbackType shapeCallback
agx::observer_ptr< agxCollide::Geometry > m_geometry
virtual const char * className() const
virtual osg::Object * cloneType() const
void selectRenderChild(RenderFlag flag)
GeometryNode()
Default constructor.
virtual bool isSameKindAs(const osg::Object *obj) const
virtual void traverse(osg::NodeVisitor &nv)
osg::ref_ptr< osg::Group > m_geometryParent
virtual const char * libraryName() const
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.