An abstract implementation of the photometric function.
More...
#include <PhotometricFunction.h>
|
template<typename T > |
T | ConfKey (const DbProfile &conf, const QString &keyname, const T &defval, int index=0) const |
| Helper template to initialize parameters. More...
|
|
|
Camera * | m_camera |
|
double | m_iRef |
|
double | m_eRef |
|
double | m_gRef |
|
double | m_minimumIncidenceAngle |
|
double | m_maximumIncidenceAngle |
|
double | m_minimumEmissionAngle |
|
double | m_maximumEmissionAngle |
|
double | m_minimumPhaseAngle |
|
double | m_maximumPhaseAngle |
|
DbProfile | m_normProf |
|
An abstract implementation of the photometric function.
This abstract class implements the a generic Photometric function. Child classes are expected to implement the photometry and report methods.
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 - Code adapted from lrowacpho written by Kris Becker
Definition at line 70 of file PhotometricFunction.h.
◆ PhotometricFunction()
Isis::PhotometricFunction::PhotometricFunction |
( |
PvlObject & |
pvl, |
|
|
Cube & |
cube, |
|
|
bool |
useCamera |
|
) |
| |
Construct Photometric function from Pvl and Cube file.
- Parameters
-
pvl | photometric parameter files |
cube | Input cube file |
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 26 of file PhotometricFunction.cpp.
References Isis::Cube::camera().
◆ ~PhotometricFunction()
Isis::PhotometricFunction::~PhotometricFunction |
( |
| ) |
|
|
virtual |
◆ algorithmName()
QString Isis::PhotometricFunction::algorithmName |
( |
const PvlObject & |
pvl | ) |
|
|
static |
◆ compute()
double Isis::PhotometricFunction::compute |
( |
const double & |
line, |
|
|
const double & |
sample, |
|
|
int |
band = 1 , |
|
|
bool |
useDem = false |
|
) |
| |
|
virtual |
Computes Photometric function from cube attributes.
- Parameters
-
line | line number in cube |
sample | sample number in cube |
band | band number in cube |
useDem | boolean to use provided Dem |
- Returns
- double photometry calculations
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Victor Silva - Code adapted from lrowacpho written by Kris Becker
Definition at line 77 of file PhotometricFunction.cpp.
References Isis::Angle::degrees(), and Isis::Null.
◆ ConfKey()
template<typename T >
T Isis::PhotometricFunction::ConfKey |
( |
const DbProfile & |
conf, |
|
|
const QString & |
keyname, |
|
|
const T & |
defval, |
|
|
int |
index = 0 |
|
) |
| const |
|
inlineprotected |
Helper template to initialize parameters.
This template will check the existance of a keyword and extract the value if it exists to the passed parameter (type). If it doesn't exist, the default values are returned.
- Parameters
-
conf | Parameter profile container |
keyname | Name of keyword to get a value from |
defval | Default value it keyword/value doesn't exist |
index | Optional index of the value for keyword arrays |
- Returns
- T The value of the keyword or the default value if the keyword is not found.
Definition at line 125 of file PhotometricFunction.h.
References Isis::DbProfile::count(), Isis::DbProfile::exists(), and Isis::DbProfile::value().
◆ maximumEmissionAngle()
double Isis::PhotometricFunction::maximumEmissionAngle |
( |
| ) |
|
|
virtual |
Accessor method to access maximum emission angle.
- Returns
- double The maximum emission angle
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 267 of file PhotometricFunction.cpp.
◆ maximumIncidenceAngle()
double Isis::PhotometricFunction::maximumIncidenceAngle |
( |
| ) |
|
|
virtual |
Accessor method to access maximum incidence angle.
- Returns
- double The maximum incidence angle
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 235 of file PhotometricFunction.cpp.
◆ maximumPhaseAngle()
double Isis::PhotometricFunction::maximumPhaseAngle |
( |
| ) |
|
|
virtual |
Accessor method to access maximum phase angle.
- Returns
- double The maximum phase angle
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 299 of file PhotometricFunction.cpp.
◆ minimumEmissionAngle()
double Isis::PhotometricFunction::minimumEmissionAngle |
( |
| ) |
|
|
virtual |
Accessor method to access minimum emission angle.
- Returns
- double The minimum emission angle
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 251 of file PhotometricFunction.cpp.
◆ minimumIncidenceAngle()
double Isis::PhotometricFunction::minimumIncidenceAngle |
( |
| ) |
|
|
virtual |
Accessor method to access minimum incidence angle.
- Returns
- double The minimum incidence angle
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 219 of file PhotometricFunction.cpp.
◆ minimumPhaseAngle()
double Isis::PhotometricFunction::minimumPhaseAngle |
( |
| ) |
|
|
virtual |
Accessor method to access minimum phase angle.
- Returns
- double The minimum phase angle
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 283 of file PhotometricFunction.cpp.
◆ setCamera()
void Isis::PhotometricFunction::setCamera |
( |
Camera * |
cam | ) |
|
Set the camera used to compute photometric angles.
- Parameters
-
cam | A pointer to the camera to be used |
Definition at line 44 of file PhotometricFunction.cpp.
◆ setMaximumEmissionAngle()
void Isis::PhotometricFunction::setMaximumEmissionAngle |
( |
double |
angle | ) |
|
|
virtual |
Mutator function to set maximum emission angle.
- Parameters
-
double | The new maximum emission angle |
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 171 of file PhotometricFunction.cpp.
◆ setMaximumIncidenceAngle()
void Isis::PhotometricFunction::setMaximumIncidenceAngle |
( |
double |
angle | ) |
|
|
virtual |
Mutator function to set maximum incidence angle.
- Parameters
-
double | the new maximum incidence angle |
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 139 of file PhotometricFunction.cpp.
◆ setMaximumPhaseAngle()
void Isis::PhotometricFunction::setMaximumPhaseAngle |
( |
double |
angle | ) |
|
|
virtual |
Mutator function to set maximum phase angle.
- Parameters
-
double | The new maximum phase angle |
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 203 of file PhotometricFunction.cpp.
◆ setMinimumEmissionAngle()
void Isis::PhotometricFunction::setMinimumEmissionAngle |
( |
double |
angle | ) |
|
|
virtual |
Mutator function to set minimum emission angle.
- Parameters
-
double | The new minimum emission angle |
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 155 of file PhotometricFunction.cpp.
◆ setMinimumIncidenceAngle()
void Isis::PhotometricFunction::setMinimumIncidenceAngle |
( |
double |
angle | ) |
|
|
virtual |
Mutator function to set minimum incidence angle.
- Parameters
-
double | The new minimum incidence angle |
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 123 of file PhotometricFunction.cpp.
◆ setMinimumPhaseAngle()
void Isis::PhotometricFunction::setMinimumPhaseAngle |
( |
double |
angle | ) |
|
|
virtual |
Mutator function to set minimum phase angle.
- Parameters
-
double | The new minimum phase angle |
- Author
- 2016-08-15 Victor Silva
- History:
- 2016-08-15 Code adapted from lrowacpho written by Kris Becker
Definition at line 187 of file PhotometricFunction.cpp.
The documentation for this class was generated from the following files: