#include <ThingTransform.h>
Inherits Thing.
Inherited by ThingRotAnim.
Inheritance diagram for ThingTransform:
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 |
ThingTransform stores all the necessary values for translation, rotation and scaling. the method render() allows to write the corresponding openGL code
|
constructor
|
|
destructor
|
|
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.
|
|
get the Rotation in a Transform object
|
|
get the Scaling in a Transform object
|
|
get the Translation in a Transform object
|
|
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.
|
|
reset the rotation to 0, 0, 0
|
|
reset the scaling to 0, 0, 0
|
|
reset the translation to 0, 0, 0
|
|
set the rotation
|
|
set the scaling
|
|
set the translation
|
|
|
|
|
|
|