VR-Forces 4.8 Class Documentation
 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 ()
 CTOR - Default max is 0 points. More...
 
 DtRotorWashTrailPoints (int maxPoints)
 Specify how many points we should keep track of. More...
 
 ~DtRotorWashTrailPoints ()
 DTOR. More...
 
void reset ()
 Zero out the array of points, clear dist. More...
 
void 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 More...
 
const int numPoints () const
 How many points we have (fills up to max points pretty fast) More...
 
DtTime timeRange ()
 How much time does this trail cover? More...
 
bool isTimeInRange (DtTime time)
 Is the time (ex. More...
 
void getPosAtTimeOffset (DtTime timeOffset, DtVector &heliPos, DtVector &groundPos) const
 Get linearly interpolated helicopter and ground positions based on a time offset in seconds ex. More...
 
void 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) More...
 
void printPoints () const
 Print out the (time, pos) for the entire trail. More...
 
const float & totalGroundDist () const
 If you add up all the distances between the points this is the distance you get. More...
 
const intmaxPoints () const
 How many points can we possibly have (can't dynamically set it) More...
 

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 we should 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

How many points can we possibly have (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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)