OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Singleton class maintaining parameters affecting the automatic tie point generation. More...
#include <AtpConfig.h>
Public Member Functions | |
virtual | ~AtpConfig () |
Destructor. More... | |
bool | readConfig (const std::string &configName="") |
![]() | |
JsonConfig () | |
Default Ctor loads all default .json files in the share/ossim system dir. More... | |
JsonConfig (const ossimFilename &configFile) | |
virtual | ~JsonConfig () |
Destructor. More... | |
bool | open (const ossimFilename &configFile) |
Opens and parses JSON file. The "parameters" keyword is expected in the root node. More... | |
virtual void | loadJSON (const Json::Value ¶ms_json_node) |
Reads the params controlling the process from the JSON node named "parameters". More... | |
virtual void | saveJSON (Json::Value ¶ms_json_node) const |
Reads the params controlling the process from the JSON node named "parameters". More... | |
JsonParam & | getParameter (const char *paramName) |
Returns a parameter (might be a null parameter if paramName not found in the configuration. More... | |
void | setParameter (const JsonParam &p) |
Adds parameter to the configuration. More... | |
bool | diagnosticLevel (unsigned int level) const |
Convenience method returns TRUE if the currently set diagnostic level is <= level. More... | |
bool | paramExists (const char *paramName) const |
![]() | |
JsonInterface () | |
virtual | ~JsonInterface () |
Static Public Member Functions | |
static AtpConfig & | instance () |
Singleton implementation. More... | |
Private Member Functions | |
AtpConfig () | |
AtpConfig (const AtpConfig &) | |
Additional Inherited Members | |
![]() | |
JsonConfig (const JsonConfig &) | |
bool | getBoolValue (bool &rtn_val, const std::string &json_value) const |
![]() | |
std::map< std::string, JsonParam > | m_paramsMap |
![]() | |
static JsonParam | s_nullParam |
Singleton class maintaining parameters affecting the automatic tie point generation.
The state is imported and exported via JSON. There are default configuration files that must be part of the install, that are accessed by this class. Custom settings can also be st
Definition at line 24 of file AtpConfig.h.
|
virtual |
Destructor.
Definition at line 33 of file AtpConfig.cpp.
|
private |
Definition at line 26 of file AtpConfig.cpp.
|
inlineprivate |
Definition at line 37 of file AtpConfig.h.
|
static |
Singleton implementation.
Definition at line 20 of file AtpConfig.cpp.
Referenced by ATP::AtpAnnotatedImage::annotateCorrelations(), ATP::AtpAnnotatedImage::annotateFeatures(), ATP::AtpAnnotatedImage::annotateResiduals(), ATP::AtpAnnotatedImage::AtpAnnotatedImage(), ATP::AtpGenerator::constructChain(), ATP::ossimCorrelationSource::correlate(), ATP::ossimAtpTool::doPairwiseMatching(), ATP::AtpTileSource::filterPoints(), ATP::AtpTileSource::filterWithoutParallax(), ATP::AtpTileSource::filterWithParallax(), ATP::ossimCorrelationSource::findFeatures(), ATP::AtpGenerator::generateTiePointList(), ATP::ossimAtpTool::getParameters(), ATP::ossimDescriptorSource::getTile(), ATP::ossimCorrelationSource::getTile(), ATP::ossimCorrelationSource::initialize(), ATP::AtpGenerator::initialize(), ATP::AtpTileSource::initializeStaticMembers(), ATP::AtpGenerator::layoutSearchTileRects(), ATP::ossimAtpTool::loadJSON(), ATP::ossimCorrelationSource::OpenCVCorrelation(), and ATP::AtpTileSource::pruneList().
bool ATP::AtpConfig::readConfig | ( | const std::string & | configName = "" | ) |
Definition at line 38 of file AtpConfig.cpp.
References ossimString::clear(), CWARN, ossimString::empty(), ossimPreferences::instance(), ossimFilename::isDir(), ossimFilename::setPath(), and ossimException::what().
Referenced by ATP::ossimAtpTool::loadJSON(), and main().