|
WSF
|
Defines an entity's segment from one state to another over time. More...
#include <WsfPathList.hpp>


Public Member Functions | |
| Segment () | |
| virtual | ~Segment ()=default |
| virtual void | ComputeState (double aRelativeSimTime, WsfPathState &aState)=0 |
| virtual Segment * | Clone () const =0 |
| Returns a copy of the segment. | |
| void | Initialize (double aDuration, const WsfPathState &aState) |
| Initialize the basic members of the segment. | |
| void | SetRollRate (double aRollRate) |
| const WsfPathState & | GetInitialState () const |
| Returns the state at the start of the segment. | |
| double | GetDuration () const |
| Returns the length of time to complete this segment. | |
| void | SetDuration (double aDuration) |
| Sets the length of time to complete this segment. | |
| virtual void | Print (ut::log::MessageStream &aStream) |
| Appends data as notes to aStream. | |
Public Attributes | |
| WsfPathState | mInitialState |
| The initial state of the segment. This should be equivalent to ComputeState(0.0). | |
| double | mDuration |
| The length of simulation time this duration takes to complete. | |
| double | mRollRate |
| The roll rate used when changing roll angle. | |
| bool | mIsApproximation |
| Indicates this segment is an approximation. | |
Defines an entity's segment from one state to another over time.
|
inline |
References mDuration, mInitialState, mIsApproximation, and mRollRate.
Referenced by WsfPathList::PauseSegment::Clone(), WsfPathList::RotationArcSegment::Clone(), WsfPathList::RotationSegment::Clone(), and Clone().
|
virtualdefault |
|
pure virtual |
Returns a copy of the segment.
Implemented in WsfPathList::PauseSegment, WsfPathList::RotationArcSegment, and WsfPathList::RotationSegment.
References Segment().
|
pure virtual |
Computes a state along this segment
| aRelativeSimTime | The length of simulation-time after the segment started |
| aState | The state at aRelativeSimTime along this segment |
Implemented in WsfPathList::PauseSegment, WsfPathList::RotationArcSegment, and WsfPathList::RotationSegment.
|
inline |
Returns the length of time to complete this segment.
References mDuration.
Referenced by WsfPathList::Append(), WsfPathList::Append(), and WsfPathComputer::RevisePathHitPointAtTime().
|
inline |
Returns the state at the start of the segment.
References mInitialState.
Referenced by WsfPathComputer::RevisePathHitPointAtTime().
|
inline |
Initialize the basic members of the segment.
References mDuration, and mInitialState.
Referenced by WsfPathComputer::ComputePath(), WsfPathComputer::Rotate(), and WsfPathComputer::TurnRelative().
|
virtual |
Appends data as notes to aStream.
Reimplemented in WsfPathList::PauseSegment, WsfPathList::RotationArcSegment, and WsfPathList::RotationSegment.
References mDuration, and mInitialState.
Referenced by WsfPathList::PauseSegment::Print(), WsfPathList::RotationArcSegment::Print(), WsfPathList::RotationSegment::Print(), and WsfPathList::PrintPath().
|
inline |
Sets the length of time to complete this segment.
References mDuration.
Referenced by WsfPathList::Append().
|
inline |
References mRollRate.
Referenced by WsfPathComputer::Rotate().
| double WsfPathList::Segment::mDuration |
The length of simulation time this duration takes to complete.
Referenced by GetDuration(), Initialize(), Print(), Segment(), and SetDuration().
| WsfPathState WsfPathList::Segment::mInitialState |
The initial state of the segment. This should be equivalent to ComputeState(0.0).
Referenced by WsfPathList::PauseSegment::ComputeState(), GetInitialState(), Initialize(), Print(), and Segment().
| bool WsfPathList::Segment::mIsApproximation |
Indicates this segment is an approximation.
Referenced by WsfPathComputer::Rotate(), and Segment().
| double WsfPathList::Segment::mRollRate |
The roll rate used when changing roll angle.
Referenced by Segment(), and SetRollRate().