Object2d Class Reference

Models 2d Object. More...

#include <Object2d.h>

Inheritance diagram for Object2d:

ViewObject Object Button Console HudFood HudInventory HudMenu HudWater Label MouseCursor TextBlock Webcam

List of all members.

Public Member Functions

 Object2d ()
 Standard Constructor.
 Object2d (const Object2d &src)
 Copy Constructor.
 Object2d (const Vector &position, const Angle &pitch)
 Constructor for Initialization by value.
 ~Object2d ()
 Destructor.
virtual void renderGl ()=0
 The rendering function to be used with OpenGL.
virtual void selectGl ()=0
 The selection mode rendering function 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.


Detailed Description

Models 2d Object.

Constructor & Destructor Documentation

Object2d::Object2d (  ) 

Standard Constructor.

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

Object2d::Object2d ( const Object2d src  ) 

Copy Constructor.

Copy Constructor

Parameters:
object The object that is copied

Object2d::Object2d ( const Vector position,
const Angle pitch 
)

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
pitch The angle pitch of the object

Object2d::~Object2d (  ) 

Destructor.

The Destructor


Member Function Documentation

virtual void Object2d::renderGl (  )  [pure virtual]

The rendering function to be used with OpenGL.

Implemented in Button, Console, FpsCounter, HudFood, HudInventory, HudMenu, HudScore, HudWater, Label, MouseCursor, SplashMessage, StartUpTimer, TextBlock, and Webcam.

virtual void Object2d::selectGl (  )  [pure virtual]

The selection mode rendering function for OpenGL.

Implemented in Button, Console, HudFood, HudInventory, HudMenu, HudScore, HudWater, Label, MouseCursor, SplashMessage, TextBlock, and Webcam.

string Object2d::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from ViewObject.

Reimplemented in Button, Console, FpsCounter, HudFood, HudInventory, HudMenu, HudScore, HudWater, IdPicker, Label, MouseCursor, SplashMessage, StartUpTimer, TextBlock, and Webcam.

string Object2d::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 Button, Console, FpsCounter, HudFood, HudInventory, HudMenu, HudScore, HudWater, IdPicker, Label, MouseCursor, SplashMessage, StartUpTimer, TextBlock, and Webcam.

enum classId Object2d::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from ViewObject.

Reimplemented in Button, Console, FpsCounter, HudFood, HudInventory, HudMenu, HudScore, HudWater, IdPicker, Label, MouseCursor, SplashMessage, StartUpTimer, TextBlock, and Webcam.


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