![]()  | 
  
    Isis 3 Programmer Reference
    
   | 
 
Reads user Apollos from a data file. More...
#include <Apollo.h>

Public Member Functions | |
| Apollo (QString spacecraft, QString instrument) | |
| Constructor.   | |
| Apollo (QString filename) | |
| Constructor.   | |
| ~Apollo () | |
| Destroys the Apollo object.   | |
| bool | IsMetric () | 
| Checks if the instrument is an Apollo Metric camera.   | |
| bool | IsPanoramic () | 
| Checks if the instrument is an Apollo Panoramic camera.   | |
| bool | IsHasselblad () | 
| Checks if the instrument is an Apollo Hasselblad camera.   | |
| bool | IsApollo15 () | 
| Checks if the spacecraft is Apollo 15.   | |
| bool | IsApollo16 () | 
| Checks if the spacecraft is Apollo 16.   | |
| bool | IsApollo17 () | 
| Checks if the spacecraft is Apollo 17.   | |
| int | Width () | 
| Returns the width of the image.   | |
| int | Height () | 
| Returns the height of the image.   | |
| int | Bands () | 
| Returns number of bands in the image.   | |
| int | ReseauDimension () | 
| Returns the reseau dimension of the image.   | |
| double | PixelPitch () | 
| Returns pixel pitch for the image.   | |
| QString | SpacecraftName () | 
| Returns the spacecraft name.   | |
| QString | InstrumentId () | 
| Returns the instrument ID.   | |
| QString | NaifFrameCode () | 
| Returns the NAIF frame code.   | |
| QString | TargetName () | 
| Returns the target name which is always the Moon.   | |
| iTime | LaunchDate () | 
| Returns the launch date of the mission.   | |
Private Member Functions | |
| void | initialize (QString spacecraft, QString instrument) | 
| Sets variables based on the spacecraft name and instrument.   | |
Private Attributes | |
| int | p_imageWidth | 
| Image width.   | |
| int | p_imageHeight | 
| Image height.   | |
| int | p_imageBands | 
| Number of bands in the image.   | |
| int | p_reseauDimension | 
| Dimensions of the reseaus.   | |
| double | p_imagePixelPitch | 
| Pixel pitch.   | |
| QString | p_spacecraftName | 
| Spacecraft name.   | |
| QString | p_instrumentId | 
| Instrument ID.   | |
| QString | p_naifFrameCode | 
| NAIF frame code.   | |
| iTime | p_launchDate | 
| Mission launch date.   | |
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 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.
      
  | 
  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().