VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes
DtSdcCuboidObject Class Reference

A 3D cuboidal Stealth Draw Control Object. More...

Inheritance diagram for DtSdcCuboidObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtSdcCuboidObject (DtExerciseConn *exConn, unsigned id, const DtSdc3DAttachPoint &attachment, double length, double width, double height, const DtVector &enuOffset=DtVector::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

Protected Attributes

DtEnvironmentalRectangularVolumeRecord myCuboidRecord

Private Member Functions

 DtSdcCuboidObject ()
 Default constructor.
 DtSdcCuboidObject (const DtSdcCuboidObject &orig)
 Copy constructor.
DtSdcCuboidObjectoperator= (const DtSdcCuboidObject &rhs)
 Assignment operator.
void initCuboidRecords ()

Static Private Attributes

static DtTaitBryan zeros

Detailed Description

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.


Constructor & Destructor Documentation

DtSdcCuboidObject::DtSdcCuboidObject ( DtExerciseConn *  exConn,
unsigned  id,
const DtSdc3DAttachPoint attachment,
double  length,
double  width,
double  height,
const DtVector enuOffset = DtVector::zero(),
const DtTaitBryan &  rotation = zeros,
DtSdcColor  color = DtSdcColor::DtSdcWhite,
bool  flashing = false 
)

Construct an Cuboid Draw Control Object.

Parameters:
idPassed to DtSdcObject base (see)
attachmentDtSdc3DAttachPoint indicating how the center of the object is positioned in 3D
lengthLength of object (along the X axis, before rotation) in meters
widthWidth of object (along the Y axis, before rotation) in meters
heightHeight of object (along the Z axis, before rotation) in meters
enuOffseta 3D vector indicating an east/north/up offset (in meters) from the base attachment
rotationrotations to apply to the object, about the Geocentric Z, Y and X axes (DIS/HLA-RPR). Values go from 0 to 2 PI
colorThe color of the object
flashingA boolean parameter indicating whether or not the object should be flashing

Default constructor.

Private and not implemented - you must supply an id and basic geometric parameters to construct the cuboid

Copy constructor.

Private and unimplemented - not copyable.


Member Function Documentation

virtual double DtSdcCuboidObject::length ( ) const [virtual]

length accessor

Get the object's length

Returns:
length in meters
virtual void DtSdcCuboidObject::setLength ( double  length) [virtual]

length mutator

Set the object's length

Parameters:
lengthlength in meters
virtual double DtSdcCuboidObject::width ( ) const [virtual]

width accessor

Get the object's width

Returns:
width in meters
virtual void DtSdcCuboidObject::setWidth ( double  width) [virtual]

width mutator

Set the object's width

Parameters:
widthwidth in meters
virtual double DtSdcCuboidObject::height ( ) const [virtual]

height accessor

Get the object's height

Returns:
height in meters
virtual void DtSdcCuboidObject::setHeight ( double  height) [virtual]

height mutator

Set the object's height

Parameters:
heightheight in meters
virtual void DtSdcCuboidObject::setAttachment ( const DtSdc3DAttachPoint attachment) [virtual]

attachment mutator

Set the object's attachment information

Parameters:
attachment

Reimplemented from DtSdcEllipsoidCuboidBase.

virtual void DtSdcCuboidObject::setRotation ( const DtTaitBryan &  rotation) [virtual]

rotation mutator

Set the counter-clockwise rotations of the object about it's axes

Parameters:
rotation[psi, theta, phi] radians

Reimplemented from DtSdcEllipsoidCuboidBase.

virtual void DtSdcCuboidObject::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 DtSdcObject.

DtSdcCuboidObject& DtSdcCuboidObject::operator= ( const DtSdcCuboidObject rhs) [private]

Assignment operator.

Private and unimplemented - not copyable.


Member Data Documentation

DtEnvironmentalRectangularVolumeRecord DtSdcCuboidObject::myCuboidRecord [protected]
DtTaitBryan DtSdcCuboidObject::zeros [static, private]

Reimplemented from DtSdcEllipsoidCuboidBase.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)