45 virtual void addNotification();
78 Tree() : m_renderer( nullptr ), m_graphicsRoot( nullptr ) {}
80 virtual Tree* clone();
agx::ref_ptr< Tree > TreeRef
Derive from this class to implement a listener for simulation step events.
A class holding 4 dimensional vectors and providing basic arithmetic.
agx::ref_ptr< TreeRenderer > TreeRendererRef
void setColor(const agx::Vec4 &color)
Assign color to this tree.
TreeRendererRef m_renderer
osg::ref_ptr< osg::Group > m_node
osg::observer_ptr< osg::Group > m_graphicsRoot
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
virtual void addNotification(agxSDK::Simulation *simulation) override
Called when this assembly is added to a simulation (given that it not already is in the simulation)...
Tree is a structure of Branch objects in a mathematical Tree structure where a Branch can have severa...
Tree()
Use agxModel::Tree instead if you intend to use this constructor.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
osg::ref_ptr< CylinderGeometryShader > CylinderGeometryShaderRef
AGXCORE_EXPORT Component * root()
CylinderGeometryShaderRef m_cylinderGeometry
const agx::Vec4 getColor() const