Isis 3 Programmer Reference
|
Container class for TargetBody. More...
#include <TargetBody.h>
Public Member Functions | |
TargetBody (Target *target, QObject *parent=0) | |
The first constructor for this class. | |
~TargetBody () | |
The second constructor for this class. | |
bool | operator== (const TargetBody &src) const |
Compares two Target Body objects to see if they are equal. | |
TargetBodyDisplayProperties * | displayProperties () |
Gets TargetBodyDisplayProperties. | |
const TargetBodyDisplayProperties * | displayProperties () const |
TargetBody::displayProperties. | |
QString | id () const |
Get a unique, identifying string associated with this TargetBody object. | |
QString | targetName () |
Returns the value stored at TargetName in the original pvl label. | |
int | frameType () |
Returns the frame type. | |
std::vector< Angle > | poleRaCoefs () |
TargetBody::poleRaCoefs. | |
std::vector< Angle > | poleDecCoefs () |
Returns coefficients of a quadratic polynomial fitting pole dec. | |
std::vector< Angle > | pmCoefs () |
Returns coefficients of a quadratic polynomial fitting pole pm. | |
std::vector< double > | poleRaNutPrecCoefs () |
Returns coefficients of pole right ascension nut/prec terms. | |
std::vector< double > | poleDecNutPrecCoefs () |
TargetBody::poleDecNutPrecCoefs. | |
std::vector< double > | pmNutPrecCoefs () |
Returns coefficients of the prime meridian nut/prec terms. | |
std::vector< Angle > | sysNutPrecConstants () |
Returns constants of planetary system nut/prec periods. | |
std::vector< Angle > | sysNutPrecCoefs () |
Returns Linear terms of planetary system nut/prec periods. | |
SpiceInt | naifBodyCode () const |
This returns the NAIF body code of the target. | |
SpiceInt | naifPlanetSystemCode () const |
This returns the NAIF body code of the target's planet system. | |
QString | naifPlanetSystemName () const |
This returns the body name of the target's planet system. | |
Distance | radiusA () const |
Returns "a" radius. | |
Distance | radiusB () const |
Returns "b" radius. | |
Distance | radiusC () const |
Returns the "c" radius. | |
Distance | meanRadius () const |
Returns the mean radius. | |
Distance | sigmaRadiusA () const |
Returns "a" radius sigma. | |
Distance | sigmaRadiusB () const |
Returns "b" radius sigma. | |
Distance | sigmaRadiusC () const |
Returns the "c" radius sigma. | |
Distance | sigmaMeanRadius () const |
Returns the mean radius sigma. | |
Private Member Functions | |
TargetBody (const TargetBody &other) | |
TargetBody & | operator= (const TargetBody &rhs) |
Private Attributes | |
TargetQsp | m_isisTarget |
QUuid * | m_id |
A unique ID for this TargetBody object (useful for others to reference this object when saving to disk). | |
QString | m_targetName |
The TargetName as it appears in the original cube. | |
SpiceInt * | m_bodyCode |
TODO - RETHINK MEMBER VARIABLES AND METHODS The NaifBodyCode value, if it exists in the cube labels. | |
SpiceInt * | m_systemCode |
The NaifBodyCode system code. | |
QString | m_systemName |
The NaifBodyCode system name. | |
std::vector< Distance > | m_radii |
target radii | |
std::vector< Distance > | m_sigmaRadii |
target radii sigmas | |
TargetBodyDisplayProperties * | m_displayProperties |
The GUI information for how this Target will be displayed. | |
int | m_frametype |
Fill this in when Debbie or Ken tell me what it is returning. | |
std::vector< Angle > | m_raPole |
Coefficients of a quadratic polynomial fitting pole ra. | |
std::vector< Angle > | m_decPole |
Coefficients of a quadratic polynomial fitting pole dec. | |
std::vector< Angle > | m_pm |
Coefficients of a quadratic polynomial fitting pole pm. | |
std::vector< double > | m_raNutPrec |
Coefficients of pole right ascension nut/prec terms. | |
std::vector< double > | m_decNutPrec |
Coefficients of pole decliniation nut/prec terms. | |
std::vector< double > | m_pmNutPrec |
Coefficients of prime meridian nut/prec terms. | |
std::vector< Angle > | m_sysNutPrec0 |
Constants of planetary system nut/prec periods. | |
std::vector< Angle > | m_sysNutPrec1 |
Linear terms of planetary system nut/prec periods. | |
Container class for TargetBody.
This class represents a target body in a project-based GUI interface. It encapsulates ideas about a target such as it's display name, how it should be viewed, where it is on disk, etc.
2015-06-08 Ken Edmundson - Original version.
2015-10-14 Jeffrey Covington - Declared TargetBodyQsp as a Qt metatype for use with QVariant.
2016-06-13 Tyler Wilson - Added new documentation and corrected formatting to be consisten with ISIS3 coding standards. Fixes #3997 and #4018. @hitsory 2018-07-12 Summer Stapleton - Added m_targetName and targetName() in order to collect the TargetName from the original cube label for comparisons related to image imports in ipce. References #5460.
Definition at line 63 of file TargetBody.h.
The first constructor for this class.
target | A traditional: Isis::Target object. |
parent | A pointer to the object instantiating this object. |
Definition at line 22 of file TargetBody.cpp.
References Isis::Distance::Kilometers, m_bodyCode, m_decNutPrec, m_decPole, m_displayProperties, m_frametype, m_id, m_pm, m_pmNutPrec, m_radii, m_raNutPrec, m_raPole, m_sigmaRadii, m_sysNutPrec0, m_sysNutPrec1, m_systemCode, m_systemName, m_targetName, Isis::Target::naifBodyCode(), Isis::Target::naifPlanetSystemCode(), Isis::Target::name(), Isis::Target::radii(), and Isis::Target::systemName().
Isis::TargetBody::~TargetBody | ( | ) |
The second constructor for this class.
bundleTargetBody | A QSharedPointer to a BundleTarget object. |
parent | A pointer to the object instantiating this object. |
The destructor
Definition at line 131 of file TargetBody.cpp.
References m_bodyCode, m_id, and m_systemCode.
TargetBodyDisplayProperties * Isis::TargetBody::displayProperties | ( | ) |
Gets TargetBodyDisplayProperties.
Definition at line 185 of file TargetBody.cpp.
References m_displayProperties.
Referenced by Isis::TargetInfoWidget::errorMsg(), and Isis::TargetInfoWidget::TargetInfoWidget().
const TargetBodyDisplayProperties * Isis::TargetBody::displayProperties | ( | ) | const |
TargetBody::displayProperties.
Definition at line 195 of file TargetBody.cpp.
References m_displayProperties.
int Isis::TargetBody::frameType | ( | ) |
Returns the frame type.
Definition at line 213 of file TargetBody.cpp.
References m_frametype.
Referenced by Isis::TargetInfoWidget::formatPmString(), Isis::TargetInfoWidget::formatPoleDecString(), Isis::TargetInfoWidget::formatPoleRaString(), and Isis::TargetInfoWidget::TargetInfoWidget().
QString Isis::TargetBody::id | ( | ) | const |
Get a unique, identifying string associated with this TargetBody object.
Definition at line 415 of file TargetBody.cpp.
References m_id.
Distance Isis::TargetBody::meanRadius | ( | ) | const |
Returns the mean radius.
Definition at line 387 of file TargetBody.cpp.
References m_radii, and meanRadius().
Referenced by meanRadius(), and Isis::TargetInfoWidget::TargetInfoWidget().
SpiceInt Isis::TargetBody::naifBodyCode | ( | ) | const |
This returns the NAIF body code of the target.
Definition at line 295 of file TargetBody.cpp.
References m_bodyCode.
SpiceInt Isis::TargetBody::naifPlanetSystemCode | ( | ) | const |
This returns the NAIF body code of the target's planet system.
Definition at line 306 of file TargetBody.cpp.
References m_systemCode.
QString Isis::TargetBody::naifPlanetSystemName | ( | ) | const |
This returns the body name of the target's planet system.
Definition at line 317 of file TargetBody.cpp.
References m_systemName.
Referenced by Isis::TargetInfoWidget::formatPmString(), Isis::TargetInfoWidget::formatPoleDecString(), Isis::TargetInfoWidget::formatPoleRaString(), and Isis::TargetInfoWidget::TargetInfoWidget().
bool Isis::TargetBody::operator== | ( | const TargetBody & | src | ) | const |
Compares two Target Body objects to see if they are equal.
src | TargetBody object to compare against |
Definition at line 163 of file TargetBody.cpp.
References m_bodyCode, and m_radii.
std::vector< Angle > Isis::TargetBody::pmCoefs | ( | ) |
Returns coefficients of a quadratic polynomial fitting pole pm.
Definition at line 240 of file TargetBody.cpp.
References m_pm.
Referenced by Isis::TargetInfoWidget::formatPmString().
std::vector< double > Isis::TargetBody::pmNutPrecCoefs | ( | ) |
Returns coefficients of the prime meridian nut/prec terms.
Definition at line 267 of file TargetBody.cpp.
References m_pmNutPrec.
Referenced by Isis::TargetInfoWidget::formatPmString().
std::vector< Angle > Isis::TargetBody::poleDecCoefs | ( | ) |
Returns coefficients of a quadratic polynomial fitting pole dec.
Definition at line 231 of file TargetBody.cpp.
References m_decPole.
Referenced by Isis::TargetInfoWidget::formatPoleDecString().
std::vector< double > Isis::TargetBody::poleDecNutPrecCoefs | ( | ) |
TargetBody::poleDecNutPrecCoefs.
Definition at line 258 of file TargetBody.cpp.
References m_decNutPrec.
Referenced by Isis::TargetInfoWidget::formatPoleDecString().
std::vector< Angle > Isis::TargetBody::poleRaCoefs | ( | ) |
Definition at line 222 of file TargetBody.cpp.
References m_raPole.
Referenced by Isis::TargetInfoWidget::formatPoleRaString().
std::vector< double > Isis::TargetBody::poleRaNutPrecCoefs | ( | ) |
Returns coefficients of pole right ascension nut/prec terms.
Definition at line 249 of file TargetBody.cpp.
References m_raNutPrec.
Referenced by Isis::TargetInfoWidget::formatPoleRaString().
Distance Isis::TargetBody::radiusA | ( | ) | const |
Returns "a" radius.
Definition at line 327 of file TargetBody.cpp.
References m_radii.
Referenced by Isis::TargetInfoWidget::TargetInfoWidget().
Distance Isis::TargetBody::radiusB | ( | ) | const |
Returns "b" radius.
Definition at line 347 of file TargetBody.cpp.
References m_radii.
Referenced by Isis::TargetInfoWidget::TargetInfoWidget().
Distance Isis::TargetBody::radiusC | ( | ) | const |
Returns the "c" radius.
Definition at line 367 of file TargetBody.cpp.
References m_radii.
Referenced by Isis::TargetInfoWidget::TargetInfoWidget().
Distance Isis::TargetBody::sigmaMeanRadius | ( | ) | const |
Returns the mean radius sigma.
Definition at line 401 of file TargetBody.cpp.
References m_sigmaRadii, and sigmaMeanRadius().
Referenced by sigmaMeanRadius().
Distance Isis::TargetBody::sigmaRadiusA | ( | ) | const |
Returns "a" radius sigma.
Definition at line 337 of file TargetBody.cpp.
References m_sigmaRadii.
Distance Isis::TargetBody::sigmaRadiusB | ( | ) | const |
Returns "b" radius sigma.
Definition at line 357 of file TargetBody.cpp.
References m_sigmaRadii.
Distance Isis::TargetBody::sigmaRadiusC | ( | ) | const |
Returns the "c" radius sigma.
Definition at line 377 of file TargetBody.cpp.
References m_sigmaRadii.
std::vector< Angle > Isis::TargetBody::sysNutPrecCoefs | ( | ) |
Returns Linear terms of planetary system nut/prec periods.
Definition at line 284 of file TargetBody.cpp.
References m_sysNutPrec1.
std::vector< Angle > Isis::TargetBody::sysNutPrecConstants | ( | ) |
Returns constants of planetary system nut/prec periods.
Definition at line 276 of file TargetBody.cpp.
References m_sysNutPrec0.
QString Isis::TargetBody::targetName | ( | ) |
Returns the value stored at TargetName in the original pvl label.
Definition at line 204 of file TargetBody.cpp.
References m_targetName.
|
private |
TODO - RETHINK MEMBER VARIABLES AND METHODS The NaifBodyCode value, if it exists in the cube labels.
Otherwise, if the target is sky, it's the SPK code and if not sky then it's calculated by the NaifBodyCode() method.
Definition at line 138 of file TargetBody.h.
Referenced by naifBodyCode(), operator==(), TargetBody(), and ~TargetBody().
|
private |
Coefficients of pole decliniation nut/prec terms.
Definition at line 176 of file TargetBody.h.
Referenced by poleDecNutPrecCoefs(), and TargetBody().
|
private |
Coefficients of a quadratic polynomial fitting pole dec.
Definition at line 169 of file TargetBody.h.
Referenced by poleDecCoefs(), and TargetBody().
|
private |
The GUI information for how this Target will be displayed.
Definition at line 163 of file TargetBody.h.
Referenced by displayProperties(), displayProperties(), and TargetBody().
|
private |
Fill this in when Debbie or Ken tell me what it is returning.
Definition at line 165 of file TargetBody.h.
Referenced by frameType(), and TargetBody().
|
private |
A unique ID for this TargetBody object (useful for others to reference this object when saving to disk).
Definition at line 126 of file TargetBody.h.
Referenced by id(), TargetBody(), and ~TargetBody().
|
private |
Definition at line 120 of file TargetBody.h.
|
private |
Coefficients of a quadratic polynomial fitting pole pm.
Definition at line 170 of file TargetBody.h.
Referenced by pmCoefs(), and TargetBody().
|
private |
Coefficients of prime meridian nut/prec terms.
Definition at line 177 of file TargetBody.h.
Referenced by pmNutPrecCoefs(), and TargetBody().
|
private |
target radii
Definition at line 153 of file TargetBody.h.
Referenced by meanRadius(), operator==(), radiusA(), radiusB(), radiusC(), and TargetBody().
|
private |
Coefficients of pole right ascension nut/prec terms.
Definition at line 175 of file TargetBody.h.
Referenced by poleRaNutPrecCoefs(), and TargetBody().
|
private |
Coefficients of a quadratic polynomial fitting pole ra.
Definition at line 168 of file TargetBody.h.
Referenced by poleRaCoefs(), and TargetBody().
|
private |
target radii sigmas
Definition at line 158 of file TargetBody.h.
Referenced by sigmaMeanRadius(), sigmaRadiusA(), sigmaRadiusB(), sigmaRadiusC(), and TargetBody().
|
private |
Constants of planetary system nut/prec periods.
Definition at line 180 of file TargetBody.h.
Referenced by sysNutPrecConstants(), and TargetBody().
|
private |
Linear terms of planetary system nut/prec periods.
Definition at line 181 of file TargetBody.h.
Referenced by sysNutPrecCoefs(), and TargetBody().
|
private |
The NaifBodyCode system code.
If the target is sky, this is -1.
Definition at line 143 of file TargetBody.h.
Referenced by naifPlanetSystemCode(), TargetBody(), and ~TargetBody().
|
private |
The NaifBodyCode system name.
Definition at line 148 of file TargetBody.h.
Referenced by naifPlanetSystemName(), and TargetBody().
|
private |
The TargetName as it appears in the original cube.
Definition at line 131 of file TargetBody.h.
Referenced by TargetBody(), and targetName().