Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ThingTransform Class Reference

Transform Thing for the scenegraph. More...

#include <ThingTransform.h>

Inherits Thing.

Inherited by ThingRotAnim.

Inheritance diagram for ThingTransform:

Inheritance graph
[legend]
Collaboration diagram for ThingTransform:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingTransform (void)
 constructor
virtual ~ThingTransform (void)
 destructor
Transform getTranslation ()
 get the Translation in a Transform object
Transform getRotation ()
 get the Rotation in a Transform object
Transform getScale ()
 get the Scaling in a Transform object
void setTranslation (float new_x, float new_y, float new_z)
 set the translation
void setRotation (float new_x, float new_y, float new_z)
 set the rotation
void setScale (float new_x, float new_y, float new_z)
 set the scaling
void resetTranslation ()
 reset the translation to 0, 0, 0
void resetRotation ()
 reset the rotation to 0, 0, 0
void resetScale ()
 reset the scaling to 0, 0, 0
void render ()
 write the corresponding openGL code to the settings in the transform Thing and give the command to render the children of this Thing
void finish ()
 write the corresponding openGL code to reset the setting to before render() (e.g. glPopMatrix()), called in the openGL display()

Protected Attributes

Transform translation
Transform rotation
Transform scale

Detailed Description

Transform Thing for the scenegraph.

ThingTransform stores all the necessary values for translation, rotation and scaling. the method render() allows to write the corresponding openGL code


Constructor & Destructor Documentation

ThingTransform::ThingTransform void   ) 
 

constructor

ThingTransform::~ThingTransform void   )  [virtual]
 

destructor


Member Function Documentation

void ThingTransform::finish  )  [virtual]
 

write the corresponding openGL code to reset the setting to before render() (e.g. glPopMatrix()), called in the openGL display()

Reimplemented from Thing.

Reimplemented in ThingRotAnim.

Transform ThingTransform::getRotation  ) 
 

get the Rotation in a Transform object

Returns:
Transform object with the rotation

Transform ThingTransform::getScale  ) 
 

get the Scaling in a Transform object

Returns:
Transform object with the scaling

Transform ThingTransform::getTranslation  ) 
 

get the Translation in a Transform object

Returns:
Transform object with the translation

void ThingTransform::render  )  [virtual]
 

write the corresponding openGL code to the settings in the transform Thing and give the command to render the children of this Thing

Reimplemented from Thing.

Reimplemented in ThingRotAnim.

void ThingTransform::resetRotation  ) 
 

reset the rotation to 0, 0, 0

void ThingTransform::resetScale  ) 
 

reset the scaling to 0, 0, 0

void ThingTransform::resetTranslation  ) 
 

reset the translation to 0, 0, 0

void ThingTransform::setRotation float  new_x,
float  new_y,
float  new_z
 

set the rotation

Parameters:
x rotation in Degree °
y rotation in Degree °
z rotation in Degree °

void ThingTransform::setScale float  new_x,
float  new_y,
float  new_z
 

set the scaling

Parameters:
x scaling
y scaling
z scaling

void ThingTransform::setTranslation float  new_x,
float  new_y,
float  new_z
 

set the translation

Parameters:
x translation
y translation
z translation


Member Data Documentation

Transform ThingTransform::rotation [protected]
 

Transform ThingTransform::scale [protected]
 

Transform ThingTransform::translation [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:34 2005 for Loud and Proud by doxygen 1.3.8