#include <_src_hud_hud_text.hh>

Public Types | |
| enum | eOrientation { eOrientation_BOTTOM_LEFT, eOrientation_BOTTOM_RIGHT, eOrientation_TOP_LEFT, eOrientation_TOP_RIGHT, eOrientation_CENTER } |
| Text orientation. More... | |
| enum | eGradientColor { eGradientColor_TOP_LEFT, eGradientColor_BOTTOM_LEFT, eGradientColor_BOTTOM_RIGHT, eGradientColor_TOP_RIGHT } |
| For setting RGBA array passed to SetGradientColors(). More... | |
| enum | eAnimation { eAnimation_NONE, eAnimation_FLIP } |
| Specify which kind of text animation. More... | |
Public Member Functions | |
| HudText (const Args &args) | |
| ~HudText () | |
| void | SetText (const string &text) |
| void | SetText (const char text[]) |
| void | SetPosition3D (const WorldVertex &pos3) |
| void | SetFontSize (const fp fontSize) |
| void | SetColor (const RGBA rgba) |
| void | SetGradientColors4 (const TinyArray< 4, RGBA > &colors4) |
| RefPtr< Node > | GetNode (void) |
| void | Rotate (const uint axis, const Radian rad) |
Private Types | |
| typedef HudObject | Parent |
Private Member Functions | |
| Vector2 | OrientPosition (const Args &args) |
| virtual void | Update (View &view) |
| void | UpdatePosition3D (View &view, const Milliseconds elapsedMilliseconds) |
| void | UpdateAnimation (const Milliseconds elapsedMilliseconds) |
Private Attributes | |
| RefPtr< osg::Geode > | mGeode |
| geometry node | |
| RefPtr< osgText::Text > | mOsgText |
| drawable node | |
| Definition3D | m3D |
| 3D position enabled by SetPosition3D() | |
| Animation | mAnimation |
Friends | |
| class | Hud |
Classes | |
| struct | Animation |
| struct | Args |
| Args for HudText() ctor. More... | |
| struct | Definition3D |
| Optional definition of 2D box in 3D terms. Becomes valid after SetPosition3D() is called. More... | |
HudText has attributes such as 2D position, orientation, font name/size, color, color gradients, and 3D rotation for animation.
typedef HudObject hud::HudText::Parent [private] |
| hud::HudText::HudText | ( | const Args & | args | ) |
ctor/dtor.
| hud::HudText::~HudText | ( | ) |
| void hud::HudText::SetText | ( | const string & | text | ) |
Change the value of HudText.
| void hud::HudText::SetText | ( | const char | text[] | ) |
| void hud::HudText::SetPosition3D | ( | const WorldVertex & | pos3 | ) |
Set position by transforming 3D vertex into 2D.
| void hud::HudText::SetFontSize | ( | const fp | fontSize | ) |
Set font size.
| void hud::HudText::SetColor | ( | const RGBA | rgba | ) |
Set color of text.
Set drawing text with 4 gradient colors.
| RefPtr<Node> hud::HudText::GetNode | ( | void | ) | [inline] |
| Vector2 hud::HudText::OrientPosition | ( | const Args & | args | ) | [private] |
| void hud::HudText::Update | ( | View & | view | ) | [private, virtual] |
Update callback.
Implements hud::HudObject.
| void hud::HudText::UpdatePosition3D | ( | View & | view, | |
| const Milliseconds | elapsedMilliseconds | |||
| ) | [private] |
| void hud::HudText::UpdateAnimation | ( | const Milliseconds | elapsedMilliseconds | ) | [private] |
friend class Hud [friend] |
RefPtr<osg::Geode> hud::HudText::mGeode [private] |
geometry node
RefPtr<osgText::Text> hud::HudText::mOsgText [private] |
drawable node
Definition3D hud::HudText::m3D [private] |
3D position enabled by SetPosition3D()
Animation hud::HudText::mAnimation [private] |
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010