OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Utility class for generating point-cloud-derived image products. More...
#include <ossimPointCloudTool.h>
Public Member Functions | |
ossimPointCloudTool () | |
~ossimPointCloudTool () | |
bool | initialize (ossimArgumentParser &ap) override |
Initializes from command line arguments. More... | |
void | loadJSON (const Json::Value &json_request) override |
Reads processing params from JSON object provided. More... | |
void | saveJSON (Json::Value &json) const override |
Fetch product as JSON object when applicable Always returns true since using exception on error. More... | |
virtual bool | execute () override |
Writes product to output file if applicable. More... | |
![]() | |
ossimTool () | |
virtual | ~ossimTool () |
virtual void | initialize (const ossimKeywordlist &kwl) |
Reads processing params from KWL and prepares for execute. 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... | |
virtual void | getKwlTemplate (ossimKeywordlist &kwl) |
Assigns a template keywordlist to string for initializing derived classes. More... | |
void | getAPI (std::string &out) const |
Outputs a JSON representation of the Utility's API. More... | |
std::string | getAPI () const |
virtual ossimString | getClassName () 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 () |
Protected Types | |
enum | Operation { HIGHEST_DEM, LOWEST_DEM, HIGHEST_LOWEST } |
Protected Member Functions | |
bool | initialize () |
void | setGSD (const double &meters_per_pixel) |
void | usage (ossimArgumentParser &ap) |
void | addArguments (ossimArgumentParser &ap) |
bool | loadPC () |
bool | loadDem () |
![]() | |
virtual void | setUsage (ossimArgumentParser &ap) |
Initializes the aurgument parser with expected parameters and options. More... | |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
enum ossimPointCloudTool::Operation | m_operation |
ossimRefPtr< ossimImageGeometry > | m_prodGeom |
ossimRefPtr< ossimPointCloudHandler > | m_pcHandler |
ossimRefPtr< ossimPointCloudImageHandler > | m_pciHandler |
ossimRefPtr< ossimPointCloudUtilityFilter > | m_pcuFilter |
double | m_gsd |
ossimFilename | m_lutFile |
ossimFilename | m_prodFile |
ossimFilename | m_demFile |
ossimFilename | m_pcFile |
![]() | |
ossimKeywordlist | m_kwl |
std::ostream * | m_consoleStream |
bool | m_helpRequested |
std::string | m_response |
Friends | |
class | ossimPointCloudUtilityFilter |
Utility class for generating point-cloud-derived image products.
Definition at line 26 of file ossimPointCloudTool.h.
|
protected |
Enumerator | |
---|---|
HIGHEST_DEM | |
LOWEST_DEM | |
HIGHEST_LOWEST |
Definition at line 47 of file ossimPointCloudTool.h.
ossimPointCloudTool::ossimPointCloudTool | ( | ) |
Definition at line 27 of file ossimPointCloudTool.cpp.
ossimPointCloudTool::~ossimPointCloudTool | ( | ) |
Definition at line 33 of file ossimPointCloudTool.cpp.
References m_pcHandler, m_pcuFilter, and m_prodGeom.
|
protected |
Definition at line 40 of file ossimPointCloudTool.cpp.
References ossimApplicationUsage::addCommandLineOption(), ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), and ossimApplicationUsage::setCommandLineUsage().
Referenced by usage().
|
overridevirtual |
Writes product to output file if applicable.
The product may also beAlways returns true since using exception on error.
Implements ossimTool.
Definition at line 234 of file ossimPointCloudTool.cpp.
References ossimKeywordlist::addFile(), ossimConnectableObject::connectMyInputTo(), ossimImageWriterFactoryRegistry::createWriter(), ossimString::empty(), ossimImageFileWriter::execute(), ossimRefPtr< T >::get(), ossimIndexToRgbLutFilter::initialize(), ossimImageWriterFactoryRegistry::instance(), ossimIndexToRgbLutFilter::loadState(), m_lutFile, m_pcuFilter, m_prodFile, ossimNotify(), ossimNotifyLevel_WARN, and ossimRefPtr< T >::valid().
|
overridevirtual |
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 95 of file ossimPointCloudTool.cpp.
References ossimArgumentParser::argc(), ossimString::contains(), HIGHEST_DEM, HIGHEST_LOWEST, initialize(), m_demFile, m_gsd, m_lutFile, m_operation, m_pcFile, m_prodFile, ossimArgumentParser::read(), ossimString::toDouble(), and usage().
|
protected |
Definition at line 159 of file ossimPointCloudTool.cpp.
References ossimString::empty(), loadDem(), loadPC(), m_demFile, m_pcFile, m_pcuFilter, ossimNotify(), ossimNotifyLevel_WARN, and ossimPointCloudUtilityFilter.
Referenced by initialize().
|
protected |
Definition at line 201 of file ossimPointCloudTool.cpp.
References ossimElevManager::addDatabase(), ossimElevManager::clear(), ossimRefPtr< T >::get(), ossimElevManager::instance(), m_demFile, ossim::nan(), ossimImageElevationDatabase::open(), ossimNotify(), ossimNotifyLevel_WARN, ossimElevManager::setDefaultHeightAboveEllipsoid(), and ossimElevManager::setUseGeoidIfNullFlag().
Referenced by initialize().
|
overridevirtual |
Reads processing params from JSON object provided.
If all good, the object is ready for subsequent call to execute().
Reimplemented from ossimTool.
Definition at line 154 of file ossimPointCloudTool.cpp.
|
protected |
Definition at line 176 of file ossimPointCloudTool.cpp.
References ossimRefPtr< T >::get(), ossimImageGeometry::getAsMapProjection(), ossimPointCloudImageHandler::getImageGeometry(), ossimPointCloudHandlerRegistry::instance(), m_gsd, m_pcFile, m_pcHandler, m_pciHandler, m_prodGeom, ossimPointCloudHandlerRegistry::open(), ossimNotify(), ossimNotifyLevel_WARN, ossimMapProjection::setMetersPerPixel(), ossimPointCloudImageHandler::setPointCloudHandler(), and ossimRefPtr< T >::valid().
Referenced by initialize().
|
overridevirtual |
Fetch product as JSON object when applicable Always returns true since using exception on error.
json | Returns non-empty object if valid response available. |
Reimplemented from ossimTool.
Definition at line 272 of file ossimPointCloudTool.cpp.
|
protected |
Definition at line 225 of file ossimPointCloudTool.cpp.
References ossimImageGeometry::getAsMapProjection(), m_gsd, m_prodGeom, and ossimMapProjection::setMetersPerPixel().
|
protected |
Definition at line 79 of file ossimPointCloudTool.cpp.
References addArguments(), ossimInit::addOptions(), ossimArgumentParser::getApplicationUsage(), ossimInit::instance(), ossimNotify(), ossimNotifyLevel_INFO, and ossimApplicationUsage::write().
Referenced by initialize().
|
friend |
Definition at line 28 of file ossimPointCloudTool.h.
Referenced by initialize().
|
protected |
Definition at line 55 of file ossimPointCloudTool.h.
Referenced by initialize(), and loadDem().
|
protected |
Definition at line 52 of file ossimPointCloudTool.h.
Referenced by initialize(), loadPC(), and setGSD().
|
protected |
Definition at line 53 of file ossimPointCloudTool.h.
Referenced by execute(), and initialize().
|
protected |
Referenced by ossimPointCloudUtilityFilter::getTile(), and initialize().
|
protected |
Definition at line 56 of file ossimPointCloudTool.h.
Referenced by initialize(), and loadPC().
|
protected |
Definition at line 49 of file ossimPointCloudTool.h.
Referenced by loadPC(), and ~ossimPointCloudTool().
|
protected |
Definition at line 50 of file ossimPointCloudTool.h.
Referenced by ossimPointCloudUtilityFilter::getTile(), and loadPC().
|
protected |
Definition at line 51 of file ossimPointCloudTool.h.
Referenced by execute(), initialize(), and ~ossimPointCloudTool().
|
protected |
Definition at line 54 of file ossimPointCloudTool.h.
Referenced by execute(), and initialize().
|
protected |
Definition at line 48 of file ossimPointCloudTool.h.
Referenced by ossimPointCloudUtilityFilter::getImageGeometry(), ossimPointCloudUtilityFilter::getTile(), loadPC(), setGSD(), and ~ossimPointCloudTool().