Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rviz::MovableText Class Reference

#include <movable_text.h>

Inheritance diagram for rviz::MovableText:
Inheritance graph
[legend]

Public Types

enum  HorizontalAlignment { H_LEFT, H_CENTER }
 
enum  VerticalAlignment { V_BELOW, V_ABOVE, V_CENTER }
 

Public Member Functions

Ogre::AxisAlignedBox GetAABB (void)
 
const Ogre::String & getCaption () const
 
Ogre::Real getCharacterHeight () const
 
const Ogre::ColourValue & getColor () const
 
const Ogre::String & getFontName () const
 
Ogre::Vector3 getGlobalTranslation () const
 
Ogre::Vector3 getLocalTranslation () const
 
const Ogre::MaterialPtr & getMaterial (void) const
 
bool getShowOnTop () const
 
Ogre::Real getSpaceWidth () const
 
 MovableText (const Ogre::String &caption, const Ogre::String &fontName="Liberation Sans", Ogre::Real charHeight=1.0, const Ogre::ColourValue &color=Ogre::ColourValue::White)
 
void setCaption (const Ogre::String &caption)
 
void setCharacterHeight (Ogre::Real height)
 
void setColor (const Ogre::ColourValue &color)
 
void setFontName (const Ogre::String &fontName)
 
void setGlobalTranslation (Ogre::Vector3 trans)
 
void setLineSpacing (Ogre::Real height)
 
void setLocalTranslation (Ogre::Vector3 trans)
 
void setSpaceWidth (Ogre::Real width)
 
void setTextAlignment (const HorizontalAlignment &horizontalAlignment, const VerticalAlignment &verticalAlignment)
 
void showOnTop (bool show=true)
 
virtual ~MovableText ()
 

Protected Member Functions

void _notifyCurrentCamera (Ogre::Camera *cam)
 
void _setupGeometry ()
 
void _updateColors ()
 
void _updateRenderQueue (Ogre::RenderQueue *queue)
 
const Ogre::AxisAlignedBox & getBoundingBox (void) const
 
Ogre::Real getBoundingRadius (void) const
 
const Ogre::LightList & getLights (void) const
 
const Ogre::String & getMovableType (void) const
 
const Ogre::String & getName (void) const
 
void getRenderOperation (Ogre::RenderOperation &op)
 
Ogre::Real getSquaredViewDepth (const Ogre::Camera *cam) const
 
const Ogre::Quaternion & getWorldOrientation (void) const
 
const Ogre::Vector3getWorldPosition (void) const
 
void getWorldTransforms (Ogre::Matrix4 *xform) const
 

Protected Attributes

Ogre::AxisAlignedBox mAABB
 
Ogre::String mCaption
 
Ogre::Real mCharHeight
 
Ogre::ColourValue mColor
 
Ogre::String mFontName
 
Ogre::Vector3 mGlobalTranslation
 
HorizontalAlignment mHorizontalAlignment
 
Ogre::Real mLineSpacing
 
Ogre::LightList mLList
 
Ogre::Vector3 mLocalTranslation
 
Ogre::String mName
 
bool mNeedUpdate
 
bool mOnTop
 
Ogre::MaterialPtr mpBackgroundMaterial
 
Ogre::Camera * mpCam
 
Ogre::Font * mpFont
 
Ogre::MaterialPtr mpMaterial
 
Ogre::RenderWindow * mpWin
 
Ogre::Real mRadius
 
Ogre::RenderOperation mRenderOp
 
Ogre::Real mSpaceWidth
 
Ogre::Real mTimeUntilNextToggle
 
Ogre::String mType
 
bool mUpdateColors
 
VerticalAlignment mVerticalAlignment
 

Detailed Description

Definition at line 62 of file movable_text.h.

Member Enumeration Documentation

Enumerator
H_LEFT 
H_CENTER 

Definition at line 66 of file movable_text.h.

Enumerator
V_BELOW 
V_ABOVE 
V_CENTER 

Definition at line 70 of file movable_text.h.

Constructor & Destructor Documentation

rviz::MovableText::MovableText ( const Ogre::String &  caption,
const Ogre::String &  fontName = "Liberation Sans",
Ogre::Real  charHeight = 1.0,
const Ogre::ColourValue &  color = Ogre::ColourValue::White 
)

Definition at line 64 of file movable_text.cpp.

rviz::MovableText::~MovableText ( )
virtual

Definition at line 93 of file movable_text.cpp.

Member Function Documentation

void rviz::MovableText::_notifyCurrentCamera ( Ogre::Camera *  cam)
protected

Definition at line 604 of file movable_text.cpp.

void rviz::MovableText::_setupGeometry ( )
protected

Definition at line 219 of file movable_text.cpp.

void rviz::MovableText::_updateColors ( void  )
protected

Definition at line 531 of file movable_text.cpp.

void rviz::MovableText::_updateRenderQueue ( Ogre::RenderQueue *  queue)
protected

Definition at line 609 of file movable_text.cpp.

Ogre::AxisAlignedBox rviz::MovableText::GetAABB ( void  )
inline

Definition at line 168 of file movable_text.h.

const Ogre::AxisAlignedBox& rviz::MovableText::getBoundingBox ( void  ) const
inlineprotected

Definition at line 202 of file movable_text.h.

Ogre::Real rviz::MovableText::getBoundingRadius ( void  ) const
inlineprotected

Definition at line 190 of file movable_text.h.

const Ogre::String& rviz::MovableText::getCaption ( ) const
inline

Definition at line 139 of file movable_text.h.

Ogre::Real rviz::MovableText::getCharacterHeight ( ) const
inline

Definition at line 148 of file movable_text.h.

const Ogre::ColourValue& rviz::MovableText::getColor ( ) const
inline

Definition at line 143 of file movable_text.h.

const Ogre::String& rviz::MovableText::getFontName ( ) const
inline

Definition at line 135 of file movable_text.h.

Ogre::Vector3 rviz::MovableText::getGlobalTranslation ( ) const
inline

Definition at line 156 of file movable_text.h.

const Ogre::LightList& rviz::MovableText::getLights ( void  ) const
inlineprotected

Definition at line 224 of file movable_text.h.

Ogre::Vector3 rviz::MovableText::getLocalTranslation ( ) const
inline

Definition at line 160 of file movable_text.h.

const Ogre::MaterialPtr& rviz::MovableText::getMaterial ( void  ) const
inline

Definition at line 173 of file movable_text.h.

const Ogre::String& rviz::MovableText::getMovableType ( void  ) const
inlineprotected

Definition at line 212 of file movable_text.h.

const Ogre::String& rviz::MovableText::getName ( void  ) const
inlineprotected

Definition at line 207 of file movable_text.h.

void rviz::MovableText::getRenderOperation ( Ogre::RenderOperation &  op)
protected

Definition at line 592 of file movable_text.cpp.

bool rviz::MovableText::getShowOnTop ( ) const
inline

Definition at line 164 of file movable_text.h.

Ogre::Real rviz::MovableText::getSpaceWidth ( ) const
inline

Definition at line 152 of file movable_text.h.

Ogre::Real rviz::MovableText::getSquaredViewDepth ( const Ogre::Camera *  cam) const
inlineprotected

Definition at line 195 of file movable_text.h.

const Quaternion & rviz::MovableText::getWorldOrientation ( void  ) const
protected

Definition at line 548 of file movable_text.cpp.

const Vector3 & rviz::MovableText::getWorldPosition ( void  ) const
protected

Definition at line 561 of file movable_text.cpp.

void rviz::MovableText::getWorldTransforms ( Ogre::Matrix4 *  xform) const
protected

Definition at line 567 of file movable_text.cpp.

void rviz::MovableText::setCaption ( const Ogre::String &  caption)

Definition at line 137 of file movable_text.cpp.

void rviz::MovableText::setCharacterHeight ( Ogre::Real  height)

Definition at line 155 of file movable_text.cpp.

void rviz::MovableText::setColor ( const Ogre::ColourValue &  color)

Definition at line 146 of file movable_text.cpp.

void rviz::MovableText::setFontName ( const Ogre::String &  fontName)

Definition at line 102 of file movable_text.cpp.

void rviz::MovableText::setGlobalTranslation ( Ogre::Vector3  trans)

Definition at line 198 of file movable_text.cpp.

void rviz::MovableText::setLineSpacing ( Ogre::Real  height)

Definition at line 164 of file movable_text.cpp.

void rviz::MovableText::setLocalTranslation ( Ogre::Vector3  trans)

Definition at line 203 of file movable_text.cpp.

void rviz::MovableText::setSpaceWidth ( Ogre::Real  width)

Definition at line 173 of file movable_text.cpp.

void rviz::MovableText::setTextAlignment ( const HorizontalAlignment horizontalAlignment,
const VerticalAlignment verticalAlignment 
)

Definition at line 182 of file movable_text.cpp.

void rviz::MovableText::showOnTop ( bool  show = true)

Definition at line 208 of file movable_text.cpp.

Member Data Documentation

Ogre::AxisAlignedBox rviz::MovableText::mAABB
protected

Definition at line 85 of file movable_text.h.

Ogre::String rviz::MovableText::mCaption
protected

Definition at line 79 of file movable_text.h.

Ogre::Real rviz::MovableText::mCharHeight
protected

Definition at line 88 of file movable_text.h.

Ogre::ColourValue rviz::MovableText::mColor
protected

Definition at line 83 of file movable_text.h.

Ogre::String rviz::MovableText::mFontName
protected

Definition at line 76 of file movable_text.h.

Ogre::Vector3 rviz::MovableText::mGlobalTranslation
protected

Definition at line 99 of file movable_text.h.

HorizontalAlignment rviz::MovableText::mHorizontalAlignment
protected

Definition at line 80 of file movable_text.h.

Ogre::Real rviz::MovableText::mLineSpacing
protected

Definition at line 89 of file movable_text.h.

Ogre::LightList rviz::MovableText::mLList
protected

Definition at line 86 of file movable_text.h.

Ogre::Vector3 rviz::MovableText::mLocalTranslation
protected

Definition at line 100 of file movable_text.h.

Ogre::String rviz::MovableText::mName
protected

Definition at line 78 of file movable_text.h.

bool rviz::MovableText::mNeedUpdate
protected

Definition at line 92 of file movable_text.h.

bool rviz::MovableText::mOnTop
protected

Definition at line 94 of file movable_text.h.

Ogre::MaterialPtr rviz::MovableText::mpBackgroundMaterial
protected

Definition at line 106 of file movable_text.h.

Ogre::Camera* rviz::MovableText::mpCam
protected

Definition at line 102 of file movable_text.h.

Ogre::Font* rviz::MovableText::mpFont
protected

Definition at line 104 of file movable_text.h.

Ogre::MaterialPtr rviz::MovableText::mpMaterial
protected

Definition at line 105 of file movable_text.h.

Ogre::RenderWindow* rviz::MovableText::mpWin
protected

Definition at line 103 of file movable_text.h.

Ogre::Real rviz::MovableText::mRadius
protected

Definition at line 97 of file movable_text.h.

Ogre::RenderOperation rviz::MovableText::mRenderOp
protected

Definition at line 84 of file movable_text.h.

Ogre::Real rviz::MovableText::mSpaceWidth
protected

Definition at line 90 of file movable_text.h.

Ogre::Real rviz::MovableText::mTimeUntilNextToggle
protected

Definition at line 96 of file movable_text.h.

Ogre::String rviz::MovableText::mType
protected

Definition at line 77 of file movable_text.h.

bool rviz::MovableText::mUpdateColors
protected

Definition at line 93 of file movable_text.h.

VerticalAlignment rviz::MovableText::mVerticalAlignment
protected

Definition at line 81 of file movable_text.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Sat Apr 27 2019 02:33:43