|
Isis 3.0 Object Programmers' Reference |
Home |
#include <AtmosModelFactory.h>
Typically, applications which perform atmospheric corrections need to use different types of atmospheric function such as Isotropic1, Anisotropic1, HapkeAtm1, etc. If this factory is given a Pvl object which contains an AtmosModel definition, it will create that specific instance of the class. For example,
Object = AtmosphericModel Group = Algorithm
Name = Isotropic1 ...
EndGroup ...
*EndObject End
Will create an Isotropic 1st order object (which is derived from AtmosModel). The simplest way to create an AtmosModel class is to use the static Create method
Pvl p("myatmosmodel.pvl"); AtmosModel *ar = AtmosModelFactory::Create(p);
For internal use only.
Definition at line 62 of file AtmosModelFactory.h.
Static Public Member Functions | |
| static AtmosModel * | Create (Pvl &pvl, PhotoModel &pmodel) |
| Create an AtmosModel object using a PVL specification. | |
Private Member Functions | |
| AtmosModelFactory () | |
| Constructor (its private so you can't use it). | |
| ~AtmosModelFactory () | |
| Destroys the AtmosModelFactory. | |
| Isis::AtmosModelFactory::AtmosModelFactory | ( | ) | [inline, private] |
Constructor (its private so you can't use it).
Use the Create Method instead.
Definition at line 71 of file AtmosModelFactory.h.
| Isis::AtmosModelFactory::~AtmosModelFactory | ( | ) | [inline, private] |
| AtmosModel * Isis::AtmosModelFactory::Create | ( | Pvl & | pvl, | |
| PhotoModel & | pmodel | |||
| ) | [static] |
Create an AtmosModel object using a PVL specification.
An example of the PVL required for this is:
Object = AtmosphericModel
Group = Algorithm
Name = Isotropic1
Tau = 0.7
Tauref = 0.0
Wha = 0.5
Wharef = 0.0
Hnorm = 0.003
Nulneg = NO
EndGroup
EndObject
There are many other options that can be set via the pvl and are described in other documentation (see below).
| pvl | The pvl object containing the specification | |
| pmodel | The PhotoModel objects contining the data |
Definition at line 59 of file AtmosModelFactory.cpp.
References Isis::Plugin::GetPlugin(), pvl(), Isis::Pvl::Read(), and Isis::PvlObject::Traverse.
Referenced by Isis::Photometry::Photometry().