USGS

Isis 3.0 Application Source Code Reference

Home

Module Class Reference

Module manages HiRISE calibration vectors from various sources. More...

#include <Module.h>

List of all members.

Public Member Functions

 Module ()
 Module (const QString &name)
 Module (const QString &name, const HiHistory &history)
 Module (const QString &name, const Module &c)
 Module (const Module &c)
virtual ~Module ()
 Destructor.
QString name () const
 Returns name of component.
QString getcsvFile () const
 Returns expanded name of last CSV file loaded by loadCsv.
int size () const
 Returns the size (number of elements) of data array.
virtual void Process (const Module &c)
 Invokes the process method on the Module vector.
virtual void Process (const HiVector &v)
 Default processing behavior makes a reference copy of data array.
HiVector loadCsv (const QString &csvBase, const HiCalConf &conf, const DbProfile &prof, const int &elements=0)
 Provide generic loading of CSV file for all modules.
const HiVectorref () const
 Return data via a const reference.
double operator() (int index) const
 Return individual element of the data vector.
const HiHistoryHistory () const
 Return recorded history of events.
virtual void record (PvlGroup &pvl, const QString keyname="ModuleHistory") const
 Record history in Pvl group object.
void Dump (const QString &fname) const
 Dumps the component to a specified file.
 Module ()
 Module (const QString &name)
 Module (const QString &name, const HiHistory &history)
 Module (const QString &name, const Module &c)
 Module (const Module &c)
virtual ~Module ()
 Destructor.
QString name () const
 Returns name of component.
QString getcsvFile () const
 Returns expanded name of last CSV file loaded by loadCsv.
int size () const
 Returns the size (number of elements) of data array.
virtual void Process (const Module &c)
 Invokes the process method on the Module vector.
virtual void Process (const HiVector &v)
 Default processing behavior makes a reference copy of data array.
HiVector loadCsv (const QString &csvBase, const HiCalConf &conf, const DbProfile &prof, const int &elements=0)
 Provide generic loading of CSV file for all modules.
const HiVectorref () const
 Return data via a const reference.
double operator() (int index) const
 Return individual element of the data vector.
const HiHistoryHistory () const
 Return recorded history of events.
virtual void record (PvlGroup &pvl, const QString keyname="ModuleHistory") const
 Record history in Pvl group object.
void Dump (const QString &fname) const
 Dumps the component to a specified file.

Protected Types

enum  { DefaultWidth = 10, DefaultPrecision = 6 }
enum  { DefaultWidth = 10, DefaultPrecision = 6 }

Protected Member Functions

QString formatDbl (const double &value) const
 Properly format values that could be special pixels.
virtual void printOn (std::ostream &o) const
 Default printing of data in module.
QString formatDbl (const double &value) const
 Properly format values that could be special pixels.
virtual void printOn (std::ostream &o) const
 Default printing of data in module.

Protected Attributes

QString _name
 Name of component.
QString _csvFile
 Fully expanded name of CSV file if present.
HiVector _data
 Data vector.
HiHistory _history
 Hierarchial component history.
int _fmtWidth
 Default field with of double.
int _fmtPrecision
 Default field with of double.

Friends

std::ostream & operator<< (std::ostream &o, const Module &c)
std::ostream & operator<< (std::ostream &o, const Module &c)

Detailed Description

Module manages HiRISE calibration vectors from various sources.

Author:
2007-10-05 Kris Becker

Definition at line 54 of file Module.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
DefaultWidth 
DefaultPrecision 

Definition at line 162 of file Module.h.

anonymous enum [protected]
Enumerator:
DefaultWidth 
DefaultPrecision 

Definition at line 162 of file Module.h.


Constructor & Destructor Documentation

Module (  )  [inline]

Definition at line 63 of file Module.h.

Module ( const QString &  name  )  [inline]

Definition at line 65 of file Module.h.

Module ( const QString &  name,
const HiHistory history 
) [inline]

Definition at line 68 of file Module.h.

Module ( const QString &  name,
const Module c 
) [inline]

Definition at line 71 of file Module.h.

Module ( const Module c  )  [inline]

Definition at line 74 of file Module.h.

virtual ~Module (  )  [inline, virtual]

Destructor.

Definition at line 81 of file Module.h.

Module (  )  [inline]

Definition at line 63 of file Module.h.

Module ( const QString &  name  )  [inline]

Definition at line 65 of file Module.h.

Module ( const QString &  name,
const HiHistory history 
) [inline]

Definition at line 68 of file Module.h.

Module ( const QString &  name,
const Module c 
) [inline]

Definition at line 71 of file Module.h.

Module ( const Module c  )  [inline]

Definition at line 74 of file Module.h.

virtual ~Module (  )  [inline, virtual]

Destructor.

Definition at line 81 of file Module.h.


Member Function Documentation

QString name (  )  const [inline]

Returns name of component.

Definition at line 84 of file Module.h.

QString getcsvFile (  )  const [inline]

Returns expanded name of last CSV file loaded by loadCsv.

Definition at line 86 of file Module.h.

int size (  )  const [inline]

Returns the size (number of elements) of data array.

Reimplemented in ZeroBufferFit, and ZeroBufferFit.

Definition at line 88 of file Module.h.

virtual void Process ( const Module c  )  [inline, virtual]

Invokes the process method on the Module vector.

Definition at line 91 of file Module.h.

virtual void Process ( const HiVector v  )  [inline, virtual]

Default processing behavior makes a reference copy of data array.

Reimplemented in LowPassFilter, SplineFill, LowPassFilter, and SplineFill.

Definition at line 96 of file Module.h.

HiVector loadCsv ( const QString &  csvBase,
const HiCalConf &  conf,
const DbProfile &  prof,
const int &  elements = 0 
) [inline]

Provide generic loading of CSV file for all modules.

This method provides generalized access to CSV files through the standardized format.

Author:
Kris Becker - 4/16/2010
Parameters:
cvsBase Name of base keyword for CSV file
conf Configuration parameters
prof Module profile parameters
samples Number of expect elements to be read from CSV file
Returns:
HiVector

Definition at line 116 of file Module.h.

const HiVector& ref (  )  const [inline]

Return data via a const reference.

Definition at line 126 of file Module.h.

double operator() ( int  index  )  const [inline]

Return individual element of the data vector.

Definition at line 128 of file Module.h.

const HiHistory& History (  )  const [inline]

Return recorded history of events.

Definition at line 131 of file Module.h.

virtual void record ( PvlGroup &  pvl,
const QString  keyname = "ModuleHistory" 
) const [inline, virtual]

Record history in Pvl group object.

Definition at line 134 of file Module.h.

void Dump ( const QString &  fname  )  const [inline]

Dumps the component to a specified file.

Parameters:
fname Name of file to dump contents to

Definition at line 146 of file Module.h.

QString formatDbl ( const double &  value  )  const [inline, protected]

Properly format values that could be special pixels.

This method applies ISIS special pixel value conventions to properly print pixel values.

Parameters:
[in] (double) value Input value to test for specialness and print as requested by caller
[in] (int) width Width of field in which to print the value
[in] (int) prec Precision used to format the value
Returns:
(string) Formatted double value

Definition at line 184 of file Module.h.

virtual void printOn ( std::ostream &  o  )  const [inline, protected, virtual]

Default printing of data in module.

Definition at line 198 of file Module.h.

QString name (  )  const [inline]

Returns name of component.

Definition at line 84 of file Module.h.

QString getcsvFile (  )  const [inline]

Returns expanded name of last CSV file loaded by loadCsv.

Definition at line 86 of file Module.h.

int size (  )  const [inline]

Returns the size (number of elements) of data array.

Reimplemented in ZeroBufferFit, and ZeroBufferFit.

Definition at line 88 of file Module.h.

virtual void Process ( const Module c  )  [inline, virtual]

Invokes the process method on the Module vector.

Definition at line 91 of file Module.h.

virtual void Process ( const HiVector v  )  [inline, virtual]

Default processing behavior makes a reference copy of data array.

Reimplemented in LowPassFilter, SplineFill, LowPassFilter, and SplineFill.

Definition at line 96 of file Module.h.

HiVector loadCsv ( const QString &  csvBase,
const HiCalConf &  conf,
const DbProfile &  prof,
const int &  elements = 0 
) [inline]

Provide generic loading of CSV file for all modules.

This method provides generalized access to CSV files through the standardized format.

Author:
Kris Becker - 4/16/2010
Parameters:
cvsBase Name of base keyword for CSV file
conf Configuration parameters
prof Module profile parameters
samples Number of expect elements to be read from CSV file
Returns:
HiVector

Definition at line 116 of file Module.h.

const HiVector& ref (  )  const [inline]

Return data via a const reference.

Definition at line 126 of file Module.h.

double operator() ( int  index  )  const [inline]

Return individual element of the data vector.

Definition at line 128 of file Module.h.

const HiHistory& History (  )  const [inline]

Return recorded history of events.

Definition at line 131 of file Module.h.

virtual void record ( PvlGroup &  pvl,
const QString  keyname = "ModuleHistory" 
) const [inline, virtual]

Record history in Pvl group object.

Definition at line 134 of file Module.h.

void Dump ( const QString &  fname  )  const [inline]

Dumps the component to a specified file.

Parameters:
fname Name of file to dump contents to

Definition at line 146 of file Module.h.

QString formatDbl ( const double &  value  )  const [inline, protected]

Properly format values that could be special pixels.

This method applies ISIS special pixel value conventions to properly print pixel values.

Parameters:
[in] (double) value Input value to test for specialness and print as requested by caller
[in] (int) width Width of field in which to print the value
[in] (int) prec Precision used to format the value
Returns:
(string) Formatted double value

Definition at line 184 of file Module.h.

virtual void printOn ( std::ostream &  o  )  const [inline, protected, virtual]

Default printing of data in module.

Definition at line 198 of file Module.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Module c 
) [friend]

Definition at line 56 of file Module.h.

std::ostream& operator<< ( std::ostream &  o,
const Module c 
) [friend]

Definition at line 56 of file Module.h.


Member Data Documentation

QString _name [protected]

Name of component.

Definition at line 164 of file Module.h.

QString _csvFile [protected]

Fully expanded name of CSV file if present.

Definition at line 165 of file Module.h.

HiVector _data [protected]

Data vector.

Definition at line 166 of file Module.h.

HiHistory _history [protected]

Hierarchial component history.

Definition at line 167 of file Module.h.

int _fmtWidth [protected]

Default field with of double.

Definition at line 168 of file Module.h.

int _fmtPrecision [protected]

Default field with of double.

Definition at line 169 of file Module.h.


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