This class provides storage and access to datum transformations. Recommended use is to create one instance of this class and either use the transformation data that is loaded by default and/or add additional transformation data. Then call the appropriate transform method for each coordinate transformation.
Call the clear() method on transformers to empty the default transformation data if desired.
Typical usage would be something like:
Definition at line 74 of file TransformLibrary.hpp.
#include <TransformLibrary.hpp>
Public Attributes | |
TransformerMap | transformers |
More than meets the eye. More... | |
gnsstk::TransformLibrary::TransformLibrary | ( | ) |
Fill the library with a default set of transformation parameters.
Definition at line 47 of file TransformLibrary.cpp.
void gnsstk::TransformLibrary::addTransform | ( | const TransformerPtr & | ptr | ) |
Add a new Transformer to the library.
[in] | ptr | The Transformer to be added. |
Definition at line 133 of file TransformLibrary.cpp.
bool gnsstk::TransformLibrary::getTransform | ( | const RefFrame & | fromFrame, |
const RefFrame & | toFrame, | ||
TransformerPtr & | ptr, | ||
const CommonTime & | when = gnsstk::CommonTime::END_OF_TIME |
||
) | const |
Get the Transformer in transformers that matches the requested parameters.
[in] | fromFrame | The RefFrame being converted from. |
[in] | toFrame | The RefFrame being converted to. |
[out] | ptr | The Transformer that matches, if true is returned. |
[in] | when | The time of interest for the transformation. This does not affect the RefFrame, it is only used when multiple transformation parameter sets are available over a span of time. Default = most recent. |
Definition at line 145 of file TransformLibrary.cpp.
|
noexcept |
Convert a position from the reference frame in fromPos to that in toPos.
[in] | fromPos | The Position to be converted. |
[in,out] | toPos | The Position to store the converted position. |
[in] | when | The time of interest for the transformation. This does not affect the RefFrame, it is only used when multiple transformation parameter sets are available over a span of time. Default = most recent. |
Definition at line 169 of file TransformLibrary.cpp.
|
noexcept |
Convert a position in fromPos from the reference frame in srcFrame to that in tgtFrame.
[in] | fromPos | The Vector whose position is to be converted. |
[in] | srcFrame | The RefFrame of the coordinates in fromPos. |
[out] | toPos | The Vector to store the converted position. |
[in] | tgtFrame | The RefFrame to convert to. |
[in] | when | The time of interest for the transformation. This does not affect the RefFrame, it is only used when multiple transformation parameter sets are available over a span of time. Default = most recent. |
Definition at line 213 of file TransformLibrary.cpp.
|
noexcept |
Convert a position in fromPos from the reference frame in srcFrame to that in tgtFrame.
[in] | fromPos | The Vector whose position is to be converted. |
[in] | srcFrame | The RefFrame of the coordinates in fromPos. |
[out] | toPos | The Vector to store the converted position. |
[in] | tgtFrame | The RefFrame to convert to. |
[in] | when | The time of interest for the transformation. This does not affect the RefFrame, it is only used when multiple transformation parameter sets are available over a span of time. Default = most recent. |
Definition at line 196 of file TransformLibrary.cpp.
|
noexcept |
Convert a position from the reference frame in fromPos to that in toPos.
[in] | fromPos | The Xvt whose position is to be converted. |
[in,out] | toPos | The Xvt to store the converted position. |
[in] | when | The time of interest for the transformation. This does not affect the RefFrame, it is only used when multiple transformation parameter sets are available over a span of time. Default = most recent. |
Definition at line 183 of file TransformLibrary.cpp.
|
noexcept |
Convert 3 doubles from the reference frame in srcFrame to that in tgtFrame.
[in] | fx | ECEF x coordinate in meters in srcFrame. |
[in] | fy | ECEF y coordinate in meters in srcFrame. |
[in] | fz | ECEF z coordinate in meters in srcFrame. |
[in] | srcFrame | The RefFrame of the coordinates in fromPos. |
[out] | tx | ECEF x coordinate in meters in srcFrame. |
[out] | ty | ECEF y coordinate in meters in srcFrame. |
[out] | tz | ECEF z coordinate in meters in srcFrame. |
[in] | tgtFrame | The RefFrame to convert to. |
[in] | when | The time of interest for the transformation. This does not affect the RefFrame, it is only used when multiple transformation parameter sets are available over a span of time. Default = most recent. |
Definition at line 230 of file TransformLibrary.cpp.
TransformerMap gnsstk::TransformLibrary::transformers |
More than meets the eye.
Definition at line 208 of file TransformLibrary.hpp.