scene::Node Class Reference

This is the main node class. More...

#include <Node.h>

Inheritance diagram for scene::Node:

Inheritance graph
[legend]
Collaboration diagram for scene::Node:

Collaboration graph
[legend]

List of all members.

Public Types

enum  E_TYPE

Public Member Functions

 Node ()
virtual ~Node ()
int32 getSize () const
int32 attachChild (Node *pChild)
int32 detachChild (Node *pChild)
void setParent (Node *pParent)
NodegetParent ()
const NodegetNodeAt (uint32 value)
const NodegetNodeByName (const char *pName)
virtual void update ()
virtual void updateSelected ()
virtual void draw (render::Render *pRender)
void setName (const char *pName)
const lang::String getName ()
void setType (E_TYPE eType)
E_TYPE getType ()
const char * toString ()


Detailed Description

This is the main node class.

Member Enumeration Documentation

The node type.


Constructor & Destructor Documentation

scene::Node::Node (  ) 

Constructor

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

Destructor


Member Function Documentation

int32 scene::Node::getSize (  )  const

Get the size

Returns:
the size

int32 scene::Node::attachChild ( Node pChild  ) 

Attach the child to node

Parameters:
pChild The child
Returns:
the size

int32 scene::Node::detachChild ( Node pChild  ) 

Detach the child to node

Parameters:
pChild The child
Returns:
the size

void scene::Node::setParent ( Node pParent  ) 

Set the parent to the node

Parameters:
pParent The parent

Node* scene::Node::getParent (  ) 

Get the parent

Returns:
the parent

const Node* scene::Node::getNodeAt ( uint32  value  ) 

Get the specific node by value

Parameters:
value The node position
Returns:
the node (if not, return NULL)

const Node* scene::Node::getNodeByName ( const char *  pName  ) 

Get the specific node by name

Parameters:
value The node name
Returns:
the node (if not, return NULL)

virtual void scene::Node::update (  )  [virtual]

Update the node

virtual void scene::Node::updateSelected (  )  [inline, virtual]

Update selected the node

Note:
This will only update the specific node

virtual void scene::Node::draw ( render::Render pRender  )  [virtual]

Draw

Parameters:
pRender The render instance

Reimplemented in scene::LightNode, and scene::MeshNode.

void scene::Node::setName ( const char *  pName  ) 

Set the node name

Parameters:
pName The name of the node

const lang::String scene::Node::getName (  ) 

Get the node name

Returns:
The name of the node

void scene::Node::setType ( E_TYPE  eType  ) 

Set the node type

Parameters:
eType The type of the node

E_TYPE scene::Node::getType (  ) 

Get the node type

Returns:
The type of the node

const char* scene::Node::toString (  )  [inline, virtual]

See also:
Object::toString()

Implements Object.

Reimplemented in scene::Scene.


The documentation for this class was generated from the following file:

Generated on Mon Mar 3 10:53:10 2008 for Aika by  doxygen 1.5.5