a node that can have leafs (DrawableNode) or other nodes as children.  
 More...
#include <SceneNode.hpp>
Inherited by DrawableNode, GroupNode, and SceneCamera.
a node that can have leafs (DrawableNode) or other nodes as children. 
◆ AddPolicy
Policy for adding parent nodes. 
| Enumerator | 
|---|
| Front | Add to front of list.  | 
| Back | Add to back of list (default).  | 
 
 
◆ NodeType
◆ SceneNode()
  
  | 
        
          | SceneNode | ( | const std::string & | name, |  
          |  |  | int | type |  
          |  | ) |  |  |  | inlineprotected | 
 
Construct new scene node. 
- Parameters
- 
  
    | name | [in] name of the node. |  | type | [in] the NodeType. |  
 
 
 
◆ addParent()
Add a parent node. 
- Parameters
- 
  
    | node | [in] the node to add as parent node. |  | policy | [in] the AddPolicy (default is Back). |  
 
 
 
◆ asCameraNode()
Get a pointer to a CameraNode, if this is a CameraNode. 
- Returns
- a pointer, or NULL if the SceneNode is not of correct type. 
Reimplemented in SceneCamera.
 
 
◆ asDrawableNode()
◆ asGroupNode()
◆ getName()
  
  | 
        
          | const std::string& getName | ( |  | ) |  |  | inline | 
 
Get the name of the node. 
- Returns
- the name. 
 
 
◆ getType()
Get the NodeType. 
- Returns
- the type of node. 
 
 
◆ hasParent()
Check if the given node is a parent node. 
- Parameters
- 
  
    | parent | [in] the node to look for. |  
 
- Returns
- true if parent is a parent node. 
 
 
◆ removeParent() [1/2]
erases the parent from the parent list. 
- Note
- this node is not removed from the parents child list, using this 
- Parameters
- 
  
    | node | [in] the parent to remove. |  
 
 
 
◆ removeParent() [2/2]
Remove a parent node. 
- Parameters
- 
  
    | node | [in] the node. |  | parent | [in] the parent node to remove as a parent of node. |  
 
 
 
◆ setName()
  
  | 
        
          | void setName | ( | const std::string & | name | ) |  |  | inline | 
 
Set the name of this node. 
- Parameters
- 
  
  
 
 
The documentation for this class was generated from the following file: