#include <transform_node.h>
Public Member Functions | |
TransformNode () | |
A constructor that sets the transformation to the identity transformation, and set the child of the node to NULL. | |
virtual | ~TransformNode () |
A destructor that does nothing. | |
virtual void | accept (Visitor *visitor) |
Accept a visitor. | |
Transform | get_transform () const |
Get the transform from the child's space to the world space. | |
void | set_transform (const Transform &_transform) |
Set the transform to the given transform. | |
SceneGraphNode * | get_child () |
Get the child. | |
void | set_child (SceneGraphNode *_child) |
Set the child. | |
Private Attributes | |
Reference< SceneGraphNode > | child |
the child of the node | |
Transform | transform |
the transfrom from the child's space to the world space. |
TransformNode::TransformNode | ( | ) |
A constructor that sets the transformation to the identity transformation, and set the child of the node to NULL.
virtual TransformNode::~TransformNode | ( | ) | [virtual] |
A destructor that does nothing.
virtual void TransformNode::accept | ( | Visitor * | visitor | ) | [virtual] |
SceneGraphNode* TransformNode::get_child | ( | ) |
Get the child.
Transform TransformNode::get_transform | ( | ) | const |
Get the transform from the child's space to the world space.
void TransformNode::set_child | ( | SceneGraphNode * | _child | ) |
Set the child.
void TransformNode::set_transform | ( | const Transform & | _transform | ) |
Set the transform to the given transform.
Reference<SceneGraphNode> TransformNode::child [private] |
the child of the node
Transform TransformNode::transform [private] |
the transfrom from the child's space to the world space.