VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes | Private Member Functions
vrvControlToolkit::DtDrawControlObject Class Reference

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

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

List of all members.

Public Member Functions

 DtDrawControlObject (DtExerciseConn *exConn, unsigned id, const DtString &objName)
 Parameterized constructor.
virtual ~DtDrawControlObject ()
 Virtual destructor.
virtual unsigned id () const
 id accessor
virtual void setId (unsigned id)
 id mutator
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
 update the internal publisher and tick

Protected Attributes

unsigned myId
DtEnvironmentProcessPublisher myPublisher
bool myVisible
DtVdcColor myEmptyColor

Private Member Functions

 DtDrawControlObject ()
 Default constructor.
 DtDrawControlObject (const DtDrawControlObject &orig)
 Copy constructor Private and unimplemented.
DtDrawControlObjectoperator= (const DtDrawControlObject &rhs)
 Assignment operator Private and unimplemented.

Detailed Description

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.


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 destructor.

Default constructor.

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

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 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]

Member Data Documentation

DtEnvironmentProcessPublisher vrvControlToolkit::DtDrawControlObject::myPublisher [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)