![]() |
VR-Forces 4.1 Class Documentation
|
DtSdcObject is the base class from which all Draw Control Objects are derived. More...

Public Member Functions | |
| DtSdcObject (DtExerciseConn *exConn, unsigned id, const DtString &objName) | |
| Parameterized constructor. | |
| virtual | ~DtSdcObject () |
| 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 DtSdcColor & | color () const |
| virtual void | setColor (const DtSdcColor &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 |
| DtSdcColor | myEmptyColor |
Private Member Functions | |
| DtSdcObject () | |
| Default constructor. | |
| DtSdcObject (const DtSdcObject &orig) | |
| Copy constructor Private and unimplemented. | |
| DtSdcObject & | operator= (const DtSdcObject &rhs) |
| Assignment operator Private and unimplemented. | |
DtSdcObject is the base class from which all Draw Control Objects are derived.
DtSdcObject 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.
| DtSdcObject::DtSdcObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtString & | objName | ||
| ) |
Parameterized constructor.
| id | (locally) unique id to use for this object |
|
virtual |
Virtual destructor.
|
private |
Default constructor.
Private and unimplemented. You must construct a DtSdcObject with an id
|
private |
Copy constructor Private and unimplemented.
Not copyable.
|
private |
Assignment operator Private and unimplemented.
Not copyable.
|
virtual |
id accessor
|
virtual |
id mutator
This is useful for assigning a unique Id after cloning an object using the copy constructor.
| id | A (locally unique) id for this draw object |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
update the internal publisher and tick
Pure virtual function used to force any changes to the draw control objects to be sent to the network.
Implemented in DtSdcTriangle2DObject, DtSdcText3DObject, DtSdcText2DObject, DtSdcLine3DObject, DtSdcLine2DObject, DtSdcEllipsoidObject, DtSdcEllRectBase, DtSdcCylinderObject, DtSdcCuboidObject, DtSdcAttributeGroupTemplateObject, DtSdcAttributeGroupObject, and DtSdcArea3DObject.
|
protected |
|
protected |
|
protected |
|
protected |