![]() |
VR-Vantage 1.4.1 API 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 |
References myPublisher.
| DtSdcObject::~DtSdcObject | ( | ) | [virtual] |
Virtual destructor.
References myPublisher, and myVisible.
| DtSdcObject::DtSdcObject | ( | ) | [private] |
Default constructor.
Private and unimplemented. You must construct a DtSdcObject with an id
| DtSdcObject::DtSdcObject | ( | const DtSdcObject & | orig | ) | [private] |
Copy constructor Private and unimplemented.
Not copyable.
| DtSdcObject& DtSdcObject::operator= | ( | const DtSdcObject & | rhs | ) | [private] |
Assignment operator Private and unimplemented.
Not copyable.
| unsigned DtSdcObject::id | ( | ) | const [virtual] |
id accessor
References myId.
Referenced by DtSdcArea3DObject::DtSdcArea3DObject(), DtSdcAttributeGroupObject::DtSdcAttributeGroupObject(), DtSdcAttributeGroupTemplateObject::DtSdcAttributeGroupTemplateObject(), DtSdcCuboidObject::DtSdcCuboidObject(), DtSdcCylinderObject::DtSdcCylinderObject(), DtSdcEllipseObject::DtSdcEllipseObject(), DtSdcEllipsoidObject::DtSdcEllipsoidObject(), DtSdcLine2DObject::DtSdcLine2DObject(), DtSdcLine3DObject::DtSdcLine3DObject(), DtSdcRectangleObject::DtSdcRectangleObject(), DtSdcText2DObject::DtSdcText2DObject(), DtSdcText3DObject::DtSdcText3DObject(), DtSdcTriangle2DObject::DtSdcTriangle2DObject(), and setId().
| void DtSdcObject::setId | ( | unsigned | id | ) | [virtual] |
| const DtGlobalObjectDesignator & DtSdcObject::globalId | ( | ) | const [virtual] |
References myPublisher.
Referenced by DtSdcAttributeGroupObject::createAttributes().
| void DtSdcObject::setVisible | ( | bool | yesNo | ) | [virtual] |
References myPublisher, and myVisible.
| bool DtSdcObject::visible | ( | ) | const [virtual] |
References myVisible.
| bool DtSdcObject::flashing | ( | ) | const [virtual] |
| void DtSdcObject::setFlashing | ( | bool | yesNo | ) | [virtual] |
| const DtSdcColor & DtSdcObject::color | ( | ) | const [virtual] |
Reimplemented in DtSdcArea3DObject, DtSdcAttributeGroupObject, DtSdcEllipsoidCuboidBase, DtSdcCylinderObject, DtSdcEllRectBase, DtSdcLine2DObject, DtSdcLine3DObject, DtSdcText2DObject, DtSdcText3DObject, and DtSdcTriangle2DObject.
References myEmptyColor.
| void DtSdcObject::setColor | ( | const DtSdcColor & | color | ) | [virtual] |
| void DtSdcObject::setRemoteGraphicSet | ( | const std::string & | setName | ) | [virtual] |
| virtual void DtSdcObject::update | ( | ) | [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 DtSdcArea3DObject, DtSdcAttributeGroupObject, DtSdcAttributeGroupTemplateObject, DtSdcCuboidObject, DtSdcCylinderObject, DtSdcEllRectBase, DtSdcEllipsoidObject, DtSdcLine2DObject, DtSdcLine3DObject, DtSdcText2DObject, DtSdcText3DObject, and DtSdcTriangle2DObject.
unsigned DtSdcObject::myId [protected] |
DtEnvironmentProcessPublisher DtSdcObject::myPublisher [protected] |
Referenced by DtSdcAttributeGroupTemplateObject::createAttributeTemplate(), DtSdcArea3DObject::DtSdcArea3DObject(), DtSdcAttributeGroupObject::DtSdcAttributeGroupObject(), DtSdcAttributeGroupTemplateObject::DtSdcAttributeGroupTemplateObject(), DtSdcCuboidObject::DtSdcCuboidObject(), DtSdcCylinderObject::DtSdcCylinderObject(), DtSdcEllipseObject::DtSdcEllipseObject(), DtSdcEllipsoidObject::DtSdcEllipsoidObject(), DtSdcLine2DObject::DtSdcLine2DObject(), DtSdcLine3DObject::DtSdcLine3DObject(), DtSdcObject(), DtSdcRectangleObject::DtSdcRectangleObject(), DtSdcText2DObject::DtSdcText2DObject(), DtSdcText3DObject::DtSdcText3DObject(), DtSdcTriangle2DObject::DtSdcTriangle2DObject(), globalId(), setVisible(), DtSdcTriangle2DObject::update(), DtSdcText3DObject::update(), DtSdcText2DObject::update(), DtSdcLine3DObject::update(), DtSdcLine2DObject::update(), DtSdcEllRectBase::update(), DtSdcEllipsoidObject::update(), DtSdcCylinderObject::update(), DtSdcCuboidObject::update(), DtSdcAttributeGroupTemplateObject::update(), DtSdcAttributeGroupObject::update(), DtSdcArea3DObject::update(), and ~DtSdcObject().
bool DtSdcObject::myVisible [protected] |
Referenced by setVisible(), visible(), and ~DtSdcObject().
DtSdcColor DtSdcObject::myEmptyColor [protected] |
Referenced by color().