VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
DtGroundInteractionPt Class Reference

Class Invariant: The DtGroundInteractionPt class must always have a valid DtAttachedTerrain or DtSimManager pointer. More...

Inheritance diagram for DtGroundInteractionPt:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtGroundInteractionPt ()
 DtGroundInteractionPt (const DtVector &localPosition, DtAttachedTerrain &refFrame)
virtual ~DtGroundInteractionPt ()
 DtGroundInteractionPt (const DtGroundInteractionPt &original)
 Copy constructor.
DtGroundInteractionPtoperator= (const DtGroundInteractionPt &original)
 Assignment operator.
DtGroundInteractionPtoperator= (const DtChordIntersectionRecord &intersectionRecord)
 Assign from a chord intersection record.
void init (const DtVector &localPosition, DtAttachedTerrain &terrainAttachedTo)
 Not virtual, because called from constructor.
virtual bool isOnGround ()
 Returns true if myAltitude <= 0.0.
virtual DtFloat64 calculatePosition ()
 Calculates position in world coordinates, and returns altitude above or below ground.
virtual void calculatePositionWithoutGround ()
 Just calculate the position value using the parent's position.
virtual const DtVectorlocalPosition () const
virtual void setLocalPosition (const DtVector &position)
virtual DtAttachedTerrainterrainAttachedTo ()
virtual const DtAttachedTerrainterrainAttachedTo () const
virtual void setTerrainAttachedTo (DtAttachedTerrain *newTerrainAttachedTo)
virtual void setPosition (const DtVector &position)
virtual DtVector calculateOnGroundPlanePosition () const
 If the ground interaction point is used to actually place an object on the ground by offsetting the object's position relative to the ground by the interaction point offset amounts, this is the position on the plane in which the (offset) object will lie, directly above the ground interaction point.
virtual const DtVectorposition () const
 These simply return the corresponding member variable.
virtual DtFloat64 altitude () const
virtual void setAltitude (DtFloat64 alt)
virtual const DtVectorgroundPosition () const
virtual void setGroundPosition (const DtVector &pos)
virtual DtRoughnessSoilType soilType () const
virtual void setSoilType (DtRoughnessSoilType type)
virtual const DtSurfacesurface () const
virtual void setSurface (const DtSurface &surface)
virtual void setParentPosition (const DtVector &pos)
virtual void setParentOrientation (const DtDcm &orient)

Protected Member Functions

bool testInvariant () const

Protected Attributes

DtVector myParentPosition
DtDcm myParentOrientation
DtVector myLocalPosition
DtVector myPosition
DtVector myGroundPosition
DtFloat64 myAltitude
DtRoughnessSoilType mySoilType
DtSurface mySurface
DtAttachedTerrainmyTerrainAttachedTo

Detailed Description

Class Invariant: The DtGroundInteractionPt class must always have a valid DtAttachedTerrain or DtSimManager pointer.


Constructor & Destructor Documentation

DtGroundInteractionPt::DtGroundInteractionPt ( const DtVector localPosition,
DtAttachedTerrain refFrame 
)

Copy constructor.


Member Function Documentation

DtGroundInteractionPt& DtGroundInteractionPt::operator= ( const DtGroundInteractionPt original)

Assignment operator.

DtGroundInteractionPt& DtGroundInteractionPt::operator= ( const DtChordIntersectionRecord intersectionRecord)

Assign from a chord intersection record.

void DtGroundInteractionPt::init ( const DtVector localPosition,
DtAttachedTerrain terrainAttachedTo 
)

Not virtual, because called from constructor.

virtual bool DtGroundInteractionPt::isOnGround ( ) [virtual]

Returns true if myAltitude <= 0.0.

virtual DtFloat64 DtGroundInteractionPt::calculatePosition ( ) [virtual]

Calculates position in world coordinates, and returns altitude above or below ground.

Above ground is defined as positive altitude. Also sets the ground position.

Just calculate the position value using the parent's position.

virtual const DtVector& DtGroundInteractionPt::localPosition ( ) const [virtual]
virtual void DtGroundInteractionPt::setLocalPosition ( const DtVector position) [virtual]
virtual const DtAttachedTerrain* DtGroundInteractionPt::terrainAttachedTo ( ) const [virtual]
virtual void DtGroundInteractionPt::setTerrainAttachedTo ( DtAttachedTerrain newTerrainAttachedTo) [virtual]
virtual void DtGroundInteractionPt::setPosition ( const DtVector position) [virtual]

If the ground interaction point is used to actually place an object on the ground by offsetting the object's position relative to the ground by the interaction point offset amounts, this is the position on the plane in which the (offset) object will lie, directly above the ground interaction point.

This can only be used if the groundPosition() has already been determined by calling calculatePosition() (or set directly via mutator) and the parentOrientation has been provided.

virtual const DtVector& DtGroundInteractionPt::position ( ) const [virtual]

These simply return the corresponding member variable.

calculatePosition() must be called for them to be up-to-date.

virtual DtFloat64 DtGroundInteractionPt::altitude ( ) const [virtual]
virtual void DtGroundInteractionPt::setAltitude ( DtFloat64  alt) [virtual]
virtual const DtVector& DtGroundInteractionPt::groundPosition ( ) const [virtual]
virtual void DtGroundInteractionPt::setGroundPosition ( const DtVector pos) [virtual]
virtual void DtGroundInteractionPt::setSoilType ( DtRoughnessSoilType  type) [virtual]
virtual const DtSurface& DtGroundInteractionPt::surface ( ) const [virtual]
virtual void DtGroundInteractionPt::setSurface ( const DtSurface surface) [virtual]
virtual void DtGroundInteractionPt::setParentPosition ( const DtVector pos) [virtual]
virtual void DtGroundInteractionPt::setParentOrientation ( const DtDcm &  orient) [virtual]

Member Data Documentation

DtFloat64 DtGroundInteractionPt::myAltitude [protected]

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)