![]() |
VR-Forces 4.1.1 Class Documentation
|
Encapsulates the creation/management of agents used to display a symbol. More...
Public Member Functions | |
| DtSymbolFacade (makVrv::DtAgentManagerInterface &sceneInterface, makVrv::DtElementID id) | |
| CTOR Creates a symbol facade for the 2D model set. | |
| virtual | ~DtSymbolFacade () |
| Virtual DTOR. | |
Symbol Facade Parameter Accessors | |
| virtual makVrv::DtElementID | elementId () const |
| Get the element id for the entity facade. | |
| virtual makVrv::DtWidgetLabelAgent & | widgetLabelAgent () |
| Returns the widget label for the facade. | |
| virtual void | setPosition (const DtVector &pos) |
| Set the label's position. | |
Static Public Member Functions | |
| static makVrv::DtElementEntry::ElementType | elementType () |
| Returns the unique element type for DtSymbolFacades. | |
Protected Member Functions | |
| void | initialize () |
Protected Attributes | |
| makVrv::DtElementID | myElementId |
| makVrv::DtSceneObjectAgent * | mySceneObjectAgent |
| makVrv::DtProjectedWidgetModelAgent * | myProjectedWidgetModelAgent |
| makVrv::DtWidgetLabelAgent * | myWidgetLabelAgent |
Encapsulates the creation/management of agents used to display a symbol.
The Facade design pattern provides a unified interface for controlling the agents required to render a symbol. Using a facade makes using symbols easier by internally managing creation, deletion, and updating of the component model agents. Builds on the previous example by enabling event signals for the DtWidgetLabelAgents used to display the symbol. This tells the symbol to accept mouse input and select on click, and display a context menu on right-click.
| makVrv::exampleSymbolFacade2::DtSymbolFacade::DtSymbolFacade | ( | makVrv::DtAgentManagerInterface & | sceneInterface, |
| makVrv::DtElementID | id | ||
| ) |
CTOR Creates a symbol facade for the 2D model set.
|
virtual |
Virtual DTOR.
|
virtual |
Get the element id for the entity facade.
|
virtual |
Returns the widget label for the facade.
|
virtual |
Set the label's position.
|
static |
Returns the unique element type for DtSymbolFacades.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |