Rasterfarm-SDK
|
ADT class for applying transforms in a hereditary and directed graph. Each instantiation of this class is in essence a root-node and forms a parent-child relationship whereby the child inherits the parent's transform. More...
#include <node.h>
Public Member Functions | |
Node () | |
virtual | ~Node () |
virtual void | initialize (Scene *pScene, bool addObjectToScene) |
virtual void | addChild (Node *pChild) |
virtual void | removeChild (Node *pChild) |
virtual Primitive3D::AABoundingBox | getAABoundingBox () const |
bool | hasChild (Node *pObject) |
uint | getChildSize () |
const NodeList & | getChild () |
virtual void | setParent (Node *pObject) |
Node * | getParent () const |
Matrix4f | createModel () const |
Vertex3f | getLocalPosition () |
Vertex3f | getGlobalPosition () |
void | setLocalPosition (Vertex3f point) |
void | setGlobalPosition (Vertex3f point) |
template<typename T > | |
void | scale (T scale) |
template<typename T > | |
void | scale (Vector< T, 3 > scale) |
Public Member Functions inherited from DynamicType | |
DynamicType () | |
template<class C > | |
void | addType () |
TypeID | getDerivedTypeId () const |
template<class C > | |
const bool | isType () const |
template<class C > | |
const C * | cast () const |
template<class C > | |
C * | cast () |
template<class FROM , class TO > | |
TO * | cast () |
template<class FROM , class TO > | |
const TO * | cast () const |
Static Public Member Functions | |
static bool | deleteSafe (Node *pObject) |
Protected Attributes | |
NodeList | pChild |
ADT class for applying transforms in a hereditary and directed graph. Each instantiation of this class is in essence a root-node and forms a parent-child relationship whereby the child inherits the parent's transform.
Raster::Node::Node | ( | ) |
Constructor.
|
virtual |
Destructor. Apps need to pass this pointer to Garbage::deleteSafe as rendering occurs on a dedicated thread.
|
virtual |
Add an Object to the array of objects transformed-by this node. A child cannot be added a 2nd time.
pChild | The child-object to add. |
Matrix4f Raster::Node::createModel | ( | ) | const |
|
inlinestatic |
|
virtual |
|
inline |
|
inline |
Vertex3f Raster::Node::getGlobalPosition | ( | ) |
|
inline |
bool Raster::Node::hasChild | ( | Node * | pObject | ) |
|
virtual |
|
virtual |
Remove a child object transformed-by this node.
The | child-object to remove. |
|
virtual |
The | parent Node or nullptr to orphan. |
|
protected |
Objects contained within this Graph.