Rect Class Reference

#include <Rect.h>

List of all members.

Public Member Functions

 Rect (float length, float height, Ogre::ColourValue colour, Ogre::ManualObject *mObj)
 Rect (const Rect &orig)
virtual ~Rect ()
void Draw (Ogre::Vector3 pos)
void Hide ()
void ClearVertices ()
 Rect (float length, float height, Ogre::ColourValue colour, Ogre::ManualObject *mObj)
 Rect (const Rect &orig)
virtual ~Rect ()
void Draw (Ogre::Vector3 pos)
void Hide ()
void ClearVertices ()
 Rect (float length, float height, Ogre::ColourValue colour, Ogre::ManualObject *mObj)
 Rect (const Rect &orig)
virtual ~Rect ()
void Draw (Ogre::Vector3 pos)
void Hide ()
void ClearVertices ()
 Rect (float length, float height, Ogre::ColourValue colour, Ogre::ManualObject *mObj)
 Rect (const Rect &orig)
virtual ~Rect ()
void Draw (Ogre::Vector3 pos)
void Hide ()
void ClearVertices ()
 Rect (float length, float height, Ogre::ColourValue colour, Ogre::ManualObject *mObj)
 Rect (const Rect &orig)
virtual ~Rect ()
void Draw (Ogre::Vector3 pos)
void Hide ()
void ClearVertices ()

Public Attributes

float length
float height
Ogre::ColourValue colour
Ogre::ManualObject * mObj
Ogre::ManualObject * mObj
Ogre::ManualObject * mObj
Ogre::ManualObject * mObj
Ogre::ManualObject * mObj


Detailed Description

A basic class for drawing a simple rectangle filled with a single color.

Definition at line 16 of file Rect.h.


Constructor & Destructor Documentation

Rect::Rect ( float  length,
float  height,
Ogre::ColourValue  colour,
Ogre::ManualObject *  mObj 
)

Constructor

Definition at line 10 of file Rect.cpp.

Rect::Rect ( const Rect orig  ) 

Definition at line 15 of file Rect.cpp.

Rect::~Rect (  )  [virtual]

Definition at line 19 of file Rect.cpp.

Rect::Rect ( float  length,
float  height,
Ogre::ColourValue  colour,
Ogre::ManualObject *  mObj 
)

Constructor

Rect::Rect ( const Rect orig  ) 

virtual Rect::~Rect (  )  [virtual]

Rect::Rect ( float  length,
float  height,
Ogre::ColourValue  colour,
Ogre::ManualObject *  mObj 
)

Constructor

Rect::Rect ( const Rect orig  ) 

virtual Rect::~Rect (  )  [virtual]

Rect::Rect ( float  length,
float  height,
Ogre::ColourValue  colour,
Ogre::ManualObject *  mObj 
)

Constructor

Rect::Rect ( const Rect orig  ) 

virtual Rect::~Rect (  )  [virtual]

Rect::Rect ( float  length,
float  height,
Ogre::ColourValue  colour,
Ogre::ManualObject *  mObj 
)

Constructor

Rect::Rect ( const Rect orig  ) 

virtual Rect::~Rect (  )  [virtual]


Member Function Documentation

void Rect::Draw ( Ogre::Vector3  pos  ) 

Takes a position and uses width+height to calculate the resulting vertices. Adds these vertices to a manual object to be drawn.

See also:
Hide

ClearVirtices

Parameters:
pos The position at which to draw the health bar.

Definition at line 23 of file Rect.cpp.

References colour, height, length, and mObj.

Referenced by HealthBar::Draw().

void Rect::Hide (  )  [inline]

Makes the rectangle invisible, without actually destroying the vertices used to draw the rectangles.

See also:
Draw

ClearVirtices

Definition at line 40 of file Rect.h.

Referenced by HealthBar::Hide().

void Rect::ClearVertices (  ) 

Deletes all the rectangle vertices in the manual object

See also:
Hide

Draw

Definition at line 55 of file Rect.cpp.

References mObj.

Referenced by HealthBar::ClearVertices().

void Rect::Draw ( Ogre::Vector3  pos  ) 

Takes a position and uses width+height to calculate the resulting vertices. Adds these vertices to a manual object to be drawn.

See also:
Hide

ClearVirtices

Parameters:
pos The position at which to draw the health bar.

void Rect::Hide (  )  [inline]

Makes the rectangle invisible, without actually destroying the vertices used to draw the rectangles.

See also:
Draw

ClearVirtices

Definition at line 41 of file Rect.h.

void Rect::ClearVertices (  ) 

Deletes all the rectangle vertices in the manual object

See also:
Hide

Draw

void Rect::Draw ( Ogre::Vector3  pos  ) 

Takes a position and uses width+height to calculate the resulting vertices. Adds these vertices to a manual object to be drawn.

See also:
Hide

ClearVirtices

Parameters:
pos The position at which to draw the health bar.

void Rect::Hide (  )  [inline]

Makes the rectangle invisible, without actually destroying the vertices used to draw the rectangles.

See also:
Draw

ClearVirtices

Definition at line 41 of file Rect.h.

void Rect::ClearVertices (  ) 

Deletes all the rectangle vertices in the manual object

See also:
Hide

Draw

void Rect::Draw ( Ogre::Vector3  pos  ) 

Takes a position and uses width+height to calculate the resulting vertices. Adds these vertices to a manual object to be drawn.

See also:
Hide

ClearVirtices

Parameters:
pos The position at which to draw the health bar.

void Rect::Hide (  )  [inline]

Makes the rectangle invisible, without actually destroying the vertices used to draw the rectangles.

See also:
Draw

ClearVirtices

Definition at line 40 of file Rect.h.

void Rect::ClearVertices (  ) 

Deletes all the rectangle vertices in the manual object

See also:
Hide

Draw

void Rect::Draw ( Ogre::Vector3  pos  ) 

Takes a position and uses width+height to calculate the resulting vertices. Adds these vertices to a manual object to be drawn.

See also:
Hide

ClearVirtices

Parameters:
pos The position at which to draw the health bar.

void Rect::Hide (  )  [inline]

Makes the rectangle invisible, without actually destroying the vertices used to draw the rectangles.

See also:
Draw

ClearVirtices

Definition at line 40 of file Rect.h.

void Rect::ClearVertices (  ) 

Deletes all the rectangle vertices in the manual object

See also:
Hide

Draw


Member Data Documentation

float Rect::length

Definition at line 51 of file Rect.h.

Referenced by Draw(), and HealthBar::Draw().

float Rect::height

The length of the rectangle

Definition at line 52 of file Rect.h.

Referenced by Draw().

Ogre::ColourValue Rect::colour

The height of the rectangle

Definition at line 53 of file Rect.h.

Referenced by Draw().

Ogre::ManualObject* Rect::mObj

The color of the rectangle

Definition at line 54 of file Rect.h.

Referenced by ClearVertices(), Draw(), and OgreGFX::UIMgr::UIMgr().

Ogre::ManualObject* Rect::mObj

The color of the rectangle

Definition at line 55 of file Rect.h.

Ogre::ManualObject* Rect::mObj

The color of the rectangle

Definition at line 55 of file Rect.h.

Ogre::ManualObject* Rect::mObj

The color of the rectangle

Definition at line 54 of file Rect.h.

Ogre::ManualObject* Rect::mObj

The color of the rectangle

Definition at line 54 of file Rect.h.


The documentation for this class was generated from the following files:
Generated on Fri Dec 13 14:54:19 2013 for FastECSLent by  doxygen 1.5.4