Public Member Functions | Protected Attributes

sp::Node Class Reference

#include <spNode.hpp>

Inheritance diagram for sp::Node:
sp::BaseObject sp::scene::SceneNode sp::scene::Camera sp::scene::Light sp::scene::RenderNode sp::scene::FirstPersonCamera sp::scene::MaterialNode sp::scene::SceneGraph sp::scene::Billboard sp::scene::Mesh sp::scene::Terrain sp::scene::SceneGraphFamilyTree sp::scene::SceneGraphPortalBased sp::scene::SceneGraphSimple sp::scene::SceneGraphSimpleStream

List of all members.

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.
NodegetParent () const
 Returns the parent node.

Protected Attributes

bool isVisible_
NodeParent_
std::list< Node * > Children_

Constructor & Destructor Documentation

sp::Node::Node (  ) 
sp::Node::~Node (  )  [virtual]

Member Function Documentation

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.

u32 sp::Node::removeChildren ( const std::list< Node * > &  Children  )  [virtual]

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.


Member Data Documentation

std::list<Node*> sp::Node::Children_ [protected]
bool sp::Node::isVisible_ [protected]
Node* sp::Node::Parent_ [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines