Isis 3.0
Home
CissLabels.h
Go to the documentation of this file.
1 #ifndef CISSLABELS_H
2 #define CISSLABELS_H
3 
25 #include <string>
26 #include <vector>
27 
28 #include <QString>
29 
30 namespace Isis {
31  class Pvl;
48  class CissLabels {
49  public:
50  CissLabels(Pvl &lab);
51  CissLabels(const QString &file);
54 
55 
66  inline bool NarrowAngle() const {
67  return p_cissNA;
68  };
69 
70 
81  inline bool WideAngle() const {
82  return !p_cissNA;
83  };
84 
85 
96  inline double BiasStripMean() const {
97  return p_biasStripMean;
98  };
99 
100 
112  inline QString CompressionRatio() const {
113  return p_compressionRatio;
114  };
115 
116 
127  inline QString CompressionType() const {
128  return p_compressionType;
129  };
130 
131 
142  inline QString DataConversionType() const {
143  return p_dataConversionType;
144  };
145 
146 
156  inline QString DelayedReadoutFlag() const {
157  return p_delayedReadoutFlag;
158  };
159 
160 
170  inline double ExposureDuration() const {
171  return p_exposureDuration;
172  };
173 
174 
201  std::vector <QString> FilterName() const {
202  return p_filter;
203  };
204 
205 
216  std::vector <int> FilterIndex() const {
217  return p_filterIndex;
218  };
219 
220 
232  inline QString FlightSoftwareVersion() const {
233  return p_flightSoftwareVersion;
234  };
235 
236 
247  inline double FrontOpticsTemp() const {
248  return p_frontOpticsTemp;
249  };
250 
251 
262  inline int GainModeId() const {
263  return p_gainModeId;
264  };
265 
266 
277  inline int GainState() const {
278  return p_gainState;
279  };
280 
281 
290  inline double ImageNumber() const {
291  return p_imageNumber;
292  };
293 
294 
305  inline double InstrumentDataRate() const {
306  return p_instrumentDataRate;
307  };
308 
309 
319  inline QString InstrumentId() const {
320  return p_instrumentId;
321  };
322 
323 
337  inline QString InstrumentModeId() {
338  return p_instrumentModeId.toLower();
339  };
340 
341 
353  inline QString ReadoutCycleIndex() const {
354  return p_readoutCycleIndex;
355  };
356 
357 
370  inline int ReadoutOrder() const {
371  return p_readoutOrder;
372  };
373 
374 
385  inline QString ShutterModeId() const {
386  return p_shutterModeId;
387  };
388 
389 
401  inline int SummingMode() const {
402  return p_summingMode;
403  };
404 
405 
415  inline bool AntibloomingOn() const {
416  return p_antiblooming;
417  };
418 
419 
420  private:
421  void Init(Pvl &lab);
422  void ReadLabels(Pvl &lab);
423  void ComputeImgProperties();
424 
425 
427  QString p_ABflag;
429  bool p_antiblooming;
431  double p_biasStripMean;
433  bool p_cissNA;
435  QString p_compressionRatio;
437  QString p_compressionType;
439  QString p_dataConversionType;
441  QString p_delayedReadoutFlag;
443  double p_exposureDuration;
445  std::vector <QString> p_filter;
447  std::vector <int> p_filterIndex;
449  QString p_flightSoftwareVersion;
451  double p_frontOpticsTemp;
453  int p_gainModeId;
455  int p_gainState;
457  double p_imageNumber;
459  double p_instrumentDataRate;
461  QString p_instrumentId;
463  QString p_instrumentModeId;
465  QString p_readoutCycleIndex;
467  int p_readoutOrder;
469  QString p_shutterModeId;
471  int p_summingMode;
472  };
473 };
474 
475 #endif
~CissLabels()
Destroys the CissLabels object.
Definition: CissLabels.h:53
QString CompressionType() const
Returns CompressionType from the Instrument group.
Definition: CissLabels.h:127
double BiasStripMean() const
Returns BiasStripMean from the Intstrument group.
Definition: CissLabels.h:96
QString InstrumentId() const
Returns InstrumentId from the Instrument group.
Definition: CissLabels.h:319
QString InstrumentModeId()
Returns the lower case form of InstrumentModeId from the Instrument group.
Definition: CissLabels.h:337
QString CompressionRatio() const
Returns CompressionRatio from the Instrument group.
Definition: CissLabels.h:112
double ImageNumber() const
Returns ImageNumber from the Archive group.
Definition: CissLabels.h:290
double FrontOpticsTemp() const
Returns the first element of OpticsTemperature from the Instrument group.
Definition: CissLabels.h:247
bool AntibloomingOn() const
Returns whether AntiBloomingFlag from the Instrument group is &quot;On&quot;.
Definition: CissLabels.h:415
std::vector< QString > FilterName() const
Returns a two-element array of the optical filters found in the BandBin group.
Definition: CissLabels.h:201
QString FlightSoftwareVersion() const
Returns FlightSoftwareVersion from the Instrument group.
Definition: CissLabels.h:232
Read values from Cassini ISS labels.
Definition: CissLabels.h:48
QString DelayedReadoutFlag() const
Returns DelayedReadoutFlag from the Instrument group.
Definition: CissLabels.h:156
int ReadoutOrder() const
Returns ReadoutOrder from the Instrument group.
Definition: CissLabels.h:370
double InstrumentDataRate() const
Returns InstrumentDataRate from the Instrument group.
Definition: CissLabels.h:305
int GainModeId() const
Returns GainModeId from the Instrument group.
Definition: CissLabels.h:262
QString ShutterModeId() const
Returns ShutterModeId from the Instrument group.
Definition: CissLabels.h:385
std::vector< int > FilterIndex() const
Returns a two-element array of indices associated with optical filter names.
Definition: CissLabels.h:216
int SummingMode() const
Returns SummingMode from the Instrument group.
Definition: CissLabels.h:401
bool NarrowAngle() const
Returns whether InstrumentId from the Instrument group is &quot;ISSNA&quot;.
Definition: CissLabels.h:66
Container for cube-like labels.
Definition: Pvl.h:135
QString DataConversionType() const
Returns DataConversionType from the Instrument group.
Definition: CissLabels.h:142
bool WideAngle() const
Returns whether InstrumentId from the Instrument group is &quot;ISSWA&quot;.
Definition: CissLabels.h:81
int GainState() const
Returns GainState from the Instrument group.
Definition: CissLabels.h:277
double ExposureDuration() const
Returns ExposureDuration from the Instrument group.
Definition: CissLabels.h:170
CissLabels(Pvl &lab)
Constructs a CissLabels object from an Isis::Pvl object.
Definition: CissLabels.cpp:16
QString ReadoutCycleIndex() const
Returns ReadoutCycleIndex from the Instrument group.
Definition: CissLabels.h:353