VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::exampleSymbolFacade2::DtSymbolFacade Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

makVrv::exampleSymbolFacade2::DtSymbolFacade::DtSymbolFacade ( makVrv::DtAgentManagerInterface sceneInterface,
makVrv::DtElementID  id 
)

CTOR Creates a symbol facade for the 2D model set.

virtual makVrv::exampleSymbolFacade2::DtSymbolFacade::~DtSymbolFacade ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual makVrv::DtElementID makVrv::exampleSymbolFacade2::DtSymbolFacade::elementId ( ) const
virtual

Get the element id for the entity facade.

virtual makVrv::DtWidgetLabelAgent& makVrv::exampleSymbolFacade2::DtSymbolFacade::widgetLabelAgent ( )
virtual

Returns the widget label for the facade.

virtual void makVrv::exampleSymbolFacade2::DtSymbolFacade::setPosition ( const DtVector pos)
virtual

Set the label's position.

static makVrv::DtElementEntry::ElementType makVrv::exampleSymbolFacade2::DtSymbolFacade::elementType ( )
static

Returns the unique element type for DtSymbolFacades.

void makVrv::exampleSymbolFacade2::DtSymbolFacade::initialize ( )
protected

Member Data Documentation

makVrv::DtElementID makVrv::exampleSymbolFacade2::DtSymbolFacade::myElementId
protected
makVrv::DtSceneObjectAgent* makVrv::exampleSymbolFacade2::DtSymbolFacade::mySceneObjectAgent
protected
makVrv::DtProjectedWidgetModelAgent* makVrv::exampleSymbolFacade2::DtSymbolFacade::myProjectedWidgetModelAgent
protected
makVrv::DtWidgetLabelAgent* makVrv::exampleSymbolFacade2::DtSymbolFacade::myWidgetLabelAgent
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)