![]() |
Isis 3 Programmer Reference
|
An abstract implementation of the photometric function. More...
#include <PhotometricFunction.h>
Public Member Functions | |
PhotometricFunction (PvlObject &pvl, Cube &cube, bool useCamera) | |
Construct Photometric function from Pvl and Cube file. More... | |
virtual | ~PhotometricFunction () |
Destructor. More... | |
void | setCamera (Camera *cam) |
Set the camera used to compute photometric angles. More... | |
virtual double | compute (const double &line, const double &sample, int band=1, bool useDem=false) |
Computes Photometric function from cube attributes. More... | |
virtual double | photometry (double i, double e, double g, int band=1) const =0 |
virtual void | report (PvlContainer &pvl)=0 |
virtual void | setMinimumIncidenceAngle (double angle) |
Mutator function to set minimum incidence angle. More... | |
virtual void | setMaximumIncidenceAngle (double angle) |
Mutator function to set maximum incidence angle. More... | |
virtual void | setMinimumEmissionAngle (double angle) |
Mutator function to set minimum emission angle. More... | |
virtual void | setMaximumEmissionAngle (double angle) |
Mutator function to set maximum emission angle. More... | |
virtual void | setMinimumPhaseAngle (double angle) |
Mutator function to set minimum phase angle. More... | |
virtual void | setMaximumPhaseAngle (double angle) |
Mutator function to set maximum phase angle. More... | |
virtual double | minimumIncidenceAngle () |
Accessor method to access minimum incidence angle. More... | |
virtual double | maximumIncidenceAngle () |
Accessor method to access maximum incidence angle. More... | |
virtual double | minimumEmissionAngle () |
Accessor method to access minimum emission angle. More... | |
virtual double | maximumEmissionAngle () |
Accessor method to access maximum emission angle. More... | |
virtual double | minimumPhaseAngle () |
Accessor method to access minimum phase angle. More... | |
virtual double | maximumPhaseAngle () |
Accessor method to access maximum phase angle. More... | |
Static Public Member Functions | |
static QString | algorithmName (const PvlObject &pvl) |
Finds the name of the algorithm defined in a PVL object. More... | |
Protected Member Functions | |
template<typename T > | |
T | ConfKey (const DbProfile &conf, const QString &keyname, const T &defval, int index=0) const |
Helper template to initialize parameters. More... | |
Protected Attributes | |
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.
Definition at line 78 of file PhotometricFunction.h.
Construct Photometric function from Pvl and Cube file.
pvl | photometric parameter files |
cube | Input cube file |
Definition at line 34 of file PhotometricFunction.cpp.
References Isis::Cube::camera().
|
virtual |
Destructor.
Definition at line 44 of file PhotometricFunction.cpp.
|
static |
Finds the name of the algorithm defined in a PVL object.
pvl | The pvl to find the algorithm name in. |
Definition at line 64 of file PhotometricFunction.cpp.
References Isis::PvlObject::findObject().
|
virtual |
Computes Photometric function from cube attributes.
line | line number in cube |
sample | sample number in cube |
band | band number in cube |
useDem | boolean to use provided Dem |
Definition at line 85 of file PhotometricFunction.cpp.
References Isis::Angle::degrees(), and Isis::Null.
|
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.
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 |
Definition at line 133 of file PhotometricFunction.h.
References Isis::DbProfile::count(), Isis::DbProfile::exists(), and Isis::DbProfile::value().
|
virtual |
Accessor method to access maximum emission angle.
Definition at line 275 of file PhotometricFunction.cpp.
|
virtual |
Accessor method to access maximum incidence angle.
Definition at line 243 of file PhotometricFunction.cpp.
|
virtual |
Accessor method to access maximum phase angle.
Definition at line 307 of file PhotometricFunction.cpp.
|
virtual |
Accessor method to access minimum emission angle.
Definition at line 259 of file PhotometricFunction.cpp.
|
virtual |
Accessor method to access minimum incidence angle.
Definition at line 227 of file PhotometricFunction.cpp.
|
virtual |
Accessor method to access minimum phase angle.
Definition at line 291 of file PhotometricFunction.cpp.
void Isis::PhotometricFunction::setCamera | ( | Camera * | cam | ) |
Set the camera used to compute photometric angles.
cam | A pointer to the camera to be used |
Definition at line 52 of file PhotometricFunction.cpp.
|
virtual |
Mutator function to set maximum emission angle.
double | The new maximum emission angle |
Definition at line 179 of file PhotometricFunction.cpp.
|
virtual |
Mutator function to set maximum incidence angle.
double | the new maximum incidence angle |
Definition at line 147 of file PhotometricFunction.cpp.
|
virtual |
Mutator function to set maximum phase angle.
double | The new maximum phase angle |
Definition at line 211 of file PhotometricFunction.cpp.
|
virtual |
Mutator function to set minimum emission angle.
double | The new minimum emission angle |
Definition at line 163 of file PhotometricFunction.cpp.
|
virtual |
Mutator function to set minimum incidence angle.
double | The new minimum incidence angle |
Definition at line 131 of file PhotometricFunction.cpp.
|
virtual |
Mutator function to set minimum phase angle.
double | The new minimum phase angle |
Definition at line 195 of file PhotometricFunction.cpp.
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 15:21:17 |