VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtRotorWashTrailPoints Class Reference

Public Member Functions

 DtRotorWashTrailPoints ()
 
 DtRotorWashTrailPoints (int maxPoints)
 
 ~DtRotorWashTrailPoints ()
 
void reset ()
 
void addPoint (const DtRotorWashTrailPoint &p)
 
const int numPoints () const
 
DtTime timeRange ()
 
bool isTimeInRange (DtTime time)
 
void getPosAtTimeOffset (DtTime timeOffset, DtVector &heliPos, DtVector &groundPos) const
 
void getPosAtDistOffset (float distOffset, DtVector &heliPos, DtVector &groundPos) const
 
void printPoints () const
 
const float & totalGroundDist () const
 
const intmaxPoints () const
 

Protected Attributes

std::deque< DtRotorWashTrailPointmyTrailPts
 
int myMaxPoints
 
float myTotalGroundDist
 

Constructor & Destructor Documentation

makVrv::DtRotorWashTrailPoints::DtRotorWashTrailPoints ( )

CTOR - Default max is 0 points.

makVrv::DtRotorWashTrailPoints::DtRotorWashTrailPoints ( int  maxPoints)

Specify how many points to keep track of.

makVrv::DtRotorWashTrailPoints::~DtRotorWashTrailPoints ( )

DTOR.

Member Function Documentation

void makVrv::DtRotorWashTrailPoints::reset ( )

Zero out the array of points, clear dist.

void makVrv::DtRotorWashTrailPoints::addPoint ( const DtRotorWashTrailPoint p)

Add a point to the array of points, keep track of the total distance of all the points so far, update distance for previous head point to the incoming point Larger times (newer time) are at the front

const int makVrv::DtRotorWashTrailPoints::numPoints ( ) const

How many points we have (fills up to max points pretty fast)

DtTime makVrv::DtRotorWashTrailPoints::timeRange ( )

How much time does this trail cover?

bool makVrv::DtRotorWashTrailPoints::isTimeInRange ( DtTime  time)

Is the time (ex. 10 seconds) in this array of times and points?

void makVrv::DtRotorWashTrailPoints::getPosAtTimeOffset ( DtTime  timeOffset,
DtVector heliPos,
DtVector groundPos 
) const

Get linearly interpolated helicopter and ground positions based on a time offset in seconds ex. t=0.5, pt1: (0,(0,0,0)), pt2: (1,(3,0,0)) return (1.5,0,0) <0 return head, >last time returns tail.

void makVrv::DtRotorWashTrailPoints::getPosAtDistOffset ( float  distOffset,
DtVector heliPos,
DtVector groundPos 
) const

Get linearly interpolated helicopter and ground positions based on a distance offset in meters (going backwards from the last rotorwash position)

void makVrv::DtRotorWashTrailPoints::printPoints ( ) const

Print out the (time, pos) for the entire trail.

const float& makVrv::DtRotorWashTrailPoints::totalGroundDist ( ) const

If you add up all the distances between the points this is the distance you get.

const int& makVrv::DtRotorWashTrailPoints::maxPoints ( ) const

Maximum trail points allowed (can't dynamically set it)

Member Data Documentation

std::deque<DtRotorWashTrailPoint> makVrv::DtRotorWashTrailPoints::myTrailPts
protected
int makVrv::DtRotorWashTrailPoints::myMaxPoints
protected
float makVrv::DtRotorWashTrailPoints::myTotalGroundDist
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)