This is the proxy class for placing and manipulating a set of 2D billboards in the scene. More...
#include <billboard.h>
Public Member Functions | |
Billboard (Ogre::Billboard *InternalBillboard) | |
Internal constructor. More... | |
~Billboard () | |
Class destructor. | |
Ogre::Billboard * | _GetGraphicsObject () const |
Accessor for the internal billboard. More... | |
Real | GetBottomTextureCoord () const |
Gets the Bottom side texture coordinate being used to render this billboard. More... | |
ColourValue | GetColour () const |
Gets the base colour of this billboard. More... | |
Vector3 | GetDirection () const |
Gets the facing direction of this billboard. Only useful with specific types of BillboardSetProxies. More... | |
Real | GetLeftTextureCoord () const |
Gets the Left side texture coordinate being used to render this billboard. More... | |
Vector3 | GetLocation () const |
Gets the location of this billboard relative to it's parent set. More... | |
Real | GetOwnHeight () const |
Gets the individually configured world unit Height of this billboard. More... | |
Real | GetOwnWidth () const |
Gets the individually configured world unit Width of this billboard. More... | |
Real | GetRightTextureCoord () const |
Gets the Right side texture coordinate being used to render this billboard. More... | |
Real | GetRotation () const |
Gets the rotation of this billboard. More... | |
Real | GetTopTextureCoord () const |
Gets the Top side texture coordinate being used to render this billboard. More... | |
Boole | HasOwnDimensions () const |
Gets whether or not this billboard has had it's dimensions individually configured. More... | |
Boole | IsUsingTextureCoordRect () const |
Gets whether or not this billboard is using custom texture coordinates. More... | |
void | ProtoDeSerialize (const XML::Node &SelfRoot) |
Take the data stored in an XML Node and overwrite this object with it. More... | |
void | ProtoSerialize (XML::Node &ParentNode) const |
Convert this class to an XML::Node ready for serialization. More... | |
void | ResetDimensions () |
Resets whatever dimensions are on this billboard to the default provided to the parent BillboardSetProxy. | |
void | SetColour (const ColourValue &Colour) |
Sets the base colour of this billboard. More... | |
void | SetDimensions (const Real Width, const Real Height) |
Sets the world unit dimensions of this billboard. More... | |
void | SetDirection (const Vector3 &Dir) |
Sets the facing direction of this billboard. Only useful with specific types of BillboardSetProxies. More... | |
void | SetLocation (const Vector3 &Loc) |
Sets the location of this billboard relative to it's parent set. More... | |
void | SetRotation (const Real Rot) |
Sets the rotation of this billboard. More... | |
void | SetTextureCoordRect (const Real Left, const Real Top, const Real Right, const Real Bottom) |
Sets the rect in texture coordinates to use for rendering this billboard. More... | |
Static Public Member Functions | |
static String | GetSerializableName () |
Get the name of the the XML tag the proxy class will leave behind as its instances are serialized. More... | |
Protected Attributes | |
Ogre::Billboard * | GraphicsBillboard |
A pointer to the internal Billboard. More... | |
This is the proxy class for placing and manipulating a set of 2D billboards in the scene.
Definition at line 62 of file billboard.h.
Mezzanine::Graphics::Billboard::Billboard | ( | Ogre::Billboard * | InternalBillboard | ) |
Internal constructor.
InternalBillboard | A pointer to the internal Billboard this instance is based on. |
Definition at line 58 of file billboard.cpp.
Ogre::Billboard * Mezzanine::Graphics::Billboard::_GetGraphicsObject | ( | ) | const |
Accessor for the internal billboard.
Definition at line 245 of file billboard.cpp.
Real Mezzanine::Graphics::Billboard::GetBottomTextureCoord | ( | ) | const |
Gets the Bottom side texture coordinate being used to render this billboard.
Definition at line 125 of file billboard.cpp.
ColourValue Mezzanine::Graphics::Billboard::GetColour | ( | ) | const |
Gets the base colour of this billboard.
Definition at line 101 of file billboard.cpp.
Vector3 Mezzanine::Graphics::Billboard::GetDirection | ( | ) | const |
Gets the facing direction of this billboard. Only useful with specific types of BillboardSetProxies.
Definition at line 89 of file billboard.cpp.
Real Mezzanine::Graphics::Billboard::GetLeftTextureCoord | ( | ) | const |
Gets the Left side texture coordinate being used to render this billboard.
Definition at line 116 of file billboard.cpp.
Vector3 Mezzanine::Graphics::Billboard::GetLocation | ( | ) | const |
Gets the location of this billboard relative to it's parent set.
Definition at line 83 of file billboard.cpp.
Real Mezzanine::Graphics::Billboard::GetOwnHeight | ( | ) | const |
Gets the individually configured world unit Height of this billboard.
Definition at line 110 of file billboard.cpp.
Real Mezzanine::Graphics::Billboard::GetOwnWidth | ( | ) | const |
Gets the individually configured world unit Width of this billboard.
Definition at line 107 of file billboard.cpp.
Real Mezzanine::Graphics::Billboard::GetRightTextureCoord | ( | ) | const |
Gets the Right side texture coordinate being used to render this billboard.
Definition at line 122 of file billboard.cpp.
Real Mezzanine::Graphics::Billboard::GetRotation | ( | ) | const |
Gets the rotation of this billboard.
Definition at line 95 of file billboard.cpp.
|
static |
Get the name of the the XML tag the proxy class will leave behind as its instances are serialized.
Definition at line 239 of file billboard.cpp.
Real Mezzanine::Graphics::Billboard::GetTopTextureCoord | ( | ) | const |
Gets the Top side texture coordinate being used to render this billboard.
Definition at line 119 of file billboard.cpp.
Boole Mezzanine::Graphics::Billboard::HasOwnDimensions | ( | ) | const |
Gets whether or not this billboard has had it's dimensions individually configured.
Definition at line 68 of file billboard.cpp.
Boole Mezzanine::Graphics::Billboard::IsUsingTextureCoordRect | ( | ) | const |
Gets whether or not this billboard is using custom texture coordinates.
Definition at line 74 of file billboard.cpp.
void Mezzanine::Graphics::Billboard::ProtoDeSerialize | ( | const XML::Node & | SelfRoot | ) |
Take the data stored in an XML Node and overwrite this object with it.
SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 169 of file billboard.cpp.
void Mezzanine::Graphics::Billboard::ProtoSerialize | ( | XML::Node & | ParentNode | ) | const |
Convert this class to an XML::Node ready for serialization.
ParentNode | The point in the XML hierarchy that all this renderable should be appended to. |
Definition at line 131 of file billboard.cpp.
void Mezzanine::Graphics::Billboard::SetColour | ( | const ColourValue & | Colour | ) |
Sets the base colour of this billboard.
Colour | The colour that will become the base colour of this billboard. |
Definition at line 98 of file billboard.cpp.
Sets the world unit dimensions of this billboard.
Width | The world unit width to be assigned to this specific billboard. |
Height | The world unit height to be assigned to this specific billboard. |
Definition at line 104 of file billboard.cpp.
void Mezzanine::Graphics::Billboard::SetDirection | ( | const Vector3 & | Dir | ) |
Sets the facing direction of this billboard. Only useful with specific types of BillboardSetProxies.
Dir | The facing direction of this billboard. |
Definition at line 86 of file billboard.cpp.
void Mezzanine::Graphics::Billboard::SetLocation | ( | const Vector3 & | Loc | ) |
Sets the location of this billboard relative to it's parent set.
Loc | The relative location to place this billboard. |
Definition at line 80 of file billboard.cpp.
void Mezzanine::Graphics::Billboard::SetRotation | ( | const Real | Rot | ) |
Sets the rotation of this billboard.
Rot | The rotation in radians around the facing axis of this billboard to apply. |
Definition at line 92 of file billboard.cpp.
void Mezzanine::Graphics::Billboard::SetTextureCoordRect | ( | const Real | Left, |
const Real | Top, | ||
const Real | Right, | ||
const Real | Bottom | ||
) |
Sets the rect in texture coordinates to use for rendering this billboard.
Left | The Left texture coordinate to use for rendering this billboard. |
Top | The Top texture coordinate to use for rendering this billboard. |
Right | The Right texture coordinate to use for rendering this billboard. |
Bottom | The Bottom texture coordinate to use for rendering this billboard. |
Definition at line 113 of file billboard.cpp.
|
protected |
A pointer to the internal Billboard.
Definition at line 67 of file billboard.h.