#include <Object3d.h>

Public Member Functions | |
| Object3d () | |
| Standard Constructor. | |
| Object3d (const Object3d &src) | |
| Copy Constructor. | |
| Object3d (const Vector &position, const Angle &yaw, const Angle &pitch, const Angle &roll) | |
| Constructor for Initialization by value. | |
| ~Object3d () | |
| Destructor. | |
| Vector | getXDirection () |
| Getter for local x-axis. | |
| Vector | getYDirection () |
| Getter for local y-axis. | |
| Vector | getZDirection () |
| Getter for local z-axis. | |
| Angle & | getYaw () |
| Getter for yaw. | |
| Angle & | getRoll () |
| Getter for roll. | |
| void | setYaw (const Angle &angle) |
| Setter for yaw. | |
| void | setRoll (const Angle &angle) |
| Setter for roll. | |
| virtual void | renderGl ()=0 |
| The rendering function to be used with OpenGL. | |
| virtual void | selectGl ()=0 |
| The selection mode rendering for OpenGL. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
Protected Attributes | |
| Angle | yaw |
| The angle of the rotation around the y-axis. | |
| Angle | roll |
| The angle of the rotation around the x-axis. | |
| Object3d::Object3d | ( | ) |
Standard Constructor.
The Standard Constructor Sets the position to (0, 0, 0) and the angles to 0
| Object3d::Object3d | ( | const Object3d & | src | ) |
| Object3d::Object3d | ( | const Vector & | position, | |
| const Angle & | yaw, | |||
| const Angle & | pitch, | |||
| const Angle & | roll | |||
| ) |
Constructor for Initialization by value.
Constructor for initialization by value The Position is taken as a Vertex (not as a vector)
| position | The position of the object | |
| yaw | The angle yaw of the object | |
| pitch | The angle pitch of the object | |
| roll | The angle roll of the object |
| Object3d::~Object3d | ( | ) |
Destructor.
The Destructor
| Vector Object3d::getXDirection | ( | ) |
Getter for local x-axis.
| Vector Object3d::getYDirection | ( | ) |
Getter for local y-axis.
| Vector Object3d::getZDirection | ( | ) |
Getter for local z-axis.
| Angle & Object3d::getYaw | ( | ) |
Getter for yaw.
Getter for the angle yaw
| Angle & Object3d::getRoll | ( | ) |
Getter for roll.
Getter for the angle roll
| void Object3d::setYaw | ( | const Angle & | angle | ) |
Setter for yaw.
Setter for yaw
| angle | The value of yaw |
| void Object3d::setRoll | ( | const Angle & | angle | ) |
Setter for roll.
Setter for roll
| angle | The value of roll |
| virtual void Object3d::renderGl | ( | ) | [pure virtual] |
The rendering function to be used with OpenGL.
Implemented in Camera, Mesh, MVPlace, ParticleSystem, and PhongLight.
| virtual void Object3d::selectGl | ( | ) | [pure virtual] |
The selection mode rendering for OpenGL.
Implemented in Camera, Mesh, MVPlace, ParticleSystem, and PhongLight.
| string Object3d::toString | ( | ) | const [virtual] |
Returns a textual representation.
Reimplemented from ViewObject.
Reimplemented in Camera, Mesh, MVPlace, OrbitCamera, ParticleSystem, and PhongLight.
| string Object3d::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from ViewObject.
Reimplemented in Camera, Mesh, MVPlace, OrbitCamera, ParticleSystem, and PhongLight.
| enum classId Object3d::classId | ( | ) | const [virtual] |
Returns the class id of the object.
Reimplemented from ViewObject.
Reimplemented in Camera, Mesh, MVPlace, OrbitCamera, ParticleSystem, and PhongLight.
Angle Object3d::yaw [protected] |
The angle of the rotation around the y-axis.
Angle Object3d::roll [protected] |
The angle of the rotation around the x-axis.
1.5.6