Isis 3.0 Object Programmers' Reference |
Home |
This class is used to create and store valid Isis3 targets. More...
#include <Target.h>
Public Member Functions | |
Target (Spice *spice, Pvl &label) | |
Constructs a Target object and loads target information. | |
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. | |
QString | name () const |
Return target 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. | |
ShapeModel * | shape () const |
Return the shape. | |
Spice * | spice () const |
Return the spice object. | |
Private Member Functions | |
SpiceInt | lookupNaifBodyCode () const |
This returns the NAIF body code of the target indicated in the labels. | |
Private Attributes | |
SpiceInt * | m_bodyCode |
The NaifBodyCode value, if it exists in the | |
QString * | m_name |
Name of the target. | |
std::vector< Distance > | m_radii |
The radii of the target. | |
ShapeModel * | m_originalShape |
The shape model of the target. | |
ShapeModel * | m_shape |
The shape model of the target. | |
bool | m_sky |
Indicates whether the target of the observation is the sky. | |
Spice * | m_spice |
The parent Spice object. This is needed to get pixel resolution in ShapeModels. | |
Constructs a Target object and loads target information.
lab | Label containing Instrument and Kernels groups. |
Definition at line 49 of file Target.cpp.
References Isis::PvlObject::findGroup(), Isis::PvlContainer::hasKeyword(), and Isis::toInt().
Isis::Target::Target | ( | ) |
Constructs an empty Target object.
Definition at line 99 of file Target.cpp.
Isis::Target::~Target | ( | ) |
void Isis::Target::init | ( | ) |
Initialize member variables.
Definition at line 115 of file Target.cpp.
bool Isis::Target::isSky | ( | ) | const |
Return if our target is the sky.
Definition at line 148 of file Target.cpp.
|
private |
This returns the NAIF body code of the target indicated in the labels.
Definition at line 159 of file Target.cpp.
References _FILEINFO_.
SpiceInt Isis::Target::naifBodyCode | ( | ) | const |
This returns the NAIF body code of the target.
Definition at line 179 of file Target.cpp.
QString Isis::Target::name | ( | ) | const |
Return target name.
Definition at line 185 of file Target.cpp.
Referenced by Isis::FeatureNomenclatureTool::findMissingNomenclature(), and Isis::Spice::targetName().
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.
Definition at line 195 of file Target.cpp.
Referenced by Isis::Camera::BasicMapping().
void Isis::Target::restoreShape | ( | ) |
Restores the shape to the original after setShapeEllipsoid has overridden it.
Definition at line 203 of file Target.cpp.
Referenced by Isis::Sensor::IgnoreElevationModel().
void Isis::Target::setRadii | ( | std::vector< Distance > | radii | ) |
Sets the radii of the body.
r[] | Radii of the target in kilometers |
Definition at line 233 of file Target.cpp.
void Isis::Target::setShapeEllipsoid | ( | ) |
Set the shape to the ellipsoid and save the original shape.
Definition at line 221 of file Target.cpp.
Referenced by Isis::Sensor::IgnoreElevationModel().
ShapeModel * Isis::Target::shape | ( | ) | const |
Return the shape.
Definition at line 243 of file Target.cpp.
Referenced by Isis::Sensor::Coordinate(), Isis::Sensor::EmissionAngle(), Isis::Sensor::GetLatitude(), Isis::Camera::GetLocalNormal(), Isis::Sensor::GetLongitude(), Isis::Sensor::GetSurfacePoint(), Isis::UniversalGroundMap::GroundRange(), Isis::Sensor::HasSurfaceIntersection(), Isis::Sensor::IncidenceAngle(), Isis::Sensor::LocalRadius(), Isis::Sensor::PhaseAngle(), Isis::Camera::RawFocalPlanetoImage(), Isis::VimsGroundMap::SetGround(), Isis::RadarGroundMap::SetGround(), Isis::Sensor::SetGround(), Isis::Camera::SetGround(), Isis::Sensor::SetGroundLocal(), Isis::Camera::SetImage(), Isis::Sensor::SetLookDirection(), Isis::Sensor::setTime(), Isis::Sensor::SetUniversalGround(), Isis::Camera::SetUniversalGround(), Isis::Sensor::SlantDistance(), Isis::Sensor::SolarDistance(), Isis::Sensor::UniversalLatitude(), Isis::Sensor::UniversalLongitude(), Isis::TrackTool::updateLabels(), and Isis::AdvancedTrackTool::updateRow().
Spice * Isis::Target::spice | ( | ) | const |
Return the spice object.
Definition at line 251 of file Target.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |