Isis Developer Reference
Isis::PhotoModelFactory Class Reference

This class is used to create PhotoModel objects. More...

#include <PhotoModelFactory.h>

Collaboration diagram for Isis::PhotoModelFactory:
Collaboration graph

Static Public Member Functions

static PhotoModelCreate (Pvl &pvl)
 Create a PhotoModel object using a PVL specification.
 

Detailed Description

This class is used to create PhotoModel objects.

Typically, applications which perform photometric corrections need to use different types of photometric function such as Lambert, Minnaert, HapkeLegendre, etc. If this factory is given a Pvl object which contains a PhotoModel definition, it will create that specific instance of the class. For example,

Object = PhotometricModel
Group = Algorithm
Name = Minnaert
...
EndGroup
...
EndObject
End
Minnaert photometric model Derive model albedo using Minnaert equation.
Definition Minnaert.h:42

Will create a Minnaert object (which is derived from PhotoModel). The simplest way to create a PhotoModel class is to use the static Create method.

Pvl p("myphotmodel.pvl");
static PhotoModel * Create(Pvl &pvl)
Create a PhotoModel object using a PVL specification.
Definition PhotoModelFactory.cpp:35
Definition PhotoModel.h:41
Container for cube-like labels.
Definition Pvl.h:119
Author
2006-01-23 Janet Barrett

Member Function Documentation

◆ Create()

PhotoModel * Isis::PhotoModelFactory::Create ( Pvl & pvl)
static

Create a PhotoModel object using a PVL specification.

An example of the PVL required for this is:

Object = PhotometricModel
Group = Algorithm
PhtName/Name = Minnaert
K = 0.7
EndGroup
EndObject

There are many other options that can be set via the pvl and are described in other documentation (see below).

Parameters
pvlThe pvl object containing the specification
See also
photometricModels.doc

References _FILEINFO_, Isis::FileName::fileExists(), Isis::PvlObject::Traverse, and Isis::IException::User.

Referenced by Isis::Photometry::Photometry().


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