|
GammaLib 2.2.0.dev
|
COSI pointing class. More...
#include <GCOSPointing.hpp>
Public Member Functions | |
| GCOSPointing (void) | |
| Void constructor. | |
| GCOSPointing (const GCOSPointing &pointing) | |
| Copy constructor. | |
| virtual | ~GCOSPointing (void) |
| Destructor. | |
| GCOSPointing & | operator= (const GCOSPointing &pointing) |
| Assignment operator. | |
| void | clear (void) |
| Clear pointing. | |
| GCOSPointing * | clone (void) const |
| Clone COSI pointing. | |
| std::string | classname (void) const |
| Return class name. | |
| const GTime & | time (void) const |
| Return time stamp. | |
| const GSkyDir & | sc_x (void) const |
| Return space craft X-axis. | |
| const GSkyDir & | sc_z (void) const |
| Return space craft Z-axis. | |
| const double & | altitude (void) const |
| Return space craft altitude in km. | |
| const GSkyDir & | earth_zenith (void) const |
| Return direction of Earth's zenith at space craft location. | |
| const GSkyDir & | earth_nadir (void) const |
| Return direction of Earth's nadir at space craft location. | |
| const double & | livetime (void) const |
| Return livetime. | |
| void | time (const GTime &time) |
| Set time stamp. | |
| void | sc_x (const GSkyDir &sc_x) |
| Set space craft X-axis. | |
| void | sc_z (const GSkyDir &sc_z) |
| Set space craft Z-axis. | |
| void | altitude (const double &altitude) |
| Set space craft altitude (km) | |
| void | earth_zenith (const GSkyDir &earth_zenith) |
| Set direction Earth's zenith at space craft location. | |
| void | earth_nadir (const GSkyDir &earth_nadir) |
| Set direction Earth's nadir at space craft location. | |
| void | livetime (const double &livetime) |
| Set livetime. | |
| std::string | print (const GChatter &chatter=NORMAL) const |
| Print pointing information. | |
Public Member Functions inherited from GBase | |
| virtual | ~GBase (void) |
| Destructor. | |
Protected Member Functions | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GCOSPointing &pointing) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Attributes | |
| GTime | m_time |
| Time stamp in UNIX seconds. | |
| GSkyDir | m_sc_x |
| Space craft x-axis. | |
| GSkyDir | m_sc_z |
| Space craft z-axis. | |
| double | m_altitude |
| Altitude above from Earth's ellipsoid (km) | |
| GSkyDir | m_earth_zenith |
| Direction of Earth's zenith at SC location. | |
| GSkyDir | m_earth_nadir |
| Direction of Earth's nadir at SC location. | |
| double | m_livetime |
| Lifetime (sec) | |
COSI pointing class.
The COSI pointing class provides spacecraft attitude information for a given time tag.
Definition at line 49 of file GCOSPointing.hpp.
| GCOSPointing::GCOSPointing | ( | void | ) |
Void constructor.
Definition at line 52 of file GCOSPointing.cpp.
References init_members().
Referenced by clone().
| GCOSPointing::GCOSPointing | ( | const GCOSPointing & | pointing | ) |
Copy constructor.
| [in] | pointing | COSI pointing. |
Definition at line 67 of file GCOSPointing.cpp.
References copy_members(), and init_members().
|
virtual |
|
inline |
Set space craft altitude (km)
| [in] | altitude | Space craft altitude (km). |
Definition at line 238 of file GCOSPointing.hpp.
References altitude(), and m_altitude.
|
inline |
Return space craft altitude in km.
Definition at line 151 of file GCOSPointing.hpp.
References m_altitude.
Referenced by altitude(), GCOSSpaceCraft::livetime(), GCOSSpaceCraft::livetime(), and GCOSSpaceCraft::load_ori().
|
inlinevirtual |
Return class name.
Implements GBase.
Definition at line 103 of file GCOSPointing.hpp.
|
virtual |
Clear pointing.
Implements GBase.
Definition at line 135 of file GCOSPointing.cpp.
References free_members(), and init_members().
|
virtual |
Clone COSI pointing.
Implements GBase.
Definition at line 153 of file GCOSPointing.cpp.
References GCOSPointing().
|
protected |
Copy class members.
| [in] | pointing | COSI pointing. |
Definition at line 225 of file GCOSPointing.cpp.
References m_altitude, m_earth_nadir, m_earth_zenith, m_livetime, m_sc_x, m_sc_z, and m_time.
Referenced by GCOSPointing(), and operator=().
|
inline |
Set direction Earth's nadir at space craft location.
| [in] | earth_nadir | Earth's nadir direction. |
Definition at line 264 of file GCOSPointing.hpp.
References earth_nadir(), and m_earth_nadir.
|
inline |
Return direction of Earth's nadir at space craft location.
Definition at line 175 of file GCOSPointing.hpp.
References m_earth_nadir.
Referenced by earth_nadir(), GCOSSpaceCraft::livetime(), GCOSSpaceCraft::livetime(), and GCOSSpaceCraft::load_ori().
|
inline |
Set direction Earth's zenith at space craft location.
| [in] | earth_zenith | Earth's zenith direction. |
Definition at line 251 of file GCOSPointing.hpp.
References earth_zenith(), and m_earth_zenith.
|
inline |
Return direction of Earth's zenith at space craft location.
Definition at line 163 of file GCOSPointing.hpp.
References m_earth_zenith.
Referenced by earth_zenith(), and GCOSSpaceCraft::load_ori().
|
protected |
Delete class members.
Definition at line 244 of file GCOSPointing.cpp.
Referenced by clear(), operator=(), and ~GCOSPointing().
|
protected |
Initialise class members.
Definition at line 204 of file GCOSPointing.cpp.
References GSkyDir::clear(), GTime::clear(), m_altitude, m_earth_nadir, m_earth_zenith, m_livetime, m_sc_x, m_sc_z, and m_time.
Referenced by clear(), GCOSPointing(), GCOSPointing(), and operator=().
|
inline |
Set livetime.
| [in] | livetime | Livetime (sec). |
Definition at line 277 of file GCOSPointing.hpp.
References livetime(), and m_livetime.
|
inline |
Return livetime.
Definition at line 187 of file GCOSPointing.hpp.
References m_livetime.
Referenced by livetime(), GCOSSpaceCraft::livetime(), GCOSSpaceCraft::livetime(), and GCOSSpaceCraft::load_ori().
| GCOSPointing & GCOSPointing::operator= | ( | const GCOSPointing & | pointing | ) |
Assignment operator.
| [in] | pointing | COSI pointing. |
Definition at line 105 of file GCOSPointing.cpp.
References copy_members(), free_members(), and init_members().
Print pointing information.
| [in] | chatter | Chattiness. |
Implements GBase.
Definition at line 165 of file GCOSPointing.cpp.
References m_altitude, m_earth_zenith, m_sc_x, m_sc_z, m_time, gammalib::parformat(), GSkyDir::print(), GTime::print(), gammalib::reduce(), SILENT, and gammalib::str().
|
inline |
Set space craft X-axis.
| [in] | sc_x | Space craft X-axis. |
Definition at line 212 of file GCOSPointing.hpp.
|
inline |
Return space craft X-axis.
Definition at line 127 of file GCOSPointing.hpp.
References m_sc_x.
Referenced by GCOSSpaceCraft::load_ori(), and sc_x().
|
inline |
Set space craft Z-axis.
| [in] | sc_z | Space craft Z-axis. |
Definition at line 225 of file GCOSPointing.hpp.
|
inline |
Return space craft Z-axis.
Definition at line 139 of file GCOSPointing.hpp.
References m_sc_z.
Referenced by GCOSSpaceCraft::load_ori(), and sc_z().
|
inline |
|
inline |
Return time stamp.
Definition at line 115 of file GCOSPointing.hpp.
References m_time.
Referenced by GCOSSpaceCraft::load_ori(), and time().
|
protected |
Altitude above from Earth's ellipsoid (km)
Definition at line 90 of file GCOSPointing.hpp.
Referenced by altitude(), altitude(), copy_members(), init_members(), and print().
|
protected |
Direction of Earth's nadir at SC location.
Definition at line 92 of file GCOSPointing.hpp.
Referenced by copy_members(), earth_nadir(), earth_nadir(), and init_members().
|
protected |
Direction of Earth's zenith at SC location.
Definition at line 91 of file GCOSPointing.hpp.
Referenced by copy_members(), earth_zenith(), earth_zenith(), init_members(), and print().
|
protected |
Lifetime (sec)
Definition at line 93 of file GCOSPointing.hpp.
Referenced by copy_members(), init_members(), livetime(), and livetime().
|
protected |
Space craft x-axis.
Definition at line 88 of file GCOSPointing.hpp.
Referenced by copy_members(), init_members(), print(), sc_x(), and sc_x().
|
protected |
Space craft z-axis.
Definition at line 89 of file GCOSPointing.hpp.
Referenced by copy_members(), init_members(), print(), sc_z(), and sc_z().
|
protected |
Time stamp in UNIX seconds.
Definition at line 87 of file GCOSPointing.hpp.
Referenced by copy_members(), init_members(), print(), time(), and time().