Isis 3 Programmer Reference
LightTimeCorrectionState.h
1 #ifndef LightTimeCorrectionState_h
2 #define LightTimeCorrectionState_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include <QString>
11 
12 namespace Isis {
13 
14  class Spice;
15 
49  public:
50 
52  LightTimeCorrectionState(int ikCode, Spice *spice);
53 
54  // destructor
55  virtual ~LightTimeCorrectionState() { }
56 
57  bool operator==(const LightTimeCorrectionState &state) const;
58 
59  bool checkAberrationCorrection(int ikCode, Spice *spice);
60  void setAberrationCorrection(const QString &correction);
61  QString getAberrationCorrection() const;
63  bool isLightTimeCorrected() const;
64 
65  bool checkObserverTargetSwap(int ikCode, Spice *spice);
66  bool isObserverTargetSwapped() const;
67  void setSwapObserverTarget();
69 
70  bool checkLightTimeToSurfaceCorrect(int ikCode, Spice *spice);
71  bool isLightTimeToSurfaceCorrected() const;
74 
75  private:
76  QString m_abcorr;
77  bool m_swapObserverTarget;
78  bool m_sc_to_surf_ltcorr;
79 
80  void setDefaultState();
81  };
82 } // Isis namespace
83 #endif
Isis::LightTimeCorrectionState::setDefaultState
void setDefaultState()
Set default conditions for light time correction state.
Definition: LightTimeCorrectionState.cpp:349
Isis::LightTimeCorrectionState::isLightTimeCorrected
bool isLightTimeCorrected() const
Is light time to target corrected?
Definition: LightTimeCorrectionState.cpp:230
Isis::LightTimeCorrectionState::checkSpkKernelsForAberrationCorrection
bool checkSpkKernelsForAberrationCorrection()
Check for light time/stellar aberration tag in SPK comments.
Definition: LightTimeCorrectionState.cpp:173
Isis::LightTimeCorrectionState::setSwapObserverTarget
void setSwapObserverTarget()
Turns on swapping of observer/target
Definition: LightTimeCorrectionState.cpp:277
Isis::LightTimeCorrectionState::checkLightTimeToSurfaceCorrect
bool checkLightTimeToSurfaceCorrect(int ikCode, Spice *spice)
Determines state of surface to s/c light time correction.
Definition: LightTimeCorrectionState.cpp:306
Isis::LightTimeCorrectionState::LightTimeCorrectionState
LightTimeCorrectionState()
Default constructor sets default state of light time corrections.
Definition: LightTimeCorrectionState.cpp:42
Isis::Spice
Obtain SPICE information for a spacecraft.
Definition: Spice.h:283
Isis::LightTimeCorrectionState::setAberrationCorrection
void setAberrationCorrection(const QString &correction)
Sets the aberration correction directly.
Definition: LightTimeCorrectionState.cpp:134
Isis::LightTimeCorrectionState::checkAberrationCorrection
bool checkAberrationCorrection(int ikCode, Spice *spice)
Apply instrument (team) specific light time/stellar aborration option.
Definition: LightTimeCorrectionState.cpp:107
Isis::LightTimeCorrectionState::isObserverTargetSwapped
bool isObserverTargetSwapped() const
Returns state swap observer/target
Definition: LightTimeCorrectionState.cpp:272
Isis::LightTimeCorrectionState::checkObserverTargetSwap
bool checkObserverTargetSwap(int ikCode, Spice *spice)
Check status of target/observer swap specification.
Definition: LightTimeCorrectionState.cpp:254
Isis::LightTimeCorrectionState::setNoSwapObserverTarget
void setNoSwapObserverTarget()
Turns off swapping of observer/target (default)
Definition: LightTimeCorrectionState.cpp:282
Isis::LightTimeCorrectionState::setNoCorrectLightTimeToSurface
void setNoCorrectLightTimeToSurface()
Disables state of light time from surface to center body for correction.
Definition: LightTimeCorrectionState.cpp:334
Isis::LightTimeCorrectionState::isLightTimeToSurfaceCorrected
bool isLightTimeToSurfaceCorrected() const
Returns state of light time from surface to center body correction.
Definition: LightTimeCorrectionState.cpp:323
Isis::LightTimeCorrectionState::operator==
bool operator==(const LightTimeCorrectionState &state) const
Compare two instances of the LightTimeCorrectionState objects.
Definition: LightTimeCorrectionState.cpp:78
Isis::LightTimeCorrectionState::setCorrectLightTimeToSurface
void setCorrectLightTimeToSurface()
Sets state of light time from surface to center body for orrection.
Definition: LightTimeCorrectionState.cpp:328
Isis::LightTimeCorrectionState
Provides interface to user configurable Light Time correction feature.
Definition: LightTimeCorrectionState.h:48
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::LightTimeCorrectionState::getAberrationCorrection
QString getAberrationCorrection() const
Returns the value of the current stellar aberration state.
Definition: LightTimeCorrectionState.cpp:147