![]() |
VR-Forces 4.5 Class Documentation
|
A common base class for representing ellipsoids and cuboids. More...

Public Member Functions | |
| virtual const DtVdc3DAttachPoint & | attachment () const |
| attachment accessor | |
| virtual void | setAttachment (const DtVdc3DAttachPoint &attachment) |
| attachment mutator | |
| virtual const DtVector32 & | offset () const |
| offset accessor | |
| virtual void | setOffset (const DtVector32 &off) |
| offset mutator | |
| virtual const DtTaitBryan & | rotation () const |
| rotation accessor | |
| virtual void | setRotation (const DtTaitBryan &rotation) |
| rotation mutator | |
| virtual const DtVdcColor & | color () const |
| color accessor | |
| virtual void | setColor (const DtVdcColor &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 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) | |
| 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 void | update ()=0 |
| update the internal publisher and tick | |
Protected Member Functions | |
| 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) | |
| Construct the basis of an Ellipsoid or Cuboid Draw Control Object. | |
| virtual | ~DtEllipsoidCuboidBase () |
Protected Attributes | |
| DtVdc3DAttachPoint | myAttachment |
| DtVector | myDimensions |
| DtVector32 | myOffset |
| DtVdcColor | myColor |
| DtTaitBryan | myRotation |
| bool | myFlashing |
| Dt3DGraphicalObjectStateRecord | myStateRecord |
Private Member Functions | |
| DtEllipsoidCuboidBase () | |
| Default constructor. | |
| DtEllipsoidCuboidBase (const DtEllipsoidCuboidBase &orig) | |
| Copy constructor. | |
| DtEllipsoidCuboidBase & | operator= (const DtEllipsoidCuboidBase &rhs) |
| Assignment operator. | |
| void | initRecords () |
Static Private Attributes | |
| static DtTaitBryan | zeros |
Additional Inherited Members | |
Static Public Member Functions inherited from vrvControlToolkit::DtDrawControlObject | |
| static void | setPublisherCreator (DtEnvironmentProcessPublisherCreator *creator) |
Static Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject | |
| static DtEnvironmentProcessPublisherCreator * | thePublisherCreator |
A common base class for representing ellipsoids and cuboids.
DtEllipsoidCuboidBase in inherited by both DtEllipsoidObject and DtCuboidObject. Ellipsoids and cuboids are represented in the exact same way on the network, except for a type field which indicates which should be drawn. This base class provides mutators that allow the user to specify the attachment, shape, rotation, and color of the ellipsoid or cuboid on the Stealth screen; and optionally, make the object flash. This class shuold not be instantiated on its own (and its constructors are protected to prevent that).
|
protected |
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 |
| dimensions | Dimensions of object along the X, Y and Z axes (before rotation) in meters. These are the radii for ellipsoids; length, width, and height for cuboids |
| offset | a 3D vector indicating an right/front/down 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 |
|
protectedvirtual |
|
private |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the Ellipsoid or Cuboid
|
private |
Copy constructor.
Private and unimplemented - not copyable.
|
private |
Assignment operator.
Private and unimplemented - not copyable.
|
virtual |
attachment accessor
Get the object's attachment information
Implements vrvControlToolkit::Dt3DPositionedObject.
|
virtual |
attachment mutator
Set the object's attachment information
| attachment |
Implements vrvControlToolkit::Dt3DPositionedObject.
Reimplemented in vrvControlToolkit::DtCuboidObject, and vrvControlToolkit::DtEllipsoidObject.
|
virtual |
offset accessor
Get the object's offset from the attach point, in entity coordinates if attached, geocentric otherwise
|
virtual |
offset mutator
Set the object's offset from the attach point
| offset | [X, Y, Z] |
|
virtual |
rotation accessor
Get the counter-clockwise rotation of the object about its axes
|
virtual |
rotation mutator
Set the counter-clockwise rotations of the object about its axes
| rotation | [psi, theta, phi] radians |
Reimplemented in vrvControlToolkit::DtCuboidObject, and vrvControlToolkit::DtEllipsoidObject.
|
virtual |
color accessor
Get the color assigned to this object
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
color mutator
Set the color to use when drawing this object
| color | The DtVdcColor to use |
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
flashing accessor
Get the boolean that indicates whether or not the object should flash
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
flashing mutator
Set the boolean that indicates whether or not the object should flash
| flashing | true or false |
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
private |
|
staticprivate |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |