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
|
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 40 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 53 of file Apollo.h.
References 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 158 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 147 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 241 of file Apollo.h.
References 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 196 of file Apollo.h.
References p_instrumentId.
|
inline |
Checks if the spacecraft is Apollo 15.
Definition at line 109 of file Apollo.h.
References p_spacecraftName.
|
inline |
Checks if the spacecraft is Apollo 16.
Definition at line 117 of file Apollo.h.
References p_spacecraftName.
|
inline |
Checks if the spacecraft is Apollo 17.
Definition at line 125 of file Apollo.h.
References p_spacecraftName.
|
inline |
Checks if the instrument is an Apollo Hasselblad camera.
Definition at line 101 of file Apollo.h.
References p_instrumentId.
|
inline |
Checks if the instrument is an Apollo Metric camera.
Definition at line 85 of file Apollo.h.
References p_instrumentId.
Referenced by initialize().
|
inline |
Checks if the instrument is an Apollo Panoramic camera.
Definition at line 93 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 226 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 207 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 180 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 169 of file Apollo.h.
References p_reseauDimension.
|
inline |
Returns the spacecraft name.
Definition at line 188 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 136 of file Apollo.h.
References p_imageWidth.
|
private |
Number of bands in the image.
Definition at line 301 of file Apollo.h.
Referenced by Bands(), and initialize().
|
private |
|
private |
|
private |
|
private |
Instrument ID.
Definition at line 305 of file Apollo.h.
Referenced by initialize(), InstrumentId(), IsHasselblad(), IsMetric(), and IsPanoramic().
|
private |
Mission launch date.
Definition at line 307 of file Apollo.h.
Referenced by initialize(), and LaunchDate().
|
private |
NAIF frame code.
Definition at line 306 of file Apollo.h.
Referenced by initialize(), and NaifFrameCode().
|
private |
Dimensions of the reseaus.
Definition at line 302 of file Apollo.h.
Referenced by initialize(), and ReseauDimension().
|
private |
Spacecraft name.
Definition at line 304 of file Apollo.h.
Referenced by initialize(), IsApollo15(), IsApollo16(), IsApollo17(), and SpacecraftName().