51 #ifndef _MIRA_TEXTOBJECT_H_ 52 #define _MIRA_TEXTOBJECT_H_ 57 #include <OGRE/OgreMovableObject.h> 58 #include <OGRE/OgreRenderable.h> 59 #include <OGRE/OgreVector3.h> 60 #include <OGRE/OgreQuaternion.h> 63 #if (OGRE_VERSION >= 0x010900) 64 #include <OGRE/Overlay/OgreFont.h> 132 Ogre::SceneManager* sceneManager,
133 Ogre::SceneNode* parent=NULL);
136 const Ogre::String &fontName,
137 Ogre::SceneManager* sceneManager,
138 Ogre::SceneNode* parent=NULL);
142 virtual void visitRenderables(Ogre::Renderable::Visitor* visitor,
143 bool debugRenderables =
false);
145 virtual void setColor(
const Ogre::ColourValue &color);
146 virtual void setVisible(
bool visible,
bool cascade =
true);
149 void setFontName(
const Ogre::String &fontName);
150 void setCaption(
const Ogre::String &caption);
151 void setCharacterHeight(Ogre::Real height);
152 void setSpaceWidth(Ogre::Real width);
155 void setGlobalTranslation(Ogre::Vector3 trans);
156 void setLocalTranslation(Ogre::Vector3 trans);
157 void showOnTop(
bool show =
true);
183 return mGlobalTranslation;
187 return mLocalTranslation;
202 void _setupGeometry();
203 void _updateColors();
206 void getWorldTransforms(Ogre::Matrix4 *xform)
const;
217 const Ogre::Quaternion& getWorldOrientation(
void)
const;
218 const Ogre::Vector3& getWorldPosition(
void)
const;
231 static Ogre::String movType =
"TextObject";
235 void _notifyCurrentCamera(Ogre::Camera *cam);
236 void _updateRenderQueue(Ogre::RenderQueue* queue);
239 void getRenderOperation(Ogre::RenderOperation &op);
242 assert(!mMaterial.isNull());
HorizontalAlignment mHorizontalAlignment
Definition: TextObject.h:101
Definition: TextObject.h:92
const Ogre::ColourValue & getColor() const
Definition: TextObject.h:168
Ogre::Real mCharHeight
Definition: TextObject.h:109
Ogre::ColourValue mColor
Definition: TextObject.h:104
Ogre::Camera * mCam
Definition: TextObject.h:122
Ogre::Real getBoundingRadius(void) const
Definition: TextObject.h:207
Declaration of VisualizationObject.
const Ogre::String & getMovableType(void) const
Definition: TextObject.h:229
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
const Ogre::String & getCaption() const
Definition: TextObject.h:164
const Ogre::LightList & getLights(void) const
Definition: TextObject.h:246
Definition: VisualizationObject.h:71
Definition: TextObject.h:79
VerticalAlignment mVerticalAlignment
Definition: TextObject.h:102
Ogre::MaterialPtr mMaterial
Definition: TextObject.h:125
bool getShowOnTop() const
Definition: TextObject.h:189
Ogre::Real getSquaredViewDepth(const Ogre::Camera *cam) const
Definition: TextObject.h:212
bool mOnTop
Definition: TextObject.h:114
Ogre::Vector3 getGlobalTranslation() const
Definition: TextObject.h:181
Ogre::AxisAlignedBox mAABB
Definition: TextObject.h:106
const Ogre::AxisAlignedBox & getBoundingBox(void) const
Definition: TextObject.h:219
Ogre::String mCaption
Definition: TextObject.h:100
Ogre::Real mRadius
Definition: TextObject.h:117
Ogre::AxisAlignedBox GetAABB(void)
Definition: TextObject.h:193
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
const Ogre::String & getName(void) const
Definition: TextObject.h:224
Ogre::Vector3 mGlobalTranslation
Definition: TextObject.h:119
Ogre::Real getCharacterHeight() const
Definition: TextObject.h:173
Ogre::String mName
Definition: TextObject.h:99
Ogre::Vector3 getLocalTranslation() const
Definition: TextObject.h:185
Definition: TextObject.h:91
const Ogre::MaterialPtr & getMaterial(void) const
Definition: TextObject.h:240
Ogre::LightList mLList
Definition: TextObject.h:107
FrameworkVis export macro declaration.
Ogre::String mFontName
Definition: TextObject.h:97
bool mNeedUpdate
Definition: TextObject.h:112
Ogre::RenderOperation mRenderOp
Definition: TextObject.h:105
Definition: ImageObject.h:60
HorizontalAlignment
Definition: TextObject.h:83
bool mUpdateColors
Definition: TextObject.h:113
Ogre::Font * mFont
Definition: TextObject.h:124
Definition: TextObject.h:86
Ogre::MaterialPtr mBackgroundMaterial
Definition: TextObject.h:126
Definition: TextObject.h:85
Ogre::Vector3 mLocalTranslation
Definition: TextObject.h:120
Ogre::Real getSpaceWidth() const
Definition: TextObject.h:177
Ogre::RenderWindow * mWin
Definition: TextObject.h:123
Ogre::Real mTimeUntilNextToggle
Definition: TextObject.h:116
Ogre::String mType
Definition: TextObject.h:98
Ogre::Real mSpaceWidth
Definition: TextObject.h:110
VerticalAlignment
Definition: TextObject.h:89
const Ogre::String & getFontName() const
Definition: TextObject.h:160