VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
vrvControlToolkit::DtDrawControlObject Class Referenceabstract

DtDrawControlObject is the base class from which all Draw Control Objects are derived.

DtDrawControlObject defines the interface and storage that is common to all Stealth Draw Control Objects. This includes a local id (that should be unique to the sender - see the DtStealthRemoteDrawer class for an id generator) and a DtStealthDrawControlPdu that is used to send the object on the network to remote stealths. The local id is combined with the sender id of the application / federate sending the draw object to create the object's full id.

It is important to note that Draw Control Objects are not true objects in the DIS / HLA-RPR sense; they are sent as data interactions, and will only be seen by listeners that are in the exercise / federation at the time they are sent.

Inheritance diagram for vrvControlToolkit::DtDrawControlObject:
Inheritance graph
[legend]

Classes

class  DtEnvironmentProcessPublisherCreator
 

Public Member Functions

 DtDrawControlObject (DtExerciseConn *exConn, unsigned id, const DtString &objName)
 
virtual ~DtDrawControlObject ()
 
virtual unsigned id () const
 
virtual void setId (unsigned id)
 
virtual const
DtGlobalObjectDesignator
globalId () const
 
virtual void setVisible (bool yesNo)
 
virtual bool visible () const
 
virtual bool flashing () const
 
virtual void setFlashing (bool yesNo)
 
virtual const DtVdcColorcolor () const
 
virtual void setColor (const DtVdcColor &color)
 
virtual void setRemoteGraphicSet (const std::string &setName)
 
virtual void update ()=0
 

Static Public Member Functions

static void setPublisherCreator (DtEnvironmentProcessPublisherCreator *creator)
 

Protected Attributes

unsigned myId
 
DtEnvironmentProcessPublishermyPublisher
 
bool myVisible
 
DtVdcColor myEmptyColor
 

Static Protected Attributes

static
DtEnvironmentProcessPublisherCreator
thePublisherCreator
 

Private Member Functions

 DtDrawControlObject ()
 
 DtDrawControlObject (const DtDrawControlObject &orig)
 
DtDrawControlObjectoperator= (const DtDrawControlObject &rhs)
 

Constructor & Destructor Documentation

vrvControlToolkit::DtDrawControlObject::DtDrawControlObject ( DtExerciseConn *  exConn,
unsigned  id,
const DtString objName 
)

Parameterized constructor.

Parameters
id(locally) unique id to use for this object
virtual vrvControlToolkit::DtDrawControlObject::~DtDrawControlObject ( )
virtual

Virtual destructor.

vrvControlToolkit::DtDrawControlObject::DtDrawControlObject ( )
private

Default constructor.

Private and unimplemented. You must construct a DtDrawControlObject with an id

vrvControlToolkit::DtDrawControlObject::DtDrawControlObject ( const DtDrawControlObject orig)
private

Copy constructor Private and unimplemented. Not copyable.

Member Function Documentation

DtDrawControlObject& vrvControlToolkit::DtDrawControlObject::operator= ( const DtDrawControlObject rhs)
private

Assignment operator Private and unimplemented. Not copyable.

virtual unsigned vrvControlToolkit::DtDrawControlObject::id ( ) const
virtual

id accessor

Returns
The (local) id of this draw object
virtual void vrvControlToolkit::DtDrawControlObject::setId ( unsigned  id)
virtual

id mutator

This is useful for assigning a unique Id after cloning an object using the copy constructor.

Parameters
idA (locally unique) id for this draw object
virtual const DtGlobalObjectDesignator& vrvControlToolkit::DtDrawControlObject::globalId ( ) const
virtual
virtual void vrvControlToolkit::DtDrawControlObject::setVisible ( bool  yesNo)
virtual
virtual bool vrvControlToolkit::DtDrawControlObject::visible ( ) const
virtual
virtual bool vrvControlToolkit::DtDrawControlObject::flashing ( ) const
virtual
virtual void vrvControlToolkit::DtDrawControlObject::setFlashing ( bool  yesNo)
virtual
virtual const DtVdcColor& vrvControlToolkit::DtDrawControlObject::color ( ) const
virtual
virtual void vrvControlToolkit::DtDrawControlObject::setColor ( const DtVdcColor color)
virtual
virtual void vrvControlToolkit::DtDrawControlObject::setRemoteGraphicSet ( const std::string &  setName)
virtual
virtual void vrvControlToolkit::DtDrawControlObject::update ( )
pure virtual
static void vrvControlToolkit::DtDrawControlObject::setPublisherCreator ( DtEnvironmentProcessPublisherCreator creator)
static

Member Data Documentation

unsigned vrvControlToolkit::DtDrawControlObject::myId
protected
DtEnvironmentProcessPublisher* vrvControlToolkit::DtDrawControlObject::myPublisher
protected
bool vrvControlToolkit::DtDrawControlObject::myVisible
protected
DtVdcColor vrvControlToolkit::DtDrawControlObject::myEmptyColor
protected
DtEnvironmentProcessPublisherCreator* vrvControlToolkit::DtDrawControlObject::thePublisherCreator
staticprotected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)