TransformLibrary.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 #ifndef GNSSTK_TRANSFORM_LIBRARY
40 #define GNSSTK_TRANSFORM_LIBRARY
41 
42 #include "Transformer.hpp"
43 
44 namespace gnsstk
45 {
47 
48 
75  {
76  public:
79 
83  void addTransform(const TransformerPtr& ptr);
84 
95  bool getTransform(const RefFrame& fromFrame, const RefFrame& toFrame,
96  TransformerPtr& ptr,
98  const;
99 
115  bool transform(const Position& fromPos, Position& toPos,
117  const noexcept;
118 
134  bool transform(const Xvt& fromPos, Xvt& toPos,
136  const noexcept;
137 
153  bool transform(const Vector<double>& fromPos,
154  const RefFrame& srcFrame,
155  Vector<double>& toPos,
156  const RefFrame& tgtFrame,
158  const noexcept;
159 
175  bool transform(const Triple& fromPos,
176  const RefFrame& srcFrame,
177  Triple& toPos,
178  const RefFrame& tgtFrame,
180  const noexcept;
181 
201  bool transform(double fx, double fy, double fz,
202  const RefFrame& srcFrame,
203  double& tx, double& ty, double& tz,
204  const RefFrame& tgtFrame,
206  const noexcept;
207 
209  }; // class TransformLibrary
210 
212 
213 } // namespace gnsstk
214 
215 #endif // GNSSTK_TRANSFORM_LIBRARY
gnsstk::TransformLibrary::transform
bool transform(const Position &fromPos, Position &toPos, const CommonTime &when=gnsstk::CommonTime::END_OF_TIME) const noexcept
Definition: TransformLibrary.cpp:169
gnsstk::TransformLibrary::addTransform
void addTransform(const TransformerPtr &ptr)
Definition: TransformLibrary.cpp:133
Transformer.hpp
gnsstk::TransformLibrary::TransformLibrary
TransformLibrary()
Fill the library with a default set of transformation parameters.
Definition: TransformLibrary.cpp:47
gnsstk::RefFrame
Definition: RefFrame.hpp:53
gnsstk::Triple
Definition: Triple.hpp:68
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::CommonTime::END_OF_TIME
static const GNSSTK_EXPORT CommonTime END_OF_TIME
latest representable CommonTime
Definition: CommonTime.hpp:104
gnsstk::TransformLibrary::transformers
TransformerMap transformers
More than meets the eye.
Definition: TransformLibrary.hpp:208
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::Xvt
Definition: Xvt.hpp:60
gnsstk::Vector< double >
gnsstk::Position
Definition: Position.hpp:136
gnsstk::TransformerMap
std::map< RefFramePair, TransformerHist > TransformerMap
Container of transformers for management.
Definition: Transformer.hpp:167
gnsstk::TransformerPtr
std::shared_ptr< Transformer > TransformerPtr
Shared pointer to Transformer object.
Definition: Transformer.hpp:163
gnsstk::TransformLibrary
Definition: TransformLibrary.hpp:74
gnsstk::TransformLibrary::getTransform
bool getTransform(const RefFrame &fromFrame, const RefFrame &toFrame, TransformerPtr &ptr, const CommonTime &when=gnsstk::CommonTime::END_OF_TIME) const
Definition: TransformLibrary.cpp:145


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