VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
vrvControlToolkit::DtVdc3DAttachPoint Class Reference

DtVdc3DAttachPoint represents the 3 methods for attaching a 3D draw control object in 3-space. More...

Public Types

enum  DtVdc3DAttachmentType { attachmentTypeUndefined = 0, attachmentTypeScene = 1, attachmentTypeEntity = 2, attachmentTypeDrawObject = 3 }
 

Public Member Functions

 DtVdc3DAttachPoint (const DtVector &location)
 Geocentric coordinates constructor. More...
 
 DtVdc3DAttachPoint (const DtGlobalObjectDesignator &entityId)
 HLA/DIS object id constructor. More...
 
 DtVdc3DAttachPoint (const DtGlobalObjectDesignator &drawObjectId, double relativePosition)
 HLA/DIS object id constructor. More...
 
 DtVdc3DAttachPoint (const DtVdc3DAttachPoint &orig)
 Copy constructor. More...
 
DtVdc3DAttachPointoperator= (const DtVdc3DAttachPoint &rhs)
 Assignment operator. More...
 
virtual ~DtVdc3DAttachPoint ()
 Virtual destructor. More...
 
 DtVdc3DAttachPoint ()
 Default constructor. More...
 
virtual DtVdc3DAttachmentType attachmentType () const
 Attachment Type accessor. More...
 
virtual DtVector location () const
 Location accessor. More...
 
virtual DtVectorlocation ()
 
virtual void setLocation (DtVector location)
 Location mutator. More...
 
virtual const
DtGlobalObjectDesignator
drawObjectId () const
 Draw Object ID accessor. More...
 
virtual void setDrawObjectId (const DtGlobalObjectDesignator &drawObjectId)
 Draw Object Id mutator. More...
 
virtual double relativePosition () const
 Draw Object relative position accessor; draw object attached only. More...
 
virtual void setRelativePosition (double relativePosition)
 Draw Object relative position mutator. More...
 
virtual DtGlobalObjectDesignator entityId () const
 Entity ID accessor. More...
 
virtual void setEntityId (const DtGlobalObjectDesignator &entityId)
 Entity Id mutator. More...
 
virtual bool isAttached () const
 
virtual const
DtGlobalObjectDesignator
attachedId () const
 

Protected Attributes

DtVector myLocation
 
DtGlobalObjectDesignator myAttachedId
 
double myRelativePosition
 
DtVdc3DAttachmentType myAttachmentType
 

Detailed Description

DtVdc3DAttachPoint represents the 3 methods for attaching a 3D draw control object in 3-space.

DtVdc3DAttachPoint defines the interface and storage for a class that functions as a discriminated union representing the 3 methods for attaching a 3D draw control object in 3-space. Objects can be placed in the scene by specifying 3D geocentric coordinates; an HLA/DIS entity id (DtGlobalObjectDesignator); or the id of another draw control object.

Member Enumeration Documentation

Enumerator
attachmentTypeUndefined 
attachmentTypeScene 
attachmentTypeEntity 
attachmentTypeDrawObject 

Constructor & Destructor Documentation

vrvControlToolkit::DtVdc3DAttachPoint::DtVdc3DAttachPoint ( const DtVector location)

Geocentric coordinates constructor.

Parameters
locationGeocentric location in the scene at which to place this object
vrvControlToolkit::DtVdc3DAttachPoint::DtVdc3DAttachPoint ( const DtGlobalObjectDesignator entityId)

HLA/DIS object id constructor.

Parameters
entityIdHLA/DIS global object designator of entity to attach to
vrvControlToolkit::DtVdc3DAttachPoint::DtVdc3DAttachPoint ( const DtGlobalObjectDesignator drawObjectId,
double  relativePosition 
)

HLA/DIS object id constructor.

Parameters
drawObjectIdid of draw object to attach to
relativePositionIf the attachment is to a draw control object that has 2 ends (line or cylinder) then a relative position can be specified that indicates the position between those two end points. 0. to 100. percent (default 0.)
vrvControlToolkit::DtVdc3DAttachPoint::DtVdc3DAttachPoint ( const DtVdc3DAttachPoint orig)

Copy constructor.

virtual vrvControlToolkit::DtVdc3DAttachPoint::~DtVdc3DAttachPoint ( )
virtual

Virtual destructor.

vrvControlToolkit::DtVdc3DAttachPoint::DtVdc3DAttachPoint ( )

Default constructor.

Member Function Documentation

DtVdc3DAttachPoint& vrvControlToolkit::DtVdc3DAttachPoint::operator= ( const DtVdc3DAttachPoint rhs)

Assignment operator.

virtual DtVdc3DAttachmentType vrvControlToolkit::DtVdc3DAttachPoint::attachmentType ( ) const
virtual

Attachment Type accessor.

Get the type of attachment that this attach point represents

Returns
One of the DtSdc3DAttachmentType enumerations
virtual DtVector vrvControlToolkit::DtVdc3DAttachPoint::location ( ) const
virtual

Location accessor.

Get the geocentric location to attached to

Returns
Geocentric location of object if attachment type is attachmentTypeScene; [0.0, 0.0, 0.0] otherwise
virtual DtVector& vrvControlToolkit::DtVdc3DAttachPoint::location ( )
virtual
virtual void vrvControlToolkit::DtVdc3DAttachPoint::setLocation ( DtVector  location)
virtual

Location mutator.

Set the geocentric location to attached to. This also sets the attachment type to attachmentTypeScene as a side effect

Parameters
locationGeocentric location to attach to
virtual const DtGlobalObjectDesignator& vrvControlToolkit::DtVdc3DAttachPoint::drawObjectId ( ) const
virtual

Draw Object ID accessor.

Get the ID of the draw object to attach to

Returns
Draw Object ID if attachment type is attachmentTypeDrawObject; 0 otherwise
virtual void vrvControlToolkit::DtVdc3DAttachPoint::setDrawObjectId ( const DtGlobalObjectDesignator drawObjectId)
virtual

Draw Object Id mutator.

Set the draw object to attached to. This also sets the attachment type to attachmentTypeDrawObject as a side effect

Parameters
drawObjectIdID of draw object to attach to
virtual double vrvControlToolkit::DtVdc3DAttachPoint::relativePosition ( ) const
virtual

Draw Object relative position accessor; draw object attached only.

Returns
Relative position as a percentage (0. to 100.)
virtual void vrvControlToolkit::DtVdc3DAttachPoint::setRelativePosition ( double  relativePosition)
virtual

Draw Object relative position mutator.

Parameters
relativePosition0. to 100. (percent)
virtual DtGlobalObjectDesignator vrvControlToolkit::DtVdc3DAttachPoint::entityId ( ) const
virtual

Entity ID accessor.

Get the Global Object Designator of the entity to attach to

Returns
Global Object Designator if attachment type is attachmentTypeDrawEntity; GlobalObjectDesignator::nullId() (in HLA) or GlobalObjectDesignator::nullString() (in DIS) otherwise
virtual void vrvControlToolkit::DtVdc3DAttachPoint::setEntityId ( const DtGlobalObjectDesignator entityId)
virtual

Entity Id mutator.

Set the entity to attached to. This also sets the attachment type to attachmentTypeEntity as a side effect

Parameters
entityIdGlobal Object Designator of entity to attach to
virtual bool vrvControlToolkit::DtVdc3DAttachPoint::isAttached ( ) const
virtual
virtual const DtGlobalObjectDesignator& vrvControlToolkit::DtVdc3DAttachPoint::attachedId ( ) const
virtual

Member Data Documentation

DtVector vrvControlToolkit::DtVdc3DAttachPoint::myLocation
protected
DtGlobalObjectDesignator vrvControlToolkit::DtVdc3DAttachPoint::myAttachedId
protected
double vrvControlToolkit::DtVdc3DAttachPoint::myRelativePosition
protected
DtVdc3DAttachmentType vrvControlToolkit::DtVdc3DAttachPoint::myAttachmentType
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)