Isis 3 Programmer Reference
|
Reads user Apollos from a data file. More...
#include <Apollo.h>
Public Member Functions | |
Apollo (QString spacecraft, QString instrument) | |
Constructor. More... | |
Apollo (QString filename) | |
Constructor. More... | |
~Apollo () | |
Destroys the Apollo object. More... | |
bool | IsMetric () |
Checks if the instrument is an Apollo Metric camera. More... | |
bool | IsPanoramic () |
Checks if the instrument is an Apollo Panoramic camera. More... | |
bool | IsHasselblad () |
Checks if the instrument is an Apollo Hasselblad camera. More... | |
bool | IsApollo15 () |
Checks if the spacecraft is Apollo 15. More... | |
bool | IsApollo16 () |
Checks if the spacecraft is Apollo 16. More... | |
bool | IsApollo17 () |
Checks if the spacecraft is Apollo 17. More... | |
int | Width () |
Returns the width of the image. More... | |
int | Height () |
Returns the height of the image. More... | |
int | Bands () |
Returns number of bands in the image. More... | |
int | ReseauDimension () |
Returns the reseau dimension of the image. More... | |
double | PixelPitch () |
Returns pixel pitch for the image. More... | |
QString | SpacecraftName () |
Returns the spacecraft name. More... | |
QString | InstrumentId () |
Returns the instrument ID. More... | |
QString | NaifFrameCode () |
Returns the NAIF frame code. More... | |
QString | TargetName () |
Returns the target name which is always the Moon. More... | |
iTime | LaunchDate () |
Returns the launch date of the mission. More... | |
Private Member Functions | |
void | initialize (QString spacecraft, QString instrument) |
Sets variables based on the spacecraft name and instrument. More... | |
Private Attributes | |
int | p_imageWidth |
Image width. More... | |
int | p_imageHeight |
Image height. More... | |
int | p_imageBands |
Number of bands in the image. More... | |
int | p_reseauDimension |
Dimensions of the reseaus. More... | |
double | p_imagePixelPitch |
Pixel pitch. More... | |
QString | p_spacecraftName |
Spacecraft name. More... | |
QString | p_instrumentId |
Instrument ID. More... | |
QString | p_naifFrameCode |
NAIF frame code. More... | |
iTime | p_launchDate |
Mission launch date. More... | |
Reads user Apollos from a data file.
This class is used to
2007-02-07 Jacob Danton - Original version
2017-06-28 Makayla Shepherd - Updated documentation. References #4807.
|
inline |
Constructor.
Calls initialize() to set variables based on the QStrings passed in.
spacecraft | The name of the spacecraft |
instrument | The name of the instrument |
Definition at line 55 of file Apollo.h.
References initialize().
|
inline |
Constructor.
Parses the filename passed in and sets the spacecraft name and instrument. Calls initialize() to set variables based on the spacecraft and instrument.
filename | The image filename that will be parsed to get the spacecraft and instrument |
Definition at line 68 of file Apollo.h.
References _FILEINFO_, initialize(), and Isis::IException::User.
|
inline |
|
inline |
Returns number of bands in the image.
The number of bands is set in initialize() based on
the instrument.
Definition at line 173 of file Apollo.h.
References p_imageBands.
|
inline |
Returns the height of the image.
The image height is set in initialize() based on the instrument.
Definition at line 162 of file Apollo.h.
References p_imageHeight.
|
inlineprivate |
Sets variables based on the spacecraft name and instrument.
spacecraft | Spacecraft name |
instrument | Instrument ID |
IException::Unknown | "Unknown instrument" |
IException::Unknown | "Unknown spacecraft" |
Definition at line 256 of file Apollo.h.
References _FILEINFO_, IsMetric(), IsPanoramic(), p_imageBands, p_imageHeight, p_imagePixelPitch, p_imageWidth, p_instrumentId, p_launchDate, p_naifFrameCode, p_reseauDimension, p_spacecraftName, and Isis::IException::Unknown.
Referenced by Apollo().
|
inline |
Returns the instrument ID.
Definition at line 211 of file Apollo.h.
References p_instrumentId.
|
inline |
Checks if the spacecraft is Apollo 15.
Definition at line 124 of file Apollo.h.
References p_spacecraftName.
|
inline |
Checks if the spacecraft is Apollo 16.
Definition at line 132 of file Apollo.h.
References p_spacecraftName.
|
inline |
Checks if the spacecraft is Apollo 17.
Definition at line 140 of file Apollo.h.
References p_spacecraftName.
|
inline |
Checks if the instrument is an Apollo Hasselblad camera.
Definition at line 116 of file Apollo.h.
References p_instrumentId.
|
inline |
Checks if the instrument is an Apollo Metric camera.
Definition at line 100 of file Apollo.h.
References p_instrumentId.
Referenced by initialize().
|
inline |
Checks if the instrument is an Apollo Panoramic camera.
Definition at line 108 of file Apollo.h.
References p_instrumentId.
Referenced by initialize().
|
inline |
Returns the launch date of the mission.
The launch date is set in initialize() based on the spacecraft and instrument.
Definition at line 241 of file Apollo.h.
References p_launchDate.
|
inline |
Returns the NAIF frame code.
The NAIF frame code is set in initialize() based on the spacecraft and instrument.
Definition at line 222 of file Apollo.h.
References p_naifFrameCode.
|
inline |
Returns pixel pitch for the image.
The pixel patch is set in initialize() based on
the instrument.
Definition at line 195 of file Apollo.h.
References p_imagePixelPitch.
|
inline |
Returns the reseau dimension of the image.
The reseau dimenstion is set in initialize() based on the instrument.
Definition at line 184 of file Apollo.h.
References p_reseauDimension.
|
inline |
Returns the spacecraft name.
Definition at line 203 of file Apollo.h.
References p_spacecraftName.
|
inline |
|
inline |
Returns the width of the image.
The image width is set in initialize() based on the instrument.
Definition at line 151 of file Apollo.h.
References p_imageWidth.
|
private |
Number of bands in the image.
Definition at line 316 of file Apollo.h.
Referenced by Bands(), and initialize().
|
private |
|
private |
|
private |
|
private |
Instrument ID.
Definition at line 320 of file Apollo.h.
Referenced by initialize(), InstrumentId(), IsHasselblad(), IsMetric(), and IsPanoramic().
|
private |
Mission launch date.
Definition at line 322 of file Apollo.h.
Referenced by initialize(), and LaunchDate().
|
private |
NAIF frame code.
Definition at line 321 of file Apollo.h.
Referenced by initialize(), and NaifFrameCode().
|
private |
Dimensions of the reseaus.
Definition at line 317 of file Apollo.h.
Referenced by initialize(), and ReseauDimension().
|
private |
Spacecraft name.
Definition at line 319 of file Apollo.h.
Referenced by initialize(), IsApollo15(), IsApollo16(), IsApollo17(), and SpacecraftName().