Object3d Class Reference

Models 3d Object. More...

#include <Object3d.h>

Inheritance diagram for Object3d:

ViewObject Object Camera Mesh MVBoard MVPlace ParticleSystem PhongLight OrbitCamera

List of all members.

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.
AnglegetYaw ()
 Getter for yaw.
AnglegetRoll ()
 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.


Detailed Description

Models 3d Object.

Constructor & Destructor Documentation

Object3d::Object3d (  ) 

Standard Constructor.

The Standard Constructor Sets the position to (0, 0, 0) and the angles to 0

Object3d::Object3d ( const Object3d src  ) 

Copy Constructor.

Copy Constructor

Parameters:
object The object that is copied

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)

Parameters:
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


Member Function Documentation

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

Returns:
The angle yaw of the object

Angle & Object3d::getRoll (  ) 

Getter for roll.

Getter for the angle roll

Returns:
The angle roll of the object

void Object3d::setYaw ( const Angle angle  ) 

Setter for yaw.

Setter for yaw

Parameters:
angle The value of yaw

void Object3d::setRoll ( const Angle angle  ) 

Setter for roll.

Setter for roll

Parameters:
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.

Returns:
a string descriping the run-time object

Reimplemented from ViewObject.

Reimplemented in Camera, Mesh, MVPlace, OrbitCamera, ParticleSystem, and PhongLight.

string Object3d::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

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.

Returns:
an id of the object's class

Reimplemented from ViewObject.

Reimplemented in Camera, Mesh, MVPlace, OrbitCamera, ParticleSystem, and PhongLight.


Member Data Documentation

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.


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

Generated on Mon Jul 7 13:30:34 2008 for Firefly by  doxygen 1.5.6