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...
void setRenderChild(RenderFlag flag, osg::Node *node)
Set a child to this node so it can be toggled with the setRenderFlag.
virtual const char * libraryName() 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 updateTransform()
Read the transform from the geometry and update the visual transform node.
void setAutoRemove(bool flag)
Specify whether this node should be removed when the destructor of the associated geometry is called.
GeometryNode(const GeometryNode &node, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void removeNode(agxCollide::Space *space, agxCollide::Geometry *geometry)
virtual osg::Object * cloneType() const
bool getAutoRemove() const
RenderFlag getSelectedRenderChild() const
osg::ref_ptr< osg::Group > m_renderParent
agxCollide::Geometry::ShapeChangeEvent::CallbackType shapeCallback
virtual const char * className() const
virtual osg::Object * clone(const osg::CopyOp ©op) const
const osg::Node * getRenderChild(RenderFlag flag) const
agx::observer_ptr< agxCollide::Geometry > m_geometry
void selectRenderChild(RenderFlag flag)
GeometryNode()
Default constructor.
virtual bool isSameKindAs(const osg::Object *obj) const
agxCollide::Geometry * getGeometry()
Get the associated geometry.
virtual void traverse(osg::NodeVisitor &nv)
osg::ref_ptr< osg::Group > m_geometryParent
osg::Node * getRenderChild(RenderFlag flag)
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.