TransformNode Class Reference

Represent a transformation in the scene graph. More...

#include <transform_node.h>

Inheritance diagram for TransformNode:

SceneGraphNode Object ReferenceCounted

List of all members.

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.
SceneGraphNodeget_child ()
 Get the child.
void set_child (SceneGraphNode *_child)
 Set the child.

Private Attributes

Reference< SceneGraphNodechild
 the child of the node
Transform transform
 the transfrom from the child's space to the world space.


Detailed Description

Represent a transformation in the scene graph.

Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void TransformNode::accept ( Visitor visitor  )  [virtual]

Accept a visitor.

Implements Object.

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.


Member Data Documentation

the child of the node

the transfrom from the child's space to the world space.


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

Generated on Tue Sep 8 02:20:35 2009 for cglib by  doxygen 1.5.9