![]() |
VR-Forces 5.0.3 Developer's Guide
|
A 3D ellipsoidal Stealth Draw Control Object.
DtEllipsoidObject represents an Ellipsoidal Draw Control Object that can be sent to a MAK Stealth to be drawn on its main view. The class inherits DtEllipsoidCuboidBase; it only needs to set the appropriate object type in its constructor.

Public Member Functions | |
| DtEllipsoidObject (DtExerciseConn *exConn, unsigned id, const DtVdc3DAttachPoint &attachment, const DtVector &diameters, const DtVector &offset=DtVector::zero(), const DtTaitBryan &rotation=zeros, DtVdcColor color=DtVdcColor::DtVdcWhite, bool flashing=false) | |
| virtual | ~DtEllipsoidObject () |
| virtual const DtVector & | diameters () const |
| virtual void | setDiameters (const DtVector &diameters) |
| virtual void | setAttachment (const DtVdc3DAttachPoint &attachment) |
| virtual void | setRotation (const DtTaitBryan &rotation) |
| virtual void | update () |
Public Member Functions inherited from vrvControlToolkit::DtEllipsoidCuboidBase | |
| virtual const DtVdc3DAttachPoint & | attachment () const |
| virtual const DtVector32 & | offset () const |
| virtual void | setOffset (const DtVector32 &off) |
| virtual const DtTaitBryan & | rotation () const |
| virtual const DtVdcColor & | color () const |
| virtual void | setColor (const DtVdcColor &color) |
| virtual bool | flashing () const |
| virtual void | setFlashing (bool flashing) |
| virtual void | setRemoteGraphicSet (const std::string &setName) |
Public Member Functions inherited from vrvControlToolkit::Dt3DPositionedObject | |
| Dt3DPositionedObject (DtExerciseConn *exConn, unsigned id, const DtString &objName) | |
| virtual | ~Dt3DPositionedObject () |
Public Member Functions inherited from vrvControlToolkit::DtDrawControlObject | |
| 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 |
Protected Attributes | |
| DtEnvironmentalEllipsoidRecord | myEllipsoidRecord |
Protected Attributes inherited from vrvControlToolkit::DtEllipsoidCuboidBase | |
| DtVdc3DAttachPoint | myAttachment |
| DtVector | myDimensions |
| DtVector32 | myOffset |
| DtVdcColor | myColor |
| DtTaitBryan | myRotation |
| bool | myFlashing |
| Dt3DGraphicalObjectStateRecord | myStateRecord |
Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject | |
| unsigned | myId |
| DtEnvironmentProcessPublisher * | myPublisher |
| bool | myVisible |
| DtVdcColor | myEmptyColor |
Private Member Functions | |
| DtEllipsoidObject () | |
| DtEllipsoidObject (const DtEllipsoidObject &orig) | |
| DtEllipsoidObject & | operator= (const DtEllipsoidObject &rhs) |
| void | initEllipsoidRecords () |
Static Private Attributes | |
| static DtTaitBryan | zeros |
Additional Inherited Members | |
Static Public Member Functions inherited from vrvControlToolkit::DtDrawControlObject | |
| static void | setPublisherCreator (DtEnvironmentProcessPublisherCreator *creator) |
Protected Member Functions inherited from vrvControlToolkit::DtEllipsoidCuboidBase | |
| DtEllipsoidCuboidBase (DtExerciseConn *exConn, unsigned id, const DtString &objName, const DtVdc3DAttachPoint &attachment, const DtVector &dimensions, const DtVector &offset=DtVector::zero(), const DtTaitBryan &rotation=zeros, DtVdcColor color=DtVdcColor::DtVdcWhite, bool flashing=false) | |
| virtual | ~DtEllipsoidCuboidBase () |
Static Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject | |
| static DtEnvironmentProcessPublisherCreator * | thePublisherCreator |
| vrvControlToolkit::DtEllipsoidObject::DtEllipsoidObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVdc3DAttachPoint & | attachment, | ||
| const DtVector & | diameters, | ||
| const DtVector & | offset = DtVector::zero(), |
||
| const DtTaitBryan & | rotation = zeros, |
||
| DtVdcColor | color = DtVdcColor::DtVdcWhite, |
||
| bool | flashing = false |
||
| ) |
Construct the basis of an Ellipsoid or Cuboid Draw Control Object.
| id | Passed to DtDrawControlObject base (see) |
| attachment | DtVdc3DAttachPoint indicating how the object is positioned in 3D |
| diameters | Diameters of object along the X, Y and Z axes (before rotation) in meters |
| offset | a 3D vector indicating an right/front/down offset (in meters) from the base attachment point |
| 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 |
|
virtual |
|
private |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the ellipsoid
|
private |
Copy constructor.
Private and unimplemented - not copyable.
|
virtual |
diameters accessor
Get the object's diameters
|
virtual |
diameters mutator
Set the object's diameters
| diameters | [X, Y, Z] diameters in meters |
|
virtual |
attachment mutator
Set the object's attachment information
| attachment |
Reimplemented from vrvControlToolkit::DtEllipsoidCuboidBase.
|
virtual |
rotation mutator
Set the counter-clockwise rotations of the object about its axes
| rotation | [psi, theta, phi] radians |
Reimplemented from vrvControlToolkit::DtEllipsoidCuboidBase.
|
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 vrvControlToolkit::DtDrawControlObject.
|
private |
Assignment operator.
Private and unimplemented - not copyable.
|
private |
|
protected |
|
staticprivate |