Public Member Functions | List of all members
FakeTransformer Class Reference

Detailed Description

Something to put into a TransformLibrary without any overhead.

Definition at line 58 of file TransformLibrary_T.cpp.

Inheritance diagram for FakeTransformer:
Inheritance graph
[legend]

Public Member Functions

 FakeTransformer (gnsstk::RefFrameRlz fromRlz, gnsstk::RefFrameRlz toRlz)
 
 FakeTransformer (gnsstk::RefFrameRlz fromRlz, gnsstk::RefFrameRlz toRlz, const gnsstk::CommonTime &start)
 
bool transform (const gnsstk::Position &fromPos, gnsstk::Position &toPos) const noexcept override
 
bool transform (const gnsstk::Triple &fromPos, const gnsstk::RefFrame &srcFrame, gnsstk::Triple &toPos) const noexcept override
 
bool transform (const gnsstk::Vector< double > &fromPos, const gnsstk::RefFrame &srcFrame, gnsstk::Vector< double > &toPos) const noexcept override
 
bool transform (const gnsstk::Xvt &fromPos, gnsstk::Xvt &toPos) const noexcept override
 
bool transform (double fx, double fy, double fz, const gnsstk::RefFrame &srcFrame, double &tx, double &ty, double &tz) const noexcept override
 
- Public Member Functions inherited from gnsstk::Transformer
const CommonTimegetEpoch () const noexcept
 
const RefFramegetFromFrame () const noexcept
 Return the RefFrame this Transformer will convert from. More...
 
const RefFramegetToFrame () const noexcept
 Return the RefFrame this Transformer will convert to. More...
 
 Transformer ()
 

Additional Inherited Members

- Protected Attributes inherited from gnsstk::Transformer
CommonTime epoch
 When this Transformer was first applicable. More...
 
RefFrame fromFrame
 The reference frame we can transform from. More...
 
RefFrame toFrame
 The reference frame we can transform to. More...
 

Constructor & Destructor Documentation

◆ FakeTransformer() [1/2]

FakeTransformer::FakeTransformer ( gnsstk::RefFrameRlz  fromRlz,
gnsstk::RefFrameRlz  toRlz 
)
inline

Definition at line 61 of file TransformLibrary_T.cpp.

◆ FakeTransformer() [2/2]

FakeTransformer::FakeTransformer ( gnsstk::RefFrameRlz  fromRlz,
gnsstk::RefFrameRlz  toRlz,
const gnsstk::CommonTime start 
)
inline

Definition at line 66 of file TransformLibrary_T.cpp.

Member Function Documentation

◆ transform() [1/5]

bool FakeTransformer::transform ( const gnsstk::Position fromPos,
gnsstk::Position toPos 
) const
inlineoverridevirtualnoexcept

Convert a position from the reference frame in fromPos to that in toPos.

Precondition
RefFrame must be set in both fromPos and toPos.
Coordinates must be set in fromPos.
Postcondition
Coordinates in toPos reference frame realization are set in toPos.
Parameters
[in]fromPosThe Position to be converted.
[in,out]toPosThe Position to store the converted position.
Returns
true on success, false on failure (typically if the Position RefFrame objects don't match the ones in this Transformer).

Implements gnsstk::Transformer.

Definition at line 73 of file TransformLibrary_T.cpp.

◆ transform() [2/5]

bool FakeTransformer::transform ( const gnsstk::Triple fromPos,
const gnsstk::RefFrame srcFrame,
gnsstk::Triple toPos 
) const
inlineoverridevirtualnoexcept

Convert a position in fromPos from the reference frame in srcFrame to that in tgtFrame.

Precondition
Coordinates must be set in fromPos.
Postcondition
Coordinates in toFrame reference frame realization are set in toPos. Velocity and clock offset are unaffected.
Parameters
[in]fromPosThe Vector whose position is to be converted.
[in]srcFrameThe RefFrame of the coordinates in fromPos.
[out]toPosThe Vector to store the converted position.
Returns
true on success, false on failure (typically if srcFrame doesn't match fromFrame).

Implements gnsstk::Transformer.

Definition at line 84 of file TransformLibrary_T.cpp.

◆ transform() [3/5]

bool FakeTransformer::transform ( const gnsstk::Vector< double > &  fromPos,
const gnsstk::RefFrame srcFrame,
gnsstk::Vector< double > &  toPos 
) const
inlineoverridevirtualnoexcept

Convert a position from the reference frame in fromPos to that in toPos.

Precondition
Coordinates must be set in fromPos.
Postcondition
Coordinates in toFrame reference frame realization are set in toPos. Velocity and clock offset are unaffected.
Parameters
[in]fromPosThe Vector whose position is to be converted.
[in]srcFrameThe RefFrame of the coordinates in fromPos.
[out]toPosThe Vector to store the converted position.
Returns
true on success, false on failure (typically if srcFrame doesn't match fromFrame).

Implements gnsstk::Transformer.

Definition at line 79 of file TransformLibrary_T.cpp.

◆ transform() [4/5]

bool FakeTransformer::transform ( const gnsstk::Xvt fromPos,
gnsstk::Xvt toPos 
) const
inlineoverridevirtualnoexcept

Convert a position from the reference frame in fromPos to that in toPos.

Precondition
RefFrame must be set in both fromPos and toPos.
Coordinates must be set in fromPos.
Postcondition
Coordinates in toPos reference frame realization are set in toPos. Velocity and clock offset are unaffected.
Parameters
[in]fromPosThe Xvt whose position is to be converted.
[in,out]toPosThe Xvt to store the converted position.
Returns
true on success, false on failure (typically if the Xvt RefFrame objects don't match the ones in this Transformer).

Implements gnsstk::Transformer.

Definition at line 76 of file TransformLibrary_T.cpp.

◆ transform() [5/5]

bool FakeTransformer::transform ( double  fx,
double  fy,
double  fz,
const gnsstk::RefFrame srcFrame,
double &  tx,
double &  ty,
double &  tz 
) const
inlineoverridevirtualnoexcept

Convert 3 doubles from the reference frame in srcFrame to that in tgtFrame.

Precondition
Coordinates must be set in fromPos.
Postcondition
Coordinates in toFrame reference frame realization are set in toPos. Velocity and clock offset are unaffected.
Parameters
[in]fxECEF x coordinate in meters in srcFrame.
[in]fyECEF y coordinate in meters in srcFrame.
[in]fzECEF z coordinate in meters in srcFrame.
[in]srcFrameThe RefFrame of the coordinates in fromPos.
[out]txECEF x coordinate in meters in srcFrame.
[out]tyECEF y coordinate in meters in srcFrame.
[out]tzECEF z coordinate in meters in srcFrame.
Returns
true on success, false on failure (typically if srcFrame doesn't match fromFrame).

Implements gnsstk::Transformer.

Definition at line 89 of file TransformLibrary_T.cpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:43