VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtVrlinkElement Class Reference

The DtVrlinkElement class implements the common behavior of VR-Link simulation based elements added to the scene. More...

Inheritance diagram for makVrv::DtVrlinkElement:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtVrlinkElement (DtBaseConnection &conn, DtElementID elementId)
 Construct an element with the base connection and the element id.
virtual ~DtVrlinkElement ()
virtual void visualize (const DtSharedModelSetSettings::ModelSetVisualizedMap &sets)
 Visualize the element.
virtual void setVisible (bool visible)
 Set the element to be visible.
bool visible () const
 Get whether the element is visible.
DtElementID elementID () const
 Get the element ID of the element.
const DtUnicodedefinition () const
 Accessor to get the visual definition.
virtual DtElementEntry::ObjectType elementType () const =0
 Virtual function for getting the element type.

Protected Member Functions

void reportElementCreated ()
 Report that an element was created.
void reportDisplayName ()
 Report that an element display name has changed.
void reportOverlayNameChanged ()
 Report that an element parent overlay name has changed.
void reportVisibility ()
 Report that an element visibility has changed.
void reportDamageStateChanged ()
 Report that an element damage state has changed.
void updateEntityType (const DtEntityType &type)
void slot_updateDisplayNameRaw (const char *text)
 Called when display name for the element has been changed - passed as raw.
void slot_updateOverlayNameRaw (const char *text)
 Called when overlay name for the element has been changed - passed as raw.
void slot_updateDisplayName (const std::string &text)
 Called when display name for the element has been changed.
void slot_updateOverlayName (const std::string &pname)
 Called when overlay name for the element has been changed.
void slot_updateDamageState (const unsigned int state)
 Called when damage state for the element has been changed.
virtual void getDefinitions (std::vector< DtUnicode > &definitions)=0
virtual void setModelSetEnabled (int modelSet, bool enabled)=0

Protected Attributes

DtBaseConnectionmyBaseConnection
DtElementID myElementId
DtUnicode myElementDefinition
std::string myDisplayName
std::string myElementOverlayName
unsigned int myDamageState
bool myElementVisible
bool myElementReported

Detailed Description

The DtVrlinkElement class implements the common behavior of VR-Link simulation based elements added to the scene.

Examples of specific elements include Entities, and Tactical Graphics.


Constructor & Destructor Documentation

Construct an element with the base connection and the element id.


Member Function Documentation

virtual void makVrv::DtVrlinkElement::setVisible ( bool  visible) [virtual]

Get whether the element is visible.

Get the element ID of the element.

Usually the element ID is the unique id of the listener.

Accessor to get the visual definition.

The definition changes when updateEntityType is called.

Report that an element was created.

Report that an element display name has changed.

Report that an element parent overlay name has changed.

Report that an element visibility has changed.

Report that an element damage state has changed.

void makVrv::DtVrlinkElement::updateEntityType ( const DtEntityType &  type) [protected]
void makVrv::DtVrlinkElement::slot_updateDisplayNameRaw ( const char *  text) [protected]

Called when display name for the element has been changed - passed as raw.

void makVrv::DtVrlinkElement::slot_updateOverlayNameRaw ( const char *  text) [protected]

Called when overlay name for the element has been changed - passed as raw.

void makVrv::DtVrlinkElement::slot_updateDisplayName ( const std::string &  text) [protected]

Called when display name for the element has been changed.

void makVrv::DtVrlinkElement::slot_updateOverlayName ( const std::string &  pname) [protected]

Called when overlay name for the element has been changed.

void makVrv::DtVrlinkElement::slot_updateDamageState ( const unsigned int  state) [protected]

Called when damage state for the element has been changed.

virtual void makVrv::DtVrlinkElement::getDefinitions ( std::vector< DtUnicode > &  definitions) [protected, pure virtual]
virtual void makVrv::DtVrlinkElement::setModelSetEnabled ( int  modelSet,
bool  enabled 
) [protected, pure virtual]

Member Data Documentation

std::string makVrv::DtVrlinkElement::myDisplayName [protected]
unsigned int makVrv::DtVrlinkElement::myDamageState [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)