#include <BaseNode.h>


A Node is a class defining the main scene data structure of a simulation. It defined hierarchical relations between elements. Each node can have parent and child nodes (potentially defining a tree), as well as attached objects (the leaves of the tree).
Definition at line 51 of file BaseNode.h.
Public Member Functions | |
| virtual | ~BaseNode () |
Scene hierarchy | |
| virtual BaseNode * | getParent ()=0 |
| Get parent node (or NULL if no hierarchy or for root node). | |
| virtual const BaseNode * | getParent () const =0 |
| Get parent node (or NULL if no hierarchy or for root node). | |
| virtual void | addChild (BaseNode *node)=0 |
| Add a child node. | |
| virtual void | removeChild (BaseNode *node)=0 |
| Remove a child node. | |
| virtual bool | addObject (BaseObject *obj)=0 |
| Add a generic object. | |
| virtual bool | removeObject (BaseObject *obj)=0 |
| Remove a generic object. | |
| virtual BaseContext * | getContext ()=0 |
| Get this node context. | |
| virtual const BaseContext * | getContext () const =0 |
| Get this node context. | |
| virtual sofa::core::objectmodel::BaseNode::~BaseNode | ( | ) | [inline, virtual] |
Definition at line 54 of file BaseNode.h.
| virtual BaseNode* sofa::core::objectmodel::BaseNode::getParent | ( | ) | [pure virtual] |
Get parent node (or NULL if no hierarchy or for root node).
Implemented in sofa::simulation::tree::GNode.
Referenced by sofa::core::objectmodel::DetachNodeEvent::contains(), and sofa::component::collision::DefaultCollisionGroupManager::createGroups().
| virtual const BaseNode* sofa::core::objectmodel::BaseNode::getParent | ( | ) | const [pure virtual] |
Get parent node (or NULL if no hierarchy or for root node).
Implemented in sofa::simulation::tree::GNode.
| virtual void sofa::core::objectmodel::BaseNode::addChild | ( | BaseNode * | node | ) | [pure virtual] |
| virtual void sofa::core::objectmodel::BaseNode::removeChild | ( | BaseNode * | node | ) | [pure virtual] |
Remove a child node.
Implemented in sofa::simulation::tree::GNode.
Referenced by sofa::gui::qt::RealGUI::graphRemoveObject(), and sofa::simulation::tree::Simulation::unload().
| virtual bool sofa::core::objectmodel::BaseNode::addObject | ( | BaseObject * | obj | ) | [pure virtual] |
| virtual bool sofa::core::objectmodel::BaseNode::removeObject | ( | BaseObject * | obj | ) | [pure virtual] |
| virtual BaseContext* sofa::core::objectmodel::BaseNode::getContext | ( | ) | [pure virtual] |
| virtual const BaseContext* sofa::core::objectmodel::BaseNode::getContext | ( | ) | const [pure virtual] |
1.5.3