![]() |
VR-Forces 4.6 Class Documentation
|
A class for representing cylinders. More...

Public Member Functions | |
| DtCylinderObject (DtExerciseConn *exConn, unsigned id, const DtVdc3DAttachPoint &attachment, double length, const DtVdcVector2D &diameters, const DtVector &offset=DtVector::zero(), const DtTaitBryan &rotation=zeros, DtVdcColor color=DtVdcColor::DtVdcWhite, bool flashing=false) | |
| Construct the Cylindrical Draw Control Object attached at one point. | |
| DtCylinderObject (DtExerciseConn *exConn, unsigned id, const DtVdc3DAttachPoint &startAttachment, const DtVdc3DAttachPoint &endAttachment, const DtVdcVector2D &diameters, const DtVector &offset=DtVector::zero(), DtVdcColor color=DtVdcColor::DtVdcWhite, bool flashing=false) | |
| Construct the Cylindrical Draw Control Object attached at two points. | |
| virtual | ~DtCylinderObject () |
| virtual const DtVdc3DAttachPoint & | attachment () const |
| attachment accessor | |
| virtual void | setAttachment (const DtVdc3DAttachPoint &attachment) |
| attachment mutator | |
| virtual const DtVdc3DAttachPoint & | startAttachment () const |
| startAttachment accessor | |
| virtual void | setStartAttachment (const DtVdc3DAttachPoint &startAttachment) |
| startAttachment mutator | |
| virtual const DtVdc3DAttachPoint & | endAttachment () const |
| endAttachment accessor | |
| virtual void | setEndAttachment (const DtVdc3DAttachPoint &endAttachment) |
| endAttachment mutator | |
| virtual const DtVector32 & | offset () const |
| offset accessor | |
| virtual void | setOffset (const DtVector32 &off) |
| offset mutator | |
| virtual double | length () const |
| length accessor | |
| virtual void | setLength (double length) |
| length mutator | |
| virtual const DtVdcVector2D & | diameters () const |
| diameters accessor | |
| virtual void | setDiameters (const DtVdcVector2D &diameters) |
| diameters 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) |
| virtual void | update () |
| update the internal pdu | |
Public Member Functions inherited from vrvControlToolkit::Dt3DTwoPositionedObject | |
| Dt3DTwoPositionedObject (DtExerciseConn *exConn, unsigned id, const DtString &objName) | |
| virtual | ~Dt3DTwoPositionedObject () |
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 |
Protected Member Functions | |
| void | initRecords () |
Private Member Functions | |
| DtCylinderObject () | |
| Default constructor. | |
| DtCylinderObject (const DtCylinderObject &orig) | |
| Copy constructor. | |
| DtCylinderObject & | operator= (const DtCylinderObject &rhs) |
| Assignment operator. | |
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 class for representing cylinders.
The DtSdcCylinder class provides mutators that allow the user to specify the attachment, shape, rotation, and color of the cylinder on the Stealth screen; and optionally, make the object flash. The cylinder may be placed at a location which becomes its center, and then a length and rotation specified, OR the cylinder can be attached at either end (in which case there are no length or rotation parameters, although the diameters may still be changed).
| vrvControlToolkit::DtCylinderObject::DtCylinderObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVdc3DAttachPoint & | attachment, | ||
| double | length, | ||
| const DtVdcVector2D & | diameters, | ||
| const DtVector & | offset = DtVector::zero(), |
||
| const DtTaitBryan & | rotation = zeros, |
||
| DtVdcColor | color = DtVdcColor::DtVdcWhite, |
||
| bool | flashing = false |
||
| ) |
Construct the Cylindrical Draw Control Object attached at one point.
| id | Passed to DtDrawControlObject base (see) |
| attachment | DtVdc3DAttachPoint indicating the center of the cylinder in 3D |
| length | length of the cylinder, in meters |
| diameters | Diameters of the cylinder; since these can be different, it means that cylinders can be created with elliptical cross sections |
| 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 outline (and fill, if filled) |
| flashing | A boolean parameter indicating whether or not the object should be flashing |
| vrvControlToolkit::DtCylinderObject::DtCylinderObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVdc3DAttachPoint & | startAttachment, | ||
| const DtVdc3DAttachPoint & | endAttachment, | ||
| const DtVdcVector2D & | diameters, | ||
| const DtVector & | offset = DtVector::zero(), |
||
| DtVdcColor | color = DtVdcColor::DtVdcWhite, |
||
| bool | flashing = false |
||
| ) |
Construct the Cylindrical Draw Control Object attached at two points.
| id | Passed to DtDrawControlObject base (see) |
| startAttachment | DtVdc3DAttachPoint indicating where one end of the cylinder is placed in 3D |
| endAttachment | DtVdc3DAttachPoint indicating where the other end of the cylinder is placed in 3D |
| diameters | Diameters of the cylinder; since these can be different, it means that cylinders can be created with elliptical cross sections |
| offset | a 3D vector indicating an right/front/down offset (in meters) from the base attachment |
| color | The color of the object outline (and fill, if filled) |
| 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 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 when attached at a single point
|
virtual |
attachment mutator
Set the object's attachment information when attached at a single point
| attachment |
|
virtual |
startAttachment accessor
Get the object's first attachment information when attached at two points
Implements vrvControlToolkit::Dt3DTwoPositionedObject.
|
virtual |
startAttachment mutator
Set the object's startAttachment information when attached at two points
| startAttachment |
Implements vrvControlToolkit::Dt3DTwoPositionedObject.
|
virtual |
endAttachment accessor
Get the object's second attachment information when attached at two points
Implements vrvControlToolkit::Dt3DTwoPositionedObject.
|
virtual |
endAttachment mutator
Set the object's endAttachment information when attached at two points
| endAttachment |
Implements vrvControlToolkit::Dt3DTwoPositionedObject.
|
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, in entity coordinates if attached, geocentric otherwise
| off | [X, Y, Z] |
|
virtual |
length accessor
Get the cylinder's length (when attached at a single point) /return cylinder length, in meters
|
virtual |
length mutator
Set the cylinder's length (when attached at a single point) /param length, in meters
|
virtual |
diameters accessor
Get the object's cross section diameters (in Y and Z)
|
virtual |
diameters mutator
Set the object's diameters
| diameters | [Y, Z] diameters in meters |
|
virtual |
rotation accessor
Get the counter-clockwise rotation of the object about its axes (only applies when cylinder is attached at a single point)
|
virtual |
rotation mutator
Set the counter-clockwise rotations of the object about its axes (only applies when cylinder is attached at a single point)
| rotation | [psi, theta, phi] radians |
|
virtual |
color accessor
Get the color assigned to this object
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
color mutator
Set the color to use when drawing (and filling) 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.
|
virtual |
update the internal pdu
Make sure the internal pdu reflects the actual state of the draw control object's members. This is necessary because some members can be modified directly (which make the interface easier to use). DtStealthRemoteDrawer::update() calls this, so the user doesn't need to; but if the user is accessing the pdu directly (via the pdu() accessor) this should be called before using the pdu.
Implements vrvControlToolkit::DtDrawControlObject.
|
protected |
|
staticprivate |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |