![]() |
VR-Vantage 2.2 API Documentation
|
A 3D cuboidal Stealth Draw Control Object. More...

Public Member Functions | |
| DtSdcCuboidObject (DtExerciseConn *exConn, unsigned id, const DtSdc3DAttachPoint &attachment, double length, double width, double height, const DtVector32 &enuOffset=DtVector32::zero(), const DtTaitBryan &rotation=zeros, DtSdcColor color=DtSdcColor::DtSdcWhite, bool flashing=false) | |
| Construct an Cuboid Draw Control Object. | |
| virtual | ~DtSdcCuboidObject () |
| virtual double | length () const |
| length accessor | |
| virtual void | setLength (double length) |
| length mutator | |
| virtual double | width () const |
| width accessor | |
| virtual void | setWidth (double width) |
| width mutator | |
| virtual double | height () const |
| height accessor | |
| virtual void | setHeight (double height) |
| height mutator | |
| virtual void | setAttachment (const DtSdc3DAttachPoint &attachment) |
| attachment mutator | |
| virtual void | setRotation (const DtTaitBryan &rotation) |
| rotation mutator | |
| virtual void | update () |
| update the internal publisher and tick | |
Public Member Functions inherited from DtSdcEllipsoidCuboidBase | |
| virtual const DtSdc3DAttachPoint & | attachment () const |
| attachment accessor | |
| virtual const DtVector32 & | offset () const |
| enuOffset accessor | |
| virtual void | setOffset (const DtVector32 &off) |
| offset mutator | |
| virtual const DtTaitBryan & | rotation () const |
| rotation accessor | |
| virtual const DtSdcColor & | color () const |
| color accessor | |
| virtual void | setColor (const DtSdcColor &color) |
| color mutator | |
| virtual bool | flashing () const |
| flashing accessor | |
| virtual void | setFlashing (bool flashing) |
| flashing mutator | |
| virtual void | setRemoteGraphicSet (const std::string &setName) |
Public Member Functions inherited from DtSdc3DPositionedObject | |
| DtSdc3DPositionedObject (DtExerciseConn *exConn, unsigned id, const DtString &objName) | |
| virtual | ~DtSdc3DPositionedObject () |
Public Member Functions inherited from DtSdcObject | |
| 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 |
Protected Attributes | |
| DtEnvironmentalRectangularVolumeRecord | myCuboidRecord |
Protected Attributes inherited from DtSdcEllipsoidCuboidBase | |
| DtSdc3DAttachPoint | myAttachment |
| DtVector | myDimensions |
| DtVector32 | myOffset |
| DtSdcColor | myColor |
| DtTaitBryan | myRotation |
| bool | myFlashing |
| Dt3DGraphicalObjectStateRecord | myStateRecord |
Private Member Functions | |
| DtSdcCuboidObject () | |
| Default constructor. | |
| DtSdcCuboidObject (const DtSdcCuboidObject &orig) | |
| Copy constructor. | |
| DtSdcCuboidObject & | operator= (const DtSdcCuboidObject &rhs) |
| Assignment operator. | |
| void | initCuboidRecords () |
Static Private Attributes | |
| static DtTaitBryan | zeros = DtTaitBryan(0., 0., 0.) |
Additional Inherited Members | |
Protected Member Functions inherited from DtSdcEllipsoidCuboidBase | |
| DtSdcEllipsoidCuboidBase (DtExerciseConn *exConn, unsigned id, const DtString &objName, const DtSdc3DAttachPoint &attachment, const DtVector &dimensions, const DtVector32 &enuOffset=DtVector32::zero(), const DtTaitBryan &rotation=zeros, DtSdcColor color=DtSdcColor::DtSdcWhite, bool flashing=false) | |
| Construct the basis of an Ellipsoid or Cuboid Draw Control Object. | |
| virtual | ~DtSdcEllipsoidCuboidBase () |
A 3D cuboidal Stealth Draw Control Object.
DtSdcCuboidObject represents an Cuboidal Draw Control Object that can be sent to a MAK Stealth to be drawn on it's main view. The class inherits DtSdcEllipsoidCuboidBase; it only needs to set the appropriate object type in it's constructor.
| DtSdcCuboidObject::DtSdcCuboidObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtSdc3DAttachPoint & | attachment, | ||
| double | length, | ||
| double | width, | ||
| double | height, | ||
| const DtVector32 & | enuOffset = DtVector32::zero(), |
||
| const DtTaitBryan & | rotation = zeros, |
||
| DtSdcColor | color = DtSdcColor::DtSdcWhite, |
||
| bool | flashing = false |
||
| ) |
Construct an Cuboid Draw Control Object.
| id | Passed to DtSdcObject base (see) |
| attachment | DtSdc3DAttachPoint indicating how the center of the object is positioned in 3D |
| length | Length of object (along the X axis, before rotation) in meters |
| width | Width of object (along the Y axis, before rotation) in meters |
| height | Height of object (along the Z axis, before rotation) in meters |
| enuOffset | a 3D vector indicating an east/north/up offset (in meters) from the base attachment |
| rotation | rotations to apply to the object, about the Geocentric Z, Y and X axes (DIS/HLA-RPR). Values go from 0 to 2 PI |
| color | The color of the object |
| flashing | A boolean parameter indicating whether or not the object should be flashing |
References Dt3DGraphicalObjectCategoryCuboid, Dt3DGraphicalObjectKind, DtSdcObject::id(), initCuboidRecords(), and DtSdcObject::myPublisher.
|
virtual |
|
private |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the cuboid
|
private |
Copy constructor.
Private and unimplemented - not copyable.
|
virtual |
length accessor
Get the object's length
References DtSdcEllipsoidCuboidBase::myDimensions.
Referenced by setLength().
|
virtual |
length mutator
Set the object's length
| length | length in meters |
References length(), myCuboidRecord, and DtSdcEllipsoidCuboidBase::myDimensions.
|
virtual |
width accessor
Get the object's width
References DtSdcEllipsoidCuboidBase::myDimensions.
Referenced by setWidth().
|
virtual |
width mutator
Set the object's width
| width | width in meters |
References myCuboidRecord, DtSdcEllipsoidCuboidBase::myDimensions, and width().
|
virtual |
height accessor
Get the object's height
References DtSdcEllipsoidCuboidBase::myDimensions.
Referenced by setHeight().
|
virtual |
height mutator
Set the object's height
| height | height in meters |
References height(), myCuboidRecord, and DtSdcEllipsoidCuboidBase::myDimensions.
|
virtual |
attachment mutator
Set the object's attachment information
| attachment |
Reimplemented from DtSdcEllipsoidCuboidBase.
References DtSdc3DAttachPoint::attachedId(), DtSdc3DAttachPoint::attachmentType(), DtSdc3DAttachPoint::attachmentTypeScene, DtSdc3DAttachPoint::isAttached(), DtSdc3DAttachPoint::location(), DtSdcEllipsoidCuboidBase::myAttachment, myCuboidRecord, DtSdcEllipsoidCuboidBase::myStateRecord, DtSdc3DAttachPoint::relativePosition(), Dt3DGraphicalObjectStateRecord::setAttachment(), and Dt3DGraphicalObjectStateRecord::setNumberOfAttachments().
|
virtual |
rotation mutator
Set the counter-clockwise rotations of the object about it's axes
| rotation | [psi, theta, phi] radians |
Reimplemented from DtSdcEllipsoidCuboidBase.
References myCuboidRecord.
|
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.
Implements DtSdcObject.
References myCuboidRecord, DtSdcObject::myPublisher, and DtSdcEllipsoidCuboidBase::myStateRecord.
|
private |
Assignment operator.
Private and unimplemented - not copyable.
|
private |
References DtSdc3DAttachPoint::attachedId(), DtSdc3DAttachPoint::attachmentType(), DtSdc3DAttachPoint::attachmentTypeScene, DtSdc3DAttachPoint::isAttached(), DtSdc3DAttachPoint::location(), DtSdcEllipsoidCuboidBase::myAttachment, myCuboidRecord, DtSdcEllipsoidCuboidBase::myDimensions, DtSdcEllipsoidCuboidBase::myRotation, DtSdcEllipsoidCuboidBase::myStateRecord, DtSdc3DAttachPoint::relativePosition(), Dt3DGraphicalObjectStateRecord::setAttachment(), and Dt3DGraphicalObjectStateRecord::setNumberOfAttachments().
Referenced by DtSdcCuboidObject().
|
protected |
Referenced by initCuboidRecords(), setAttachment(), setHeight(), setLength(), setRotation(), setWidth(), and update().
|
staticprivate |