Isis Developer Reference
|
This class is used to create and store valid Isis targets. More...
#include <Target.h>
Public Member Functions | |
Target (Spice *spice, Pvl &label) | |
Constructs a Target object and loads target information. | |
Target (Pvl &label) | |
Construct a Target without SPICE data. | |
Target () | |
Constructs an empty Target object. | |
~Target () | |
Destroys the Target. | |
void | init () |
Initialize member variables. | |
bool | isSky () const |
Return if our target is the sky. | |
SpiceInt | naifBodyCode () const |
This returns the NAIF body code of the target. | |
SpiceInt | naifPlanetSystemCode () const |
This returns the NAIF planet system body code of the target. | |
QString | name () const |
Return target name. | |
QString | systemName () const |
Return planet system name. | |
std::vector< Distance > | radii () const |
Returns the radii of the body in km. | |
void | restoreShape () |
Restores the shape to the original after setShapeEllipsoid has overridden it. | |
void | setShapeEllipsoid () |
Set the shape to the ellipsoid and save the original shape. | |
void | setRadii (std::vector< Distance > radii) |
Sets the radii of the body. | |
void | setName (QString name) |
Set the name for the Target. | |
void | setSpice (Spice *spice) |
Set the Spice pointer for the Target. | |
ShapeModel * | shape () const |
Return the shape. | |
Spice * | spice () const |
Return the spice object. | |
int | frameType () |
std::vector< Angle > | poleRaCoefs () |
std::vector< Angle > | poleDecCoefs () |
std::vector< Angle > | pmCoefs () |
std::vector< double > | poleRaNutPrecCoefs () |
std::vector< double > | poleDecNutPrecCoefs () |
std::vector< double > | pmNutPrecCoefs () |
std::vector< Angle > | sysNutPrecConstants () |
std::vector< Angle > | sysNutPrecCoefs () |
Static Public Member Functions | |
static SpiceInt | lookupNaifBodyCode (QString name) |
This returns the NAIF body code of the target indicated in the labels. | |
static PvlGroup | radiiGroup (QString target) |
Creates a Pvl Group with keywords TargetName, EquitorialRadius, and PolarRadius. | |
static PvlGroup | radiiGroup (Pvl &cubeLab, const PvlGroup &mapGroup) |
This method returns a Mapping group containing TargetName, EquatorialRadius, and PolarRadius in addition to all of the keywords that are in the given mapGroup. | |
This class is used to create and store valid Isis targets.
Constructs a Target object and loads target information.
lab | Label containing Instrument and Kernels groups. |
References Isis::NaifStatus::CheckErrors(), Isis::ShapeModelFactory::create(), Isis::PvlContainer::hasKeyword(), init(), lookupNaifBodyCode(), Isis::Distance::Meters, name(), spice(), Isis::toInt(), and Isis::PvlObject::Traverse.
Isis::Target::Target | ( | Pvl & | label | ) |
Construct a Target without SPICE data.
The label should contain an Instrument group with a TargetName and a Kernels group with a ShapeModel.
label | Label containing information about the Target. |
References Isis::ShapeModelFactory::create(), Isis::PvlObject::findGroup(), Isis::PvlContainer::hasKeyword(), init(), Isis::Distance::Meters, name(), setName(), Isis::toInt(), and Isis::PvlObject::Traverse.
Isis::Target::~Target | ( | ) |
int Isis::Target::frameType | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::TargetBody::TargetBody().
void Isis::Target::init | ( | ) |
bool Isis::Target::isSky | ( | ) | const |
Return if our target is the sky.
Referenced by Isis::Spice::computeSolarLongitude(), and Isis::ShapeModelFactory::create().
|
static |
This returns the NAIF body code of the target indicated in the labels.
References _FILEINFO_, Isis::NaifStatus::CheckErrors(), Isis::IException::Io, and name().
Referenced by radiiGroup(), radiiGroup(), and Target().
SpiceInt Isis::Target::naifBodyCode | ( | ) | const |
This returns the NAIF body code of the target.
Referenced by Isis::Spice::naifBodyCode(), and Isis::TargetBody::TargetBody().
SpiceInt Isis::Target::naifPlanetSystemCode | ( | ) | const |
This returns the NAIF planet system body code of the target.
e.g. Enceladus is in the Saturn system
Referenced by Isis::TargetBody::TargetBody().
QString Isis::Target::name | ( | ) | const |
Return target name.
Referenced by lookupNaifBodyCode(), setName(), Target(), Target(), Isis::TargetBody::TargetBody(), and Isis::Spice::targetName().
std::vector< Angle > Isis::Target::pmCoefs | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::BundleTargetBody::BundleTargetBody(), and Isis::TargetBody::TargetBody().
std::vector< double > Isis::Target::pmNutPrecCoefs | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::TargetBody::TargetBody().
std::vector< Angle > Isis::Target::poleDecCoefs | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::BundleTargetBody::BundleTargetBody(), and Isis::TargetBody::TargetBody().
std::vector< double > Isis::Target::poleDecNutPrecCoefs | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::TargetBody::TargetBody().
std::vector< Angle > Isis::Target::poleRaCoefs | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::BundleTargetBody::BundleTargetBody(), and Isis::TargetBody::TargetBody().
std::vector< double > Isis::Target::poleRaNutPrecCoefs | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::TargetBody::TargetBody().
std::vector< Distance > Isis::Target::radii | ( | ) | const |
Returns the radii of the body in km.
The radii are obtained from the appropriate SPICE kernel for the body specified by TargetName in the Instrument group of the labels.
Referenced by Isis::BundleTargetBody::BundleTargetBody(), Isis::Spice::radii(), radiiGroup(), setRadii(), Isis::TargetBody::TargetBody(), and Isis::ShapeModel::targetRadii().
This method returns a Mapping group containing TargetName, EquatorialRadius, and PolarRadius in addition to all of the keywords that are in the given mapGroup.
cubeLab | Pvl labels for the image. |
mapGroup | A const reference to a PvlGroup that contains mapping parameters for the projection. |
References _FILEINFO_, Isis::PvlObject::findObject(), lookupNaifBodyCode(), radii(), radiiGroup(), Isis::PvlContainer::Replace, Isis::toDouble(), Isis::toString(), Isis::PvlObject::Traverse, and Isis::IException::Unknown.
|
static |
Creates a Pvl Group with keywords TargetName, EquitorialRadius, and PolarRadius.
The values for the radii will be retrieved from the most recent Target Attitude and Shape Naif kernel available in the Isis data area.
target | The name of the body for which the radii will be retrieved. |
IException::Io | - "Could not convert target name to NAIF code." |
References _FILEINFO_, Isis::IException::Io, lookupNaifBodyCode(), radiiGroup(), and Isis::IException::Unknown.
Referenced by Isis::Latitude::add(), Isis::Latitude::Latitude(), Isis::Latitude::Latitude(), radiiGroup(), radiiGroup(), and Isis::TProjection::TProjection().
void Isis::Target::restoreShape | ( | ) |
Restores the shape to the original after setShapeEllipsoid has overridden it.
References Isis::ShapeModel::name().
void Isis::Target::setName | ( | QString | name | ) |
void Isis::Target::setRadii | ( | std::vector< Distance > | radii | ) |
void Isis::Target::setShapeEllipsoid | ( | ) |
Set the shape to the ellipsoid and save the original shape.
void Isis::Target::setSpice | ( | Spice * | spice | ) |
ShapeModel * Isis::Target::shape | ( | ) | const |
Return the shape.
Spice * Isis::Target::spice | ( | ) | const |
Return the spice object.
Referenced by frameType(), pmCoefs(), pmNutPrecCoefs(), poleDecCoefs(), poleDecNutPrecCoefs(), poleRaCoefs(), poleRaNutPrecCoefs(), Isis::ShapeModel::resolution(), setSpice(), sysNutPrecCoefs(), sysNutPrecConstants(), and Target().
std::vector< Angle > Isis::Target::sysNutPrecCoefs | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::TargetBody::TargetBody().
std::vector< Angle > Isis::Target::sysNutPrecConstants | ( | ) |
References Isis::Spice::bodyRotation(), and spice().
Referenced by Isis::TargetBody::TargetBody().
QString Isis::Target::systemName | ( | ) | const |
Return planet system name.
Referenced by Isis::TargetBody::TargetBody().