File failed to load: https://isis.astrogeology.usgs.gov/3.9.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Developer Reference
Isis::Target Class Reference

This class is used to create and store valid Isis3 targets. More...

#include <Target.h>

Collaboration diagram for Isis::Target:
Collaboration graph

Public Member Functions

 Target (Spice *spice, Pvl &label)
 Constructs a Target object and loads target information. More...
 
 Target ()
 Constructs an empty Target object. More...
 
 ~Target ()
 Destroys the Target. More...
 
void init ()
 Initialize member variables. More...
 
bool isSky () const
 Return if our target is the sky. More...
 
SpiceInt naifBodyCode () const
 This returns the NAIF body code of the target. More...
 
SpiceInt naifPlanetSystemCode () const
 This returns the NAIF planet system body code of the target. More...
 
QString name () const
 Return target name. More...
 
QString systemName () const
 Return planet system name. More...
 
std::vector< Distanceradii () const
 Returns the radii of the body in km. More...
 
void restoreShape ()
 Restores the shape to the original after setShapeEllipsoid has overridden it. More...
 
void setShapeEllipsoid ()
 Set the shape to the ellipsoid and save the original shape. More...
 
void setRadii (std::vector< Distance > radii)
 Sets the radii of the body. More...
 
ShapeModelshape () const
 Return the shape. More...
 
Spicespice () const
 Return the spice object
More...
 
int frameType ()
 
std::vector< AnglepoleRaCoefs ()
 
std::vector< AnglepoleDecCoefs ()
 
std::vector< AnglepmCoefs ()
 
std::vector< double > poleRaNutPrecCoefs ()
 
std::vector< double > poleDecNutPrecCoefs ()
 
std::vector< double > pmNutPrecCoefs ()
 
std::vector< AnglesysNutPrecConstants ()
 
std::vector< AnglesysNutPrecCoefs ()
 

Static Public Member Functions

static SpiceInt lookupNaifBodyCode (QString name)
 This returns the NAIF body code of the target indicated in the labels. More...
 
static PvlGroup radiiGroup (QString target)
 Creates a Pvl Group with keywords TargetName, EquitorialRadius, and PolarRadius. More...
 
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. More...
 

Detailed Description

This class is used to create and store valid Isis3 targets.

Author
2012-03-20 Debbie A. Cook

Constructor & Destructor Documentation

◆ Target() [1/2]

Isis::Target::Target ( Spice spice,
Pvl lab 
)

Constructs a Target object and loads target information.

Parameters
labLabel containing Instrument and Kernels groups.
Author
2012-03-20 Debbie A. Cook

References Isis::PvlObject::findGroup(), Isis::PvlContainer::hasKeyword(), and Isis::toInt().

◆ Target() [2/2]

Isis::Target::Target ( )

Constructs an empty Target object.

Author
2012-03-20 Debbie A. Cook

◆ ~Target()

Isis::Target::~Target ( )

Destroys the Target.

Destroys the Target object.

Member Function Documentation

◆ frameType()

int Isis::Target::frameType ( )

◆ init()

void Isis::Target::init ( )

Initialize member variables.

Author
2012-03-20 Debbie A. Cook

◆ isSky()

bool Isis::Target::isSky ( ) const

Return if our target is the sky.

Referenced by Isis::ShapeModelFactory::create().

◆ lookupNaifBodyCode()

SpiceInt Isis::Target::lookupNaifBodyCode ( QString  name)
static

This returns the NAIF body code of the target indicated in the labels.

Returns
SpiceInt NAIF body code

References _FILEINFO_.

◆ naifBodyCode()

SpiceInt Isis::Target::naifBodyCode ( ) const

This returns the NAIF body code of the target.

Returns
SpiceInt NAIF body code

Referenced by Isis::TargetBody::TargetBody().

◆ naifPlanetSystemCode()

SpiceInt Isis::Target::naifPlanetSystemCode ( ) const

This returns the NAIF planet system body code of the target.

Returns
SpiceInt NAIF system body code

e.g. Enceladus is in the Saturn system

Referenced by Isis::TargetBody::TargetBody().

◆ name()

QString Isis::Target::name ( ) const

Return target name.

Referenced by Isis::TargetBody::TargetBody(), and Isis::Spice::targetName().

◆ pmCoefs()

std::vector< Angle > Isis::Target::pmCoefs ( )

◆ pmNutPrecCoefs()

std::vector< double > Isis::Target::pmNutPrecCoefs ( )

◆ poleDecCoefs()

std::vector< Angle > Isis::Target::poleDecCoefs ( )

◆ poleDecNutPrecCoefs()

std::vector< double > Isis::Target::poleDecNutPrecCoefs ( )

◆ poleRaCoefs()

std::vector< Angle > Isis::Target::poleRaCoefs ( )

◆ poleRaNutPrecCoefs()

std::vector< double > Isis::Target::poleRaNutPrecCoefs ( )

◆ radii()

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::Camera::BasicMapping(), Isis::BundleTargetBody::BundleTargetBody(), and Isis::TargetBody::TargetBody().

◆ radiiGroup() [1/2]

PvlGroup Isis::Target::radiiGroup ( QString  target)
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.

Parameters
targetThe name of the body for which the radii will be retrieved.
Exceptions
IException::Io- "Could not convert target name to NAIF code."
Returns
PvlGroup Group named "Mapping" with keywords TargetName, EquatorialRadius, and PolarRadius.

References _FILEINFO_, and Isis::PvlContainer::findKeyword().

Referenced by Isis::Latitude::add(), Isis::Latitude::Latitude(), and Isis::TProjection::TProjection().

◆ radiiGroup() [2/2]

PvlGroup Isis::Target::radiiGroup ( Pvl cubeLab,
const PvlGroup mapGroup 
)
static

This method returns a Mapping group containing TargetName, EquatorialRadius, and PolarRadius in addition to all of the keywords that are in the given mapGroup.

Parameters
cubeLabPvl labels for the image.
mapGroupA const reference to a PvlGroup that contains mapping parameters for the projection.
Returns
PvlGroup The Mapping Group for the projection including the keywords TargetName, EquatorialRadius, and PolarRadius.

References _FILEINFO_, Isis::PvlContainer::addKeyword(), Isis::PvlObject::findGroup(), Isis::PvlContainer::findKeyword(), Isis::PvlObject::findKeyword(), Isis::PvlObject::findObject(), Isis::PvlContainer::hasKeyword(), Isis::PvlObject::hasKeyword(), Isis::PvlObject::hasObject(), Isis::toDouble(), Isis::toString(), and Isis::IException::what().

◆ restoreShape()

void Isis::Target::restoreShape ( )

Restores the shape to the original after setShapeEllipsoid has overridden it.

Referenced by Isis::Sensor::IgnoreElevationModel().

◆ setRadii()

void Isis::Target::setRadii ( std::vector< Distance radii)

Sets the radii of the body.

Parameters
r[]Radii of the target in kilometers

◆ setShapeEllipsoid()

void Isis::Target::setShapeEllipsoid ( )

Set the shape to the ellipsoid and save the original shape.

Referenced by Isis::Sensor::IgnoreElevationModel().

◆ shape()

◆ spice()

Spice * Isis::Target::spice ( ) const

Return the spice object

◆ sysNutPrecCoefs()

std::vector< Angle > Isis::Target::sysNutPrecCoefs ( )

◆ sysNutPrecConstants()

std::vector< Angle > Isis::Target::sysNutPrecConstants ( )

◆ systemName()

QString Isis::Target::systemName ( ) const

Return planet system name.

Referenced by Isis::TargetBody::TargetBody().


The documentation for this class was generated from the following files:

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 00:19:42