Dt3DTextStateVisualizer objects are responsible for displaying 3D text.
|
| | Dt3DTextStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) |
| |
| virtual | ~Dt3DTextStateVisualizer () |
| |
| virtual void | setLocation (const DtVector &loc) |
| |
| virtual void | setColor (float r, float g, float b, float a) |
| |
| virtual void | setFlashing (bool flashing) |
| |
| virtual void | setText (const std::string &str) |
| |
| virtual void | setAttached (DtUniqueID id, int vtx, double percentage) |
| |
| virtual void | setHostId (const std::string &id, int vtx, double percentage) |
| |
virtual const
DtStateVisualizer::TypeInfo & | typeInfo () const |
| |
| | DtRemoteGraphicVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) |
| |
| virtual | ~DtRemoteGraphicVisualizer () |
| |
| virtual void | initialize () override |
| |
| virtual void | setActive (bool active) |
| |
| virtual void | setLayerName (const std::string &layerName) |
| |
| virtual void | setProjected (bool projected) |
| |
| | DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) |
| |
| virtual | ~DtStateVisualizer () |
| |
| virtual DtModelSetId | modelSet () |
| |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *sceneObject) |
| |
| void | setModelDefinition (const std::string &definition) |
| |
| const std::string & | modelDefinition () const |
| |
| virtual void | implementVisibility (bool visible) |
| |
| virtual void | slot_setSelected (bool b) |
| |
| void | setName (const std::string &) |
| |
| const std::string & | name () const |
| |
| virtual void | setPickable (bool) |
| |
| virtual bool | pickable () const |
| |
| virtual DtUniqueID | sceneObjectID () const |
| |
| int | visualizerType () const |
| |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &) |
| |
| DtStateListener & | listener () |
| |
| const DtStateListener & | listener () const |
| |
| DtBaseConnection & | simulation () |
| |
| void | setDistribute (bool b) |
| |
| bool | distribute () const |
| |
| virtual bool | isVisible () const |
| |
| virtual bool | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
| |
| virtual makVrv::Dt3DTextStateVisualizer::~Dt3DTextStateVisualizer |
( |
| ) |
|
|
virtual |
| virtual void makVrv::Dt3DTextStateVisualizer::setLocation |
( |
const DtVector & |
loc | ) |
|
|
virtual |
Sets the position of the cuboid in database coordinates, or body coordinates (if attached)
| virtual void makVrv::Dt3DTextStateVisualizer::setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
virtual |
Sets the color of the text.
| virtual void makVrv::Dt3DTextStateVisualizer::setFlashing |
( |
bool |
flashing | ) |
|
|
virtual |
| virtual void makVrv::Dt3DTextStateVisualizer::setText |
( |
const std::string & |
str | ) |
|
|
virtual |
| virtual void makVrv::Dt3DTextStateVisualizer::setAttached |
( |
DtUniqueID |
id, |
|
|
int |
vtx, |
|
|
double |
percentage |
|
) |
| |
|
virtual |
Attaches the text to the unique ID specified.
- Parameters
-
| id | Unique ID of the object attached to, if 0, detaches |
| vtx | ignored |
| percentage | Specifies the percentage between 2 vertices if attached to a line or cylinder |
| virtual void makVrv::Dt3DTextStateVisualizer::setHostId |
( |
const std::string & |
id, |
|
|
int |
vtx, |
|
|
double |
percentage |
|
) |
| |
|
virtual |
Sets the host ID attached to. Overridden by child classes.
| virtual void makVrv::Dt3DTextStateVisualizer::setVisible |
( |
bool |
yesNo | ) |
|
|
protectedvirtual |
Set the visuals visible or invisible. This maintains the state of the visual objects, and calling setVisible(false) should not be expected to provide any performance benefit.
Implements makVrv::DtRemoteGraphicVisualizer.
| virtual void makVrv::Dt3DTextStateVisualizer::createModelAgents |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrv::Dt3DTextStateVisualizer::destroyModelAgents |
( |
| ) |
|
|
protectedvirtual |
Destroy the visual models. This does not maintain their state; for example, //! calling setFlashing(true); destroyModelAgents(); createModelAgents(); will result in models with the default value of flashing, which is false.
Destroying models generally provides some performance benefit, as compared to calling setVisible(false).
Implements makVrv::DtStateVisualizer.
| virtual void makVrv::Dt3DTextStateVisualizer::setModelDefinitionForAgents |
( |
| ) |
|
|
protectedvirtual |
| DtWidgetLabelAgent* makVrv::Dt3DTextStateVisualizer::myTextWidgetAgent |
|
protected |
| DtProjectedWidgetModelAgent* makVrv::Dt3DTextStateVisualizer::myTextModelAgent |
|
protected |
| DtAttachableUpdaterAgent* makVrv::Dt3DTextStateVisualizer::myAttachableUpdater |
|
protected |
| DtVisibilityAdapter<DtProjectedWidgetModelAgent>* makVrv::Dt3DTextStateVisualizer::myVisibilityAdapter |
|
protected |
| std::string makVrv::Dt3DTextStateVisualizer::myTextFont |
|
protected |
| int makVrv::Dt3DTextStateVisualizer::myTextFontSize |
|
protected |
The documentation for this class was generated from the following file: