#include <src/orxonox/overlays/hud/HUDBar.h>
Public Member Functions | |
BarColour (BaseObject *creator) | |
const ColourValue & | getColour () const |
float | getPosition () const |
void | setColour (const ColourValue &colour) |
void | setPosition (float pos) |
virtual void | XMLPort (Element &xmlElement, XMLPort::Mode mode) |
XML loading and saving. | |
virtual | ~BarColour () |
Private Attributes | |
ColourValue | colour_ |
float | position_ |
orxonox::BarColour::BarColour | ( | BaseObject * | creator | ) |
References orxonox::MT_Type::ColourValue, RegisterObject, setColour(), and setPosition().
virtual orxonox::BarColour::~BarColour | ( | ) | [inline, virtual] |
const ColourValue& orxonox::BarColour::getColour | ( | ) | const [inline] |
Referenced by orxonox::HUDBar::addColour(), and XMLPort().
float orxonox::BarColour::getPosition | ( | ) | const [inline] |
Referenced by orxonox::HUDBar::addColour(), and XMLPort().
void orxonox::BarColour::setColour | ( | const ColourValue & | colour | ) | [inline] |
Referenced by BarColour(), and XMLPort().
void orxonox::BarColour::setPosition | ( | float | pos | ) | [inline] |
Referenced by BarColour(), and XMLPort().
void orxonox::BarColour::XMLPort | ( | Element & | xmlelement, | |
XMLPort::Mode | mode | |||
) | [virtual] |
XML loading and saving.
xmlelement | The XML-element | |
loading | Loading (true) or saving (false) |
Reimplemented from orxonox::BaseObject.
References getColour(), getPosition(), setColour(), setPosition(), SUPER, and XMLPortParam.
ColourValue orxonox::BarColour::colour_ [private] |
float orxonox::BarColour::position_ [private] |