VR-Forces 5.0.2 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
DtRailObstructionInfo Class Reference

Set of data, used in conjunction with a DtCollision, to specify the information about an obstruction along a rail. Information is in an entity centric format.

Public Member Functions

 DtRailObstructionInfo ()
 
virtual ~DtRailObstructionInfo ()
 
virtual void adjustDistances (double adjustmentValue)
 
virtual void merge (const DtRailObstructionInfo &source)
 
virtual std::set< int > & lanes ()
 
virtual const std::set< int > & lanes () const
 
virtual double startBlockDistance () const
 
virtual void setStartBlockDistance (double v)
 
virtual double endBlockDistance () const
 
virtual void setEndBlockDistance (double v)
 
virtual double velocityAlongSegment () const
 
virtual void setVelocityAlongSegment (double v)
 

Protected Attributes

std::set< intmyLanes
 
double myStartBlockDistance
 
double myEndBlockDistance
 
double myVelocityAlongSegment
 

Constructor & Destructor Documentation

DtRailObstructionInfo::DtRailObstructionInfo ( )
virtual DtRailObstructionInfo::~DtRailObstructionInfo ( )
virtual

Member Function Documentation

virtual std::set<int>& DtRailObstructionInfo::lanes ( )
virtual

The lanes obstructed by this obstruction.

virtual const std::set<int>& DtRailObstructionInfo::lanes ( ) const
virtual

The lanes obstructed by this obstruction.

virtual double DtRailObstructionInfo::startBlockDistance ( ) const
virtual

The distance along the rail to the point where the obstruction starts blocking the rail.

virtual void DtRailObstructionInfo::setStartBlockDistance ( double  v)
virtual

The distance along the rail to the point where the obstruction starts blocking the rail.

virtual double DtRailObstructionInfo::endBlockDistance ( ) const
virtual

The distance along the rail until this obstruction is clear.

virtual void DtRailObstructionInfo::setEndBlockDistance ( double  v)
virtual

The distance along the rail until this obstruction is clear.

virtual double DtRailObstructionInfo::velocityAlongSegment ( ) const
virtual

The aspect of velocity of the obstruction that is along the direction of the segment. May be negative, if the obstruction is traveling in the opposite direction.

virtual void DtRailObstructionInfo::setVelocityAlongSegment ( double  v)
virtual

The aspect of velocity of the obstruction that is along the direction of the segment. May be negative, if the obstruction is traveling in the opposite direction.

virtual void DtRailObstructionInfo::adjustDistances ( double  adjustmentValue)
virtual

Adds the adjustmentValue to each distance in this info. Use this to change the perspective of this data from one segment to another.

virtual void DtRailObstructionInfo::merge ( const DtRailObstructionInfo source)
virtual

Changes the data of this class to encompass the data in source. The merge will make all conservative assumptions, meaning that Only more lanes will be blocked, startBlockDistance will only get smaller and endBlockDistance will only get larger.

Member Data Documentation

std::set<int> DtRailObstructionInfo::myLanes
protected
double DtRailObstructionInfo::myStartBlockDistance
protected
double DtRailObstructionInfo::myEndBlockDistance
protected
double DtRailObstructionInfo::myVelocityAlongSegment
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)