![]() |
VR-Forces 4.6 Class Documentation
|
Contains Dt2DTextBoxFacade class. More...
Public Member Functions | |
| Dt2DTextBoxFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet) | |
| Constructor that will take an existing scene object agent. | |
| Dt2DTextBoxFacade (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true) | |
| Will create a new scene object agent for the given model set and element id. | |
| virtual | ~Dt2DTextBoxFacade () |
| DTOR. | |
| virtual void | setFont (const std::string &font, int size) |
| Sets the font and font size of the object. | |
| virtual void | getFont (std::string &, int &) |
| Returns the font currently used and the font size. | |
| virtual void | setFontScale (float) |
| Sets the scale of the font separate from the font size. | |
| virtual float | fontScale () const |
| Returns the scale of the font. | |
| virtual void | setText (const DtUnicode &t) |
| Sets the text to display in the object. | |
| virtual const DtUnicode & | text () const |
| Returns the text in the text box. | |
| virtual void | setTextColor (float r, float g, float b, float a) |
| Sets the color of the text. | |
| virtual void | setVisible (bool) |
| Sets this text facade to be shown/hidden. | |
| virtual void | setSize (double w, double h) |
| Sets size of text box. Text box will wrap at text box width. | |
| virtual void | getSize (double &w, double &h) const |
| Gets the size of the text box. | |
| virtual void | setBoundsLength (int) |
| Sets the number of characters to display per line. | |
| virtual int | boundsLength () const |
| Returns number of characters to display per line. | |
| virtual void | setSizeConstraints (DtWidgetLabel::SizeConstraints) |
| Sets the size contrainsts. | |
| virtual void | setTextAlignment (DtWidgetLabel::HorizontalAlignment) |
| Sets the alignment. | |
| virtual void | setGlyphCenterPolicy (DtWidgetLabel::GlyphCenterPolicy) |
| Sets the center policy. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the background color. | |
| virtual void | setOrigin (float x, float y) |
| Sets the offset position. | |
| virtual makVrv::DtUniqueID | uniqueId () const |
| Returns the unique id of the scene object agent. | |
| virtual makVrv::DtElementID | elementId () const |
| Returns the element id of the scene object agent. | |
| virtual int | modelSet () const |
| Returns the model set. | |
| virtual void | setEventsEnabled (bool) |
| Sets whether or not facade is pickable. Default is true. | |
| virtual void | setDatabaseOrigin (const DtVector &) |
| Sets the origin of the text box in database space. | |
| DtSceneObjectAgent * | sceneObjectAgent () const |
| DtWidgetLabelAgent * | widgetLabelAgent () const |
| DtProjectedWidgetModelAgent * | projectedWidgetAgent () const |
Protected Member Functions | |
| void | createTextAgents () |
| Creates the agents used to display text. Called from constructor. | |
Protected Attributes | |
| DtUnicode | myText |
| DtSceneObjectAgent * | mySceneObjectAgent |
| DtAgentManagerInterface & | myAgentManagerInterface |
| bool | myOwnsSceneObjectAgent |
| DtWidgetLabelAgent * | myTextAgent |
| DtProjectedWidgetModelAgent * | myProjectedWidgetAgent |
| int | myModelSet |
| double | myWidth |
| double | myHeight |
| std::string | myFont |
| int | myPointSize |
| int | myBoundsLength |
| float | myFontScale |
| bool | myAdjustYOffsetToTextHeight |
| float | myOriginX |
| float | myOriginY |
| makVrv::DtElementID | myElementId |
Contains Dt2DTextBoxFacade class.
Facade for a 2D (overlay) TextBox.
| makVrv::Dt2DTextBoxFacade::Dt2DTextBoxFacade | ( | DtAgentManagerInterface & | , |
| DtSceneObjectAgent * | agent, | ||
| DtElementID | id, | ||
| int | modelSet | ||
| ) |
Constructor that will take an existing scene object agent.
| makVrv::Dt2DTextBoxFacade::Dt2DTextBoxFacade | ( | DtAgentManagerInterface & | , |
| int | modelSet, | ||
| DtElementID | id, | ||
| bool | distribute = true |
||
| ) |
Will create a new scene object agent for the given model set and element id.
|
virtual |
DTOR.
|
virtual |
Sets the font and font size of the object.
|
virtual |
Returns the font currently used and the font size.
|
virtual |
Sets the scale of the font separate from the font size.
The font scale will be multiplied by the existing fontSize to effect a larger font without changing the point size of the font
|
virtual |
Returns the scale of the font.
|
virtual |
Sets the text to display in the object.
|
virtual |
Returns the text in the text box.
|
virtual |
Sets the color of the text.
|
virtual |
Sets this text facade to be shown/hidden.
Sets size of text box. Text box will wrap at text box width.
Gets the size of the text box.
|
virtual |
Sets the number of characters to display per line.
|
virtual |
Returns number of characters to display per line.
|
virtual |
Sets the size contrainsts.
|
virtual |
Sets the alignment.
|
virtual |
Sets the center policy.
|
virtual |
Sets the background color.
|
virtual |
Sets the offset position.
|
virtual |
Returns the unique id of the scene object agent.
|
virtual |
Returns the element id of the scene object agent.
|
virtual |
Returns the model set.
|
virtual |
Sets whether or not facade is pickable. Default is true.
|
virtual |
Sets the origin of the text box in database space.
| DtSceneObjectAgent* makVrv::Dt2DTextBoxFacade::sceneObjectAgent | ( | ) | const |
Returns the various agents used by this class
| DtWidgetLabelAgent* makVrv::Dt2DTextBoxFacade::widgetLabelAgent | ( | ) | const |
| DtProjectedWidgetModelAgent* makVrv::Dt2DTextBoxFacade::projectedWidgetAgent | ( | ) | const |
|
protected |
Creates the agents used to display text. Called from constructor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |