VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtVrlinkElement Class Referenceabstract

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]

Public Member Functions

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

Protected Member Functions

void reportElementCreated ()
 Report that an element was created. More...
 
void reportDisplayName ()
 Report that an element display name has changed. More...
 
void reportConnectionObjectType ()
 Report an element's ID. More...
 
void reportConnectionObjectID ()
 Report an element's type. More...
 
void reportOverlayNameChanged ()
 Report that an element parent overlay name has changed. More...
 
void reportVisibility ()
 Report that an element visibility has changed. More...
 
void reportDamageStateChanged ()
 Report that an element damage state has changed. More...
 
void reportDriverType ()
 Report that the element comes from a VR-Link connection. More...
 
void reportElementSubtype ()
 Report the element's subtype. More...
 
void reportElementDefinitionName ()
 Report the element's element definition. More...
 
void updateEntityType (const DtEntityType &type)
 
virtual void setElementSubtype (DtElementAttributes::ElementSubtypes subtype)
 
void slot_updateDisplayNameRaw (const char *text)
 Called when display name for the element has been changed - passed as raw. More...
 
void slot_updateOverlayNameRaw (const char *text)
 Called when overlay name for the element has been changed - passed as raw. More...
 
void slot_updateConnectionObjectID (const DtEntityIdentifier &id)
 Called when the entity identifier is discovered. More...
 
void slot_updateDisplayName (const std::string &text)
 Called when display name for the element has been changed. More...
 
void slot_updateOverlayName (const std::string &pname)
 Called when overlay name for the element has been changed. More...
 
void slot_updateDamageState (const unsigned int state)
 Called when damage state for the element has been changed. More...
 
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 myConnectionObjectID
 
std::string myConnectionObjectType
 
std::string myDisplayName
 
std::string myElementOverlayName
 
DtElementAttributes::ElementSubtypes myElementSubtype
 
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

makVrv::DtVrlinkElement::DtVrlinkElement ( DtBaseConnection conn,
DtElementID  elementId 
)

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

virtual makVrv::DtVrlinkElement::~DtVrlinkElement ( )
virtual

Member Function Documentation

virtual void makVrv::DtVrlinkElement::visualize ( const DtSharedModelSetSettings::ModelSetVisualizedMap sets)
virtual
virtual void makVrv::DtVrlinkElement::setVisible ( bool  visible)
virtual
bool makVrv::DtVrlinkElement::visible ( ) const

Get whether the element is visible.

DtElementID makVrv::DtVrlinkElement::elementID ( ) const
inline

Get the element ID of the element.

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

const DtUnicode& makVrv::DtVrlinkElement::definition ( ) const

Accessor to get the visual definition.

The definition changes when updateEntityType is called.

virtual DtElementEntry::ObjectType makVrv::DtVrlinkElement::elementType ( ) const
pure virtual
virtual void makVrv::DtVrlinkElement::changeElementAttribute ( const DtElementAttribute attr)
virtual

Request a change to the value of one of this element's attributes.

Non-elements (inluding objects in the main thread) may request that the value of some attribute of an element be modifed; that is effected here.

void makVrv::DtVrlinkElement::reportElementCreated ( )
protected

Report that an element was created.

void makVrv::DtVrlinkElement::reportDisplayName ( )
protected

Report that an element display name has changed.

void makVrv::DtVrlinkElement::reportConnectionObjectType ( )
protected

Report an element's ID.

void makVrv::DtVrlinkElement::reportConnectionObjectID ( )
protected

Report an element's type.

void makVrv::DtVrlinkElement::reportOverlayNameChanged ( )
protected

Report that an element parent overlay name has changed.

void makVrv::DtVrlinkElement::reportVisibility ( )
protected

Report that an element visibility has changed.

void makVrv::DtVrlinkElement::reportDamageStateChanged ( )
protected

Report that an element damage state has changed.

void makVrv::DtVrlinkElement::reportDriverType ( )
protected

Report that the element comes from a VR-Link connection.

void makVrv::DtVrlinkElement::reportElementSubtype ( )
protected

Report the element's subtype.

Some element types (Entity and Aggregate currently) that are used to further categorized them for display

void makVrv::DtVrlinkElement::reportElementDefinitionName ( )
protected

Report the element's element definition.

void makVrv::DtVrlinkElement::updateEntityType ( const DtEntityType &  type)
protected
virtual void makVrv::DtVrlinkElement::setElementSubtype ( DtElementAttributes::ElementSubtypes  subtype)
protectedvirtual
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_updateConnectionObjectID ( const DtEntityIdentifier &  id)
protected

Called when the entity identifier is discovered.

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)
protectedpure virtual
virtual void makVrv::DtVrlinkElement::setModelSetEnabled ( int  modelSet,
bool  enabled 
)
protectedpure virtual

Member Data Documentation

DtBaseConnection& makVrv::DtVrlinkElement::myBaseConnection
protected
DtElementID makVrv::DtVrlinkElement::myElementId
protected
DtUnicode makVrv::DtVrlinkElement::myElementDefinition
protected
std::string makVrv::DtVrlinkElement::myConnectionObjectID
protected
std::string makVrv::DtVrlinkElement::myConnectionObjectType
protected
std::string makVrv::DtVrlinkElement::myDisplayName
protected
std::string makVrv::DtVrlinkElement::myElementOverlayName
protected
DtElementAttributes::ElementSubtypes makVrv::DtVrlinkElement::myElementSubtype
protected
unsigned int makVrv::DtVrlinkElement::myDamageState
protected
bool makVrv::DtVrlinkElement::myElementVisible
protected
bool makVrv::DtVrlinkElement::myElementReported
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)