Isis Developer Reference
CameraFactory.h
Go to the documentation of this file.
1 #ifndef CameraFactory_h
2 #define CameraFactory_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include "Plugin.h"
10 
11 namespace Isis {
12  class Camera;
13  class Cube;
14 
52  class CameraFactory {
53  public:
54  static Camera *Create(Cube &cube);
55  static int CameraVersion(Cube &cube);
56  static int CameraVersion(Pvl &lab);
57  static void initPlugin();
58 
59  private:
64  CameraFactory() {};
65 
67  ~CameraFactory() {};
68 
69  static Plugin m_cameraPlugin;
70  static bool m_initialized;
71  };
72 };
73 
74 #endif
75 
76 
FileName.h
Isis::CameraFactory::Create
static Camera * Create(Cube &cube)
Creates a Camera object using Pvl Specifications.
Definition: CameraFactory.cpp:45
Isis::PvlObject::findGroup
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
CameraFactory.h
Plugin.h
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::PvlContainer::addKeyword
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::FileName::fileExists
bool fileExists() const
Returns true if the file exists; false otherwise.
Definition: FileName.cpp:449
Isis::CameraFactory::initPlugin
static void initPlugin()
Reads the appropriate plugin file for the ISIS cameras, and scans the directories specified in IsisPr...
Definition: CameraFactory.cpp:121
Isis::PvlContainer::hasKeyword
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::Camera
Definition: Camera.h:236
Preference.h
Isis::Cube::hasBlob
bool hasBlob(const QString &name, const QString &type)
Check to see if the cube contains a BLOB.
Definition: Cube.cpp:2019
Isis::CameraFactory
Initializes a Camera Model.
Definition: CameraFactory.h:52
Isis::PvlObject::Traverse
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::CameraFactory::CameraVersion
static int CameraVersion(Cube &cube)
This looks up the current camera model version from the cube.
Definition: CameraFactory.cpp:161
Isis::Preference
Reads user preferences from a data file.
Definition: Preference.h:60
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::IException
Isis exception class.
Definition: IException.h:91
Camera.h
IException.h
std
Namespace for the standard library.
CSMCamera.h
Isis::Cube::label
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
Isis::CSMCamera
Definition: CSMCamera.h:25
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::Plugin
Loads plugins from a shared library.
Definition: Plugin.h:55