TextBillboardComponent Class Reference

Component wrapper of Irrlicht's IBillboardTextSceneNode. More...

Inheritance diagram for TextBillboardComponent:

Inheritance graph
[legend]
Collaboration diagram for TextBillboardComponent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TextBillboardComponent (Entity *parent)
 Constructor (default).
 TextBillboardComponent (Entity *parent, const std::string &fontFileName, const wchar_t *text, const dimension2df &size=dimension2df(10.0f, 10.0f), const SColor &colorTop=SColor(255, 255, 255, 255), const SColor &colorBottom=SColor(255, 255, 255, 255))
 Constructor.
 TextBillboardComponent (Entity *parent, const std::string &fontFileName, const std::string &text, const dimension2df &size=dimension2df(10.0f, 10.0f), const SColor &colorTop=SColor(255, 255, 255, 255), const SColor &colorBottom=SColor(255, 255, 255, 255))
 Constructor.
 ~TextBillboardComponent ()
 Deconstructor.
IBillboardTextSceneNode * getBillboardTextSceneNode ()
 Returns a direct pointer to the IBillboardTextSceneNode.
void setText (const std::string &text)
 Sets the text string.
void setText (const wchar_t *text)
 Sets the text string.
void setTextColor (const SColor &color)
 Sets the color of the text.

Static Public Member Functions

static TextBillboardComponentrefFactory (Entity *parent)
 Will be used to instanciate objects of this class.
static TextBillboardComponentrefFactory (Entity *parent, const std::string &fontFileName, const std::string &text, const dimension2df &size, const SColor &colorTop, const SColor &colorBottom)
 Will be used to instanciate objects of this class.


Detailed Description

Component wrapper of Irrlicht's IBillboardTextSceneNode.

Definition at line 26 of file TextBillboardComponent.h.


Constructor & Destructor Documentation

TextBillboardComponent::TextBillboardComponent ( Entity parent  ) 

Constructor (default).

Definition at line 23 of file TextBillboardComponent.cpp.

TextBillboardComponent::TextBillboardComponent ( Entity parent,
const std::string &  fontFileName,
const wchar_t *  text,
const dimension2df &  size = dimension2df(10.0f, 10.0f),
const SColor &  colorTop = SColor(255, 255, 255, 255),
const SColor &  colorBottom = SColor(255, 255, 255, 255) 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
fontFileName Filename of the font to load.
text The text to display on the billboard.
size The billboard's width and height.
colorTop The color of the vertices at the top of the billboard.
colorBottom The color of the vertices at the bottom of the billboard.
Note:
Not available in AngelScript.

Definition at line 43 of file TextBillboardComponent.cpp.

TextBillboardComponent::TextBillboardComponent ( Entity parent,
const std::string &  fontFileName,
const std::string &  text,
const dimension2df &  size = dimension2df(10.0f, 10.0f),
const SColor &  colorTop = SColor(255, 255, 255, 255),
const SColor &  colorBottom = SColor(255, 255, 255, 255) 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
fontFileName Filename of the font to load.
text The text to display on the billboard.
size The billboard's width and height.
colorTop The color of the vertices at the top of the billboard.
colorBottom The color of the vertices at the bottom of the billboard.

Definition at line 65 of file TextBillboardComponent.cpp.

TextBillboardComponent::~TextBillboardComponent (  ) 

Deconstructor.

Definition at line 89 of file TextBillboardComponent.cpp.


Member Function Documentation

IBillboardTextSceneNode * TextBillboardComponent::getBillboardTextSceneNode (  ) 

Returns a direct pointer to the IBillboardTextSceneNode.

Note:
Not available in AngelScript.

Definition at line 114 of file TextBillboardComponent.cpp.

TextBillboardComponent * TextBillboardComponent::refFactory ( Entity parent,
const std::string &  fontFileName,
const std::string &  text,
const dimension2df &  size,
const SColor &  colorTop,
const SColor &  colorBottom 
) [static]

Will be used to instanciate objects of this class.

Note:
For internal use only!

Definition at line 103 of file TextBillboardComponent.cpp.

TextBillboardComponent * TextBillboardComponent::refFactory ( Entity parent  )  [static]

Will be used to instanciate objects of this class.

Note:
For internal use only!

Reimplemented from BillboardComponent.

Definition at line 97 of file TextBillboardComponent.cpp.

void TextBillboardComponent::setText ( const wchar_t *  text  ) 

Sets the text string.

Parameters:
text Text to set.
Note:
Not available in AngelScript.

Definition at line 127 of file TextBillboardComponent.cpp.

void TextBillboardComponent::setText ( const std::string &  text  ) 

Sets the text string.

Parameters:
text Text to set.

Definition at line 120 of file TextBillboardComponent.cpp.

void TextBillboardComponent::setTextColor ( const SColor &  color  ) 

Sets the color of the text.

Parameters:
color New color of the text.

Definition at line 133 of file TextBillboardComponent.cpp.


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

Generated on Wed Jun 10 22:26:27 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8