OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimVerticesFinderTool.h>
Public Member Functions | |
ossimVerticesFinderTool () | |
~ossimVerticesFinderTool () | |
virtual void | setUsage (ossimArgumentParser &ap) |
Initializes the aurgument parser with expected parameters and options. More... | |
virtual bool | initialize (ossimArgumentParser &ap) |
Initializes from command line arguments. More... | |
virtual void | initialize (const ossimKeywordlist &kwl) |
Reads processing params from KWL and prepares for execute. More... | |
virtual bool | execute () |
Writes product to output file if applicable. More... | |
virtual ossimString | getClassName () const |
virtual void | getKwlTemplate (ossimKeywordlist &kwl) |
Assigns a template keywordlist to string for initializing derived classes. More... | |
![]() | |
ossimTool () | |
virtual | ~ossimTool () |
virtual void | loadJSON (const Json::Value &json_request) |
Reads processing params from JSON object provided. More... | |
virtual void | saveJSON (Json::Value &json) const |
Fetch product as JSON object when applicable Always returns true since using exception on error. More... | |
virtual const std::string & | getResponse () const |
Fetch product as string (typically JSON) when applicable, otherwise passes back empty string. More... | |
virtual void | clear () |
Disconnects and clears the DEM and image layers. More... | |
virtual void | abort () |
Kills current (asynchronous) process. More... | |
void | getAPI (std::string &out) const |
Outputs a JSON representation of the Utility's API. More... | |
std::string | getAPI () const |
void | getBuildDate (std::string &s) const |
Gets build date. More... | |
void | getRevision (std::string &s) const |
Gets revision. More... | |
void | getVersion (std::string &s) const |
Gets version. More... | |
virtual bool | isChipProcessor () const |
Overrides base class implementation to indicate this class supports getChip() calls. More... | |
void | setOutputStream (std::ostream *os) |
Redirects any console output to the supplied stream for logging or JNI application. More... | |
bool | helpRequested () const |
Returns true when the initialization detects a "--help" option, so caller can avoid subsequent execute() call. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
JsonInterface () | |
virtual | ~JsonInterface () |
Static Public Attributes | |
static const char * | DESCRIPTION |
Used by ossimUtilityFactory. More... | |
Protected Attributes | |
ossimFilename | m_inputFile |
ossimFilename | m_outputFile |
ossim_uint32 | m_entryIndex |
![]() | |
ossimKeywordlist | m_kwl |
std::ostream * | m_consoleStream |
bool | m_helpRequested |
std::string | m_response |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Class for determining the active image corner vertices inside larger null-filled image rectangle.
Definition at line 18 of file ossimVerticesFinderTool.h.
ossimVerticesFinderTool::ossimVerticesFinderTool | ( | ) |
Definition at line 27 of file ossimVerticesFinderTool.cpp.
ossimVerticesFinderTool::~ossimVerticesFinderTool | ( | ) |
Definition at line 32 of file ossimVerticesFinderTool.cpp.
|
virtual |
Writes product to output file if applicable.
The product may also beAlways returns true since using exception on error.
Implements ossimTool.
Definition at line 126 of file ossimVerticesFinderTool.cpp.
References ossimListenerManager::addListener(), ossimVertexExtractor::execute(), ossimRefPtr< T >::get(), ossimImageHandler::getBoundingRect(), ossimImageHandlerRegistry::instance(), m_entryIndex, ossimTool::m_helpRequested, m_inputFile, m_outputFile, ossimImageHandlerRegistry::open(), ossimVertexExtractor::setAreaOfInterest(), ossimImageHandler::setCurrentEntry(), ossimVertexExtractor::setOutputName(), and ossimRefPtr< T >::valid().
|
inlinevirtual |
Reimplemented from ossimTool.
Definition at line 32 of file ossimVerticesFinderTool.h.
|
virtual |
Assigns a template keywordlist to string for initializing derived classes.
Reimplemented from ossimTool.
Definition at line 165 of file ossimVerticesFinderTool.cpp.
References ossimKeywordlist::add(), ossimKeywordNames::ENTRY_KW, ossimKeywordNames::IMAGE_FILE_KW, and ossimKeywordNames::OUTPUT_FILE_KW.
|
virtual |
Initializes from command line arguments.
This base class has some common arguments to read. The derived class should call this implementation in addition to setting its own arguments.
ap | Represents command line. |
Reimplemented from ossimTool.
Definition at line 55 of file ossimVerticesFinderTool.cpp.
References ossimKeywordlist::add(), ossimKeywordlist::addPair(), ossimArgumentParser::argc(), ossimKeywordNames::ENTRY_KW, ossimKeywordNames::IMAGE_FILE_KW, ossimTool::initialize(), ossimTool::m_helpRequested, ossimTool::m_kwl, ossimNotify(), ossimNotifyLevel_NOTICE, ossimKeywordNames::OUTPUT_FILE_KW, ossimArgumentParser::read(), and ossimArgumentParser::remove().
|
virtual |
Reads processing params from KWL and prepares for execute.
Returns TRUE if successful.
kwl | Full keyword-list representing state |
Reimplemented from ossimTool.
Definition at line 90 of file ossimVerticesFinderTool.cpp.
References ossimKeywordlist::addList(), ossimKeywordlist::clear(), ossimFilename::dirCat(), ossimString::empty(), ossimKeywordNames::ENTRY_KW, ossimFilename::fileNoExtension(), ossimKeywordlist::find(), ossimKeywordNames::IMAGE_FILE_KW, ossimFilename::isReadable(), m_entryIndex, m_inputFile, ossimTool::m_kwl, m_outputFile, ossimKeywordNames::OUTPUT_FILE_KW, ossimFilename::path(), and ossimString::toUInt32().
|
virtual |
Initializes the aurgument parser with expected parameters and options.
It does not output anything. To see the usage, the caller will need to do something like:
ap.getApplicationUsage()->write(<ostream>);
This base class has some common arguments to add. The derived class should call this implementation in addition to setting its own arguments.
Reimplemented from ossimTool.
Definition at line 36 of file ossimVerticesFinderTool.cpp.
References ossimApplicationUsage::addCommandLineOption(), DESCRIPTION, ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), ossimApplicationUsage::setCommandLineUsage(), ossimApplicationUsage::setDescription(), and ossimTool::setUsage().
|
static |
Used by ossimUtilityFactory.
Definition at line 37 of file ossimVerticesFinderTool.h.
Referenced by ossimToolFactory::getCapabilities(), and setUsage().
|
protected |
Definition at line 42 of file ossimVerticesFinderTool.h.
Referenced by execute(), and initialize().
|
protected |
Definition at line 40 of file ossimVerticesFinderTool.h.
Referenced by execute(), and initialize().
|
protected |
Definition at line 41 of file ossimVerticesFinderTool.h.
Referenced by execute(), and initialize().