#include <spNode.hpp>
Public Member Functions | |
Node () | |
virtual | ~Node () |
virtual void | setVisible (bool isVisible) |
Enables or disables the node. | |
virtual void | addChild (Node *Child) |
Adds the specified child. | |
virtual void | addChildren (const std::list< Node * > &Children) |
Adds the specified children. | |
virtual bool | removeChild (Node *Child) |
Removes the specified child and returns true if the child could be removed. | |
virtual bool | removeChild () |
Removes the first child and returns true if a child could be removed. | |
virtual u32 | removeChildren (const std::list< Node * > &Children) |
Removes the specified children and returns the count of removed children. | |
virtual void | removeChildren () |
Removes all children. | |
const std::list< Node * > & | getChildren () const |
Returns the children list. | |
bool | getVisible () const |
Returns true if this node is visible (or rather enabled). | |
void | setParent (Node *Parent) |
Sets the parent node. | |
Node * | getParent () const |
Returns the parent node. | |
Protected Attributes | |
bool | isVisible_ |
Node * | Parent_ |
std::list< Node * > | Children_ |
sp::Node::Node | ( | ) |
sp::Node::~Node | ( | ) | [virtual] |
void sp::Node::addChild | ( | Node * | Child | ) | [virtual] |
Adds the specified child.
void sp::Node::addChildren | ( | const std::list< Node * > & | Children | ) | [virtual] |
Adds the specified children.
const std::list<Node*>& sp::Node::getChildren | ( | ) | const [inline] |
Returns the children list.
Node* sp::Node::getParent | ( | ) | const [inline] |
Returns the parent node.
Reimplemented in sp::scene::SceneNode.
bool sp::Node::getVisible | ( | ) | const [inline] |
Returns true if this node is visible (or rather enabled).
bool sp::Node::removeChild | ( | Node * | Child | ) | [virtual] |
Removes the specified child and returns true if the child could be removed.
bool sp::Node::removeChild | ( | ) | [virtual] |
Removes the first child and returns true if a child could be removed.
Reimplemented in sp::scene::SceneNode.
void sp::Node::removeChildren | ( | ) | [virtual] |
Removes all children.
Reimplemented in sp::scene::SceneNode.
Removes the specified children and returns the count of removed children.
void sp::Node::setParent | ( | Node * | Parent | ) | [inline] |
Sets the parent node.
void sp::Node::setVisible | ( | bool | isVisible | ) | [virtual] |
Enables or disables the node.
Reimplemented in sp::scene::Light.
std::list<Node*> sp::Node::Children_ [protected] |
bool sp::Node::isVisible_ [protected] |
Node* sp::Node::Parent_ [protected] |