![]() |
VR-Forces 4.0.4 Class Documentation
|
A 3D cuboidal Stealth Draw Control Object. More...

Public Member Functions | |
| DtCuboidObject (DtExerciseConn *exConn, unsigned id, const DtVdc3DAttachPoint &attachment, double length, double width, double height, const DtVector &enuOffset=DtVector::zero(), const DtTaitBryan &rotation=zeros, DtVdcColor color=DtVdcColor::DtVdcWhite, bool flashing=false) | |
| Construct an Cuboid Draw Control Object. | |
| virtual | ~DtCuboidObject () |
| 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 DtVdc3DAttachPoint &attachment) |
| attachment mutator | |
| virtual void | setRotation (const DtTaitBryan &rotation) |
| rotation mutator | |
| virtual void | update () |
| update the internal publisher and tick | |
Protected Attributes | |
| DtEnvironmentalRectangularVolumeRecord | myCuboidRecord |
Private Member Functions | |
| DtCuboidObject () | |
| Default constructor. | |
| DtCuboidObject (const DtCuboidObject &orig) | |
| Copy constructor. | |
| DtCuboidObject & | operator= (const DtCuboidObject &rhs) |
| Assignment operator. | |
| void | initCuboidRecords () |
Static Private Attributes | |
| static DtTaitBryan | zeros |
A 3D cuboidal Stealth Draw Control Object.
DtCuboidObject represents an Cuboidal 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.
| vrvControlToolkit::DtCuboidObject::DtCuboidObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVdc3DAttachPoint & | attachment, | ||
| double | length, | ||
| double | width, | ||
| double | height, | ||
| const DtVector & | enuOffset = DtVector::zero(), |
||
| const DtTaitBryan & | rotation = zeros, |
||
| DtVdcColor | color = DtVdcColor::DtVdcWhite, |
||
| bool | flashing = false |
||
| ) |
Construct an Cuboid Draw Control Object.
| id | Passed to DtDrawControlObject base (see) |
| attachment | DtVdc3DAttachPoint 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 |
| virtual vrvControlToolkit::DtCuboidObject::~DtCuboidObject | ( | ) | [virtual] |
| vrvControlToolkit::DtCuboidObject::DtCuboidObject | ( | ) | [private] |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the cuboid
| vrvControlToolkit::DtCuboidObject::DtCuboidObject | ( | const DtCuboidObject & | orig | ) | [private] |
Copy constructor.
Private and unimplemented - not copyable.
| virtual double vrvControlToolkit::DtCuboidObject::length | ( | ) | const [virtual] |
length accessor
Get the object's length
| virtual void vrvControlToolkit::DtCuboidObject::setLength | ( | double | length | ) | [virtual] |
length mutator
Set the object's length
| length | length in meters |
| virtual double vrvControlToolkit::DtCuboidObject::width | ( | ) | const [virtual] |
width accessor
Get the object's width
| virtual void vrvControlToolkit::DtCuboidObject::setWidth | ( | double | width | ) | [virtual] |
width mutator
Set the object's width
| width | width in meters |
| virtual double vrvControlToolkit::DtCuboidObject::height | ( | ) | const [virtual] |
height accessor
Get the object's height
| virtual void vrvControlToolkit::DtCuboidObject::setHeight | ( | double | height | ) | [virtual] |
height mutator
Set the object's height
| height | height in meters |
| virtual void vrvControlToolkit::DtCuboidObject::setAttachment | ( | const DtVdc3DAttachPoint & | attachment | ) | [virtual] |
attachment mutator
Set the object's attachment information
| attachment |
Reimplemented from vrvControlToolkit::DtEllipsoidCuboidBase.
| virtual void vrvControlToolkit::DtCuboidObject::setRotation | ( | const DtTaitBryan & | rotation | ) | [virtual] |
rotation mutator
Set the counter-clockwise rotations of the object about its axes
| rotation | [psi, theta, phi] radians |
Reimplemented from vrvControlToolkit::DtEllipsoidCuboidBase.
| virtual void vrvControlToolkit::DtCuboidObject::update | ( | ) | [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.
| DtCuboidObject& vrvControlToolkit::DtCuboidObject::operator= | ( | const DtCuboidObject & | rhs | ) | [private] |
Assignment operator.
Private and unimplemented - not copyable.
| void vrvControlToolkit::DtCuboidObject::initCuboidRecords | ( | ) | [private] |
DtEnvironmentalRectangularVolumeRecord vrvControlToolkit::DtCuboidObject::myCuboidRecord [protected] |
DtTaitBryan vrvControlToolkit::DtCuboidObject::zeros [static, private] |
Reimplemented from vrvControlToolkit::DtEllipsoidCuboidBase.