#include <ViewObject.h>

Public Member Functions | |
| ViewObject () | |
| Standard constructor. | |
| ViewObject (const ViewObject &source) | |
| Copy constructor. | |
| const Vector & | getPosition () const |
| Getter for the position. | |
| void | setPosition (const Vector &vector) |
| Setter for the position. | |
| Angle & | getPitch () |
| Getter for pitch. | |
| void | setPitch (const Angle &angle) |
| Setter for pitch. | |
| GLuint | getSelectId () |
| Getter for selection Id. | |
| void | setSelectId (const GLuint &selectId) |
| Setter for selection Id. | |
| void | selectColorGl () |
| Color for object picking mode. | |
| 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 | |
| Vector | position |
| The position of the object in 3-Space (Vertex). | |
| Angle | pitch |
| The angle of the rotation around the z-axis. | |
Private Attributes | |
| GLuint | selectId |
| Selection id for object picking. | |
| ViewObject::ViewObject | ( | ) |
Standard constructor.
Standard Constructor assigns a unique selection mode id and initializes coordinates to zero.
| ViewObject::ViewObject | ( | const ViewObject & | source | ) |
Copy constructor.
| const Vector & ViewObject::getPosition | ( | ) | const |
Getter for the position.
Getter for the position
| void ViewObject::setPosition | ( | const Vector & | vector | ) |
Setter for the position.
The resulting vector is a vertex (not a vector)
| The | new position of the object |
| Angle & ViewObject::getPitch | ( | ) |
Getter for pitch.
Getter for the angle pitch
| void ViewObject::setPitch | ( | const Angle & | angle | ) |
Setter for pitch.
Setter for pitch
| angle | The value of pitch |
| GLuint ViewObject::getSelectId | ( | ) |
Getter for selection Id.
This id should not be changed once it is given to an object and should always remain unique
| void ViewObject::setSelectId | ( | const GLuint & | selectId | ) |
| void ViewObject::selectColorGl | ( | ) |
Color for object picking mode.
Calls glColor() with the unique color designed to identify this object.
| string ViewObject::toString | ( | ) | const [virtual] |
Returns a textual representation.
Reimplemented from Object.
Reimplemented in Button, Camera, Console, FpsCounter, HudFood, HudInventory, HudMenu, HudScore, HudWater, IdPicker, Label, Mesh, MouseCursor, MVPlace, Object2d, Object3d, OrbitCamera, ParticleSystem, PhongLight, SplashMessage, StartUpTimer, TextBlock, and Webcam.
| string ViewObject::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from Object.
Reimplemented in Button, Camera, Console, FpsCounter, HudFood, HudInventory, HudMenu, HudScore, HudWater, IdPicker, Label, Mesh, MouseCursor, MVPlace, Object2d, Object3d, OrbitCamera, ParticleSystem, PhongLight, SplashMessage, StartUpTimer, TextBlock, and Webcam.
| enum classId ViewObject::classId | ( | ) | const [virtual] |
Returns the class id of the object.
Reimplemented from Object.
Reimplemented in Button, Camera, Console, FpsCounter, HudFood, HudInventory, HudMenu, HudScore, HudWater, IdPicker, Label, Mesh, MouseCursor, MVPlace, Object2d, Object3d, OrbitCamera, ParticleSystem, PhongLight, SplashMessage, StartUpTimer, TextBlock, and Webcam.
GLuint ViewObject::selectId [private] |
Selection id for object picking.
Vector ViewObject::position [protected] |
The position of the object in 3-Space (Vertex).
Angle ViewObject::pitch [protected] |
The angle of the rotation around the z-axis.
1.5.6