OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimChipProcTool.h>
Public Member Functions | |
ossimChipProcTool () | |
default constructor More... | |
virtual | ~ossimChipProcTool () |
virtual destructor More... | |
virtual void | setUsage (ossimArgumentParser &ap) |
Initializes the aurgument parser with expected parameters and options. More... | |
virtual void | clear () |
Disconnects and clears the dem and image layers. More... | |
virtual bool | initialize (ossimArgumentParser &ap) |
Initial method to be ran prior to execute. More... | |
virtual void | initialize (const ossimKeywordlist &kwl) |
This method is responsible for completely setting up the full processing chain according to the specifications given in the kwl passed in. More... | |
virtual bool | execute () |
Performs the actual product write. More... | |
virtual void | abort () |
virtual bool | isChipProcessor () const |
Overrides base class implementation to indicate this class supports getChip() calls. More... | |
virtual ossimListenerManager * | getManager () |
virtual ossimObject * | getObject () |
virtual const ossimObject * | getObject () const |
virtual ossimRefPtr< ossimImageData > | getChip (const ossimIrect &img_rect) |
The meat and potatos of this class. More... | |
virtual ossimRefPtr< ossimImageData > | getChip (const ossimGrect &gnd_rect) |
ossimRefPtr< ossimImageData > | getChip (const ossimDrect &map_bounding_rect, const ossimDpt &gsd) |
ossimRefPtr< ossimImageData > | getChip () |
Get chip method that assumes pre-initialized state. More... | |
const ossimFilename & | getProductFilename () const |
![]() | |
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 | 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... | |
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 () |
![]() | |
ossimProcessInterface () | |
virtual | ~ossimProcessInterface () |
bool | needsAborting () const |
bool | isAbortRequested () const |
bool | isAborted () const |
bool | isExecuting () const |
ossimProcessStatus | getProcessStatus () const |
virtual void | setProcessStatus (ossimProcessStatus processStatus) |
virtual double | getPercentComplete () const |
virtual void | setPercentComplete (double percentComplete) |
void | enableEvents () |
void | disableEvents () |
void | setCurrentMessage (const ossimString &message) |
virtual std::ostream & | print (std::ostream &out) const |
![]() | |
ossimListenerManager () | |
virtual | ~ossimListenerManager () |
virtual void | fireEvent (ossimEvent &event) |
virtual bool | addListener (ossimListener *listener) |
virtual bool | removeListener (ossimListener *listener) |
virtual bool | findListener (ossimListener *listener) |
Protected Member Functions | |
void | processRemainingArgs (ossimArgumentParser &ap) |
Intended to be called after derived class has picked off its own options from the parser, and arguments remain (such as input and output filenames). More... | |
virtual void | initProcessingChain ()=0 |
Derived classes initialize their custom chains here. More... | |
virtual void | finalizeChain () |
Called after initProcessingChain() to append common items to the processing chain. More... | |
virtual void | loadImageFiles () |
Creates chains for image entries associated with specified keyword. More... | |
virtual void | loadDemFiles () |
Loads all DEM files specified in master KWL into the elev manager's database. More... | |
ossimRefPtr< ossimSingleImageChain > | createInputChain (const ossimFilename &image_file, ossim_uint32 entry_index=0) |
Creates the ossimSingleImageChain from image filename and populates the chain with resampler and product output projection on view-side of resampler's IVT. More... | |
void | createOutputProjection () |
Creates the output or view projection. More... | |
ossimRefPtr< ossimMapProjection > | newIdentityProjection () |
Sets the single image chain for identity operations view to a ossimImageViewAffineTransform. More... | |
ossimRefPtr< ossimMapProjection > | newUtmProjection () |
Convenience method to get a utm projection. More... | |
virtual void | initializeProjectionGsd () |
Initializes the projection gsd. More... | |
virtual void | initializeAOI () |
Initializes m_aoiViewRect with the output area of interest as specified in master KWL. More... | |
bool | getProjectionOrigin (ossimGpt &gpt) |
Reads the KWL for origin latitude and central meridian. More... | |
ossimRefPtr< ossimImageFileWriter > | newWriter () |
Creates a new writer. More... | |
void | propagateGeometryToChains () |
Loops through all chains and sets the output projection. More... | |
ossimRefPtr< ossimImageSource > | combineLayers (std::vector< ossimRefPtr< ossimSingleImageChain > > &layers) const |
When multiple input sources are present, this method instantiates a combiner and adds inputs. More... | |
void | computeAdjustedViewFromGrect () |
Initializes m_aoiViewRect given m_aoiGroundRect. More... | |
void | setAoiToInputs () |
Assigns the AOI to be the bounding rect of the union of all inputs. More... | |
void | getBandList (ossim_uint32 image_idx, std::vector< ossim_uint32 > &bandList) const |
Gets the band list if BANDS keyword is set. More... | |
void | setReaderProps (ossimImageHandler *ih) const |
Passes reader properties to single image handler if any. More... | |
ossimChipProcTool (const ossimChipProcTool &obj) | |
Hidden from use copy constructor. More... | |
const ossimChipProcTool & | operator= (const ossimChipProcTool &) |
Hidden from use assignment operator. More... | |
ossimRefPtr< ossimGeoPolygon > | createClipPolygon () const |
void | findCenterGpt (ossimGpt &gpt) |
Tries to determine the AOI center point based on KWL entries, else returns NaNs in gpt. More... | |
ossimRefPtr< ossimImageSource > | mosaicDemSources () |
Some utilities need to work on DEMs as images. More... | |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimListenerManager (const ossimListenerManager &rhs) | |
Additional Inherited Members | |
![]() | |
enum | ossimProcessStatus { PROCESS_STATUS_UNKNOWN = 0, PROCESS_STATUS_EXECUTING = 1, PROCESS_STATUS_ABORTED = 2, PROCESS_STATUS_ABORT_REQUEST = 3, PROCESS_STATUS_NOT_EXECUTING = 4 } |
Definition at line 42 of file ossimChipProcTool.h.
ossimChipProcTool::ossimChipProcTool | ( | ) |
default constructor
Definition at line 69 of file ossimChipProcTool.cpp.
References m_geom, m_gsd, ossimTool::m_kwl, m_procChain, ossimDpt::makeNan(), and ossimKeywordlist::setExpandEnvVarsFlag().
|
virtual |
virtual destructor
Definition at line 81 of file ossimChipProcTool.cpp.
References clear().
|
protected |
Hidden from use copy constructor.
Definition at line 62 of file ossimChipProcTool.cpp.
|
virtual |
Reimplemented from ossimProcessInterface.
Definition at line 444 of file ossimChipProcTool.cpp.
References ossimProcessInterface::abort(), m_writer, and ossimRefPtr< T >::valid().
|
virtual |
Disconnects and clears the dem and image layers.
Reimplemented from ossimTool.
Reimplemented in ossimViewshedTool.
Definition at line 86 of file ossimChipProcTool.cpp.
References m_geom, m_gsd, m_imgLayers, m_needCutRect, m_procChain, m_writer, and ossimDpt::makeNan().
Referenced by ossimViewshedTool::clear(), ~ossimChipProcTool(), and ossimHillshadeTool::~ossimHillshadeTool().
|
protected |
When multiple input sources are present, this method instantiates a combiner and adds inputs.
Definition at line 1429 of file ossimChipProcTool.cpp.
References ossimConnectableObject::connectMyInputTo(), and ossimRefPtr< T >::get().
Referenced by ossimHillshadeTool::initProcessingChain(), ossimSlopeTool::initProcessingChain(), ossimHdf5Tool::initProcessingChain(), ossimHlzTool::initProcessingChain(), and ossimViewshedTool::initProcessingChain().
|
protected |
Initializes m_aoiViewRect given m_aoiGroundRect.
Definition at line 1265 of file ossimChipProcTool.cpp.
References ossimImageChain::getBoundingRect(), ossimImageGeometry::getDegreesPerPixel(), ossimGrect::hasNans(), ossimIrect::hasNans(), ossimGpt::lat, ossimGpt::lon, ossimGrect::lr(), m_aoiGroundRect, m_aoiViewRect, m_geom, m_procChain, ossimIrect::makeNan(), ossimGrect::ul(), ossimImageGeometry::worldToLocal(), ossimDpt::x, and ossimDpt::y.
Referenced by getChip().
|
protected |
|
protected |
Creates the ossimSingleImageChain from image filename and populates the chain with resampler and product output projection on view-side of resampler's IVT.
file | File to open. |
entryIndex | Entry to open. |
Definition at line 597 of file ossimChipProcTool.cpp.
References ossimImageChain::add(), ossimSingleImageChain::addCache(), ossimSingleImageChain::addResampler(), ossimKeywordlist::findKey(), ossimRefPtr< T >::get(), ossimSingleImageChain::getImageHandler(), ossimImageChain::getOutputScalarType(), ossimTool::m_kwl, m_procChain, m_productScalarType, ossimSingleImageChain::open(), OSSIM_SCALAR_UNKNOWN, ossimImageHandler::setCurrentEntry(), ossimScalarRemapper::setOutputScalarType(), and setReaderProps().
Referenced by loadImageFiles(), ossimHlzTool::MaskSource::MaskSource(), and mosaicDemSources().
|
protected |
Creates the output or view projection.
Definition at line 688 of file ossimChipProcTool.cpp.
References ossimKeywordlist::findKey(), ossimTool::m_kwl, and ossimKeywordNames::PROJECTION_KW.
|
virtual |
Performs the actual product write.
Implements ossimProcessInterface.
Reimplemented in ossimSubImageTool, ossimViewshedTool, ossimHdf5Tool, ossimShorelineTool, ossimHlzTool, ossimPotraceTool, ossimBandMergeTool, and ossimRegTool.
Definition at line 394 of file ossimChipProcTool.cpp.
References ossimImageFileWriter::addListener(), ossimConnectableObject::connectMyInputTo(), ossimImageFileWriter::execute(), ossimRefPtr< T >::get(), ossimErrorStatusInterface::getErrorStatus(), ossimImageGeometry::getImageSize(), ossimIpt::hasNans(), ossimProcessInterface::isAborted(), m_aoiViewRect, m_geom, ossimTool::m_helpRequested, m_procChain, m_productFilename, m_writer, newWriter(), ossimErrorCodes::OSSIM_OK, ossimNotify(), ossimNotifyLevel_INFO, ossimImageFileWriter::removeListener(), ossimImageFileWriter::setAreaOfInterest(), and ossimRefPtr< T >::valid().
Referenced by ossimShorelineTool::doThreshold(), ossimBandMergeTool::execute(), ossimHlzTool::execute(), ossimShorelineTool::execute(), ossimHdf5Tool::execute(), ossimViewshedTool::execute(), and ossimSubImageTool::execute().
|
protectedvirtual |
Called after initProcessingChain() to append common items to the processing chain.
Sets up the AOI box cutter filter and related stuff and initializes area of interest(aoi). The filter is appended to the current m_procChain. Derived class should override if not applicable to its processing chain.
Reimplemented in ossimPotraceTool, and ossimRegTool.
Definition at line 354 of file ossimChipProcTool.cpp.
References ossimKeywordlist::findKey(), and ossimTool::m_kwl.
Referenced by ossimSubImageTool::initialize().
|
protected |
Tries to determine the AOI center point based on KWL entries, else returns NaNs in gpt.
Needed for bootstrapping the GSD computation when information in KWL is sparse
Definition at line 1166 of file ossimChipProcTool.cpp.
References ossimKeywordlist::findKey(), ossimGpt::hgt, and ossimTool::m_kwl.
|
protected |
Gets the band list if BANDS keyword is set.
NOTE: BANDS keyword values are ONE based. bandList values are ZERO based.
input | image index for which the band selection applies |
bandList | List initialized by this. |
Definition at line 1351 of file ossimChipProcTool.cpp.
References ossimKeywordNames::BANDS_KW, ossimString::empty(), ossimKeywordlist::find(), ossimKeywordlist::findKey(), ossimKeywordNames::IMAGE_FILE_KW, ossimTool::m_kwl, ossimString::size(), and ossimString::split().
Referenced by loadImageFiles().
|
virtual |
The meat and potatos of this class.
Performs an execute on specified rect.
Reimplemented in ossimViewshedTool, ossimShorelineTool, and ossimHlzTool.
Definition at line 493 of file ossimChipProcTool.cpp.
References ossimImageChain::add(), ossimRefPtr< T >::get(), ossimImageChain::getTile(), m_aoiViewRect, m_cutRectFilter, m_geom, m_procChain, ossimRectangleCutFilter::OSSIM_RECTANGLE_NULL_OUTSIDE, ossimRectangleCutFilter::setCutType(), ossimImageGeometry::setImageSize(), ossimRectangleCutFilter::setRectangle(), ossimIrect::size(), and ossimRefPtr< T >::valid().
|
virtual |
Definition at line 475 of file ossimChipProcTool.cpp.
References computeAdjustedViewFromGrect(), getChip(), ossimGrect::hasNans(), m_aoiGroundRect, m_aoiViewRect, m_geom, ossimNotify(), ossimNotifyLevel_INFO, and ossimRefPtr< T >::valid().
ossimRefPtr< ossimImageData > ossimChipProcTool::getChip | ( | const ossimDrect & | map_bounding_rect, |
const ossimDpt & | gsd | ||
) |
Definition at line 452 of file ossimChipProcTool.cpp.
References ossimImageGeometry::getAsMapProjection(), getChip(), ossimMapProjection::inverse(), ossimDrect::lr(), m_aoiGroundRect, m_aoiViewRect, m_geom, ossimImageGeometry::setImageSize(), ossimMapProjection::setMetersPerPixel(), ossimIrect::size(), ossimDrect::ul(), ossimRefPtr< T >::valid(), and ossimImageGeometry::worldToLocal().
ossimRefPtr< ossimImageData > ossimChipProcTool::getChip | ( | ) |
Get chip method that assumes pre-initialized state.
Definition at line 515 of file ossimChipProcTool.cpp.
References ossimImageChain::getTile(), m_aoiViewRect, m_procChain, and ossimRefPtr< T >::valid().
Referenced by ossimHlzTool::execute(), and getChip().
|
virtual |
Reimplemented from ossimProcessInterface.
Definition at line 525 of file ossimChipProcTool.cpp.
|
virtual |
Implements ossimProcessInterface.
Definition at line 530 of file ossimChipProcTool.cpp.
|
virtual |
Implements ossimProcessInterface.
Definition at line 535 of file ossimChipProcTool.cpp.
|
inline |
Definition at line 108 of file ossimChipProcTool.h.
Referenced by ossimToolServer::runCommand().
|
protected |
Reads the KWL for origin latitude and central meridian.
gpt | Point to initialize. Set to 0 unless lat or lon specified in KWL |
Definition at line 1135 of file ossimChipProcTool.cpp.
References ossimKeywordNames::CENTRAL_MERIDIAN_KW, ossimKeywordlist::find(), ossimGpt::lat, ossimGpt::lon, m_geoScaled, ossimTool::m_kwl, ossimKeywordNames::ORIGIN_LATITUDE_KW, ossimString::size(), and ossimString::toFloat64().
Referenced by newUtmProjection().
|
virtual |
Initial method to be ran prior to execute.
Intended for command-line app usage.
ap | Arg parser to initialize from. |
Reimplemented from ossimTool.
Reimplemented in ossimShorelineTool, ossimHdf5Tool, ossimHillshadeTool, ossimSubImageTool, ossimHlzTool, ossimViewshedTool, ossimOrthoTool, ossimSlopeTool, ossimPotraceTool, ossimBandMergeTool, and ossimRegTool.
Definition at line 97 of file ossimChipProcTool.cpp.
References ossimKeywordlist::addFile(), ossimKeywordlist::addPair(), ossimTool::initialize(), ossimTool::m_helpRequested, ossimTool::m_kwl, ossimNotify(), ossimNotifyLevel_NOTICE, ossimArgumentParser::read(), and ossimArgumentParser::writeErrorMessages().
Referenced by ossimBandMergeTool::initialize(), ossimRegTool::initialize(), ossimSlopeTool::initialize(), ossimOrthoTool::initialize(), ossimHlzTool::initialize(), ossimViewshedTool::initialize(), ossimHillshadeTool::initialize(), ossimHdf5Tool::initialize(), ossimShorelineTool::initialize(), and processRemainingArgs().
|
virtual |
This method is responsible for completely setting up the full processing chain according to the specifications given in the kwl passed in.
If the utility is run from a command line, the initialize(ossimArgumentParser) will assign the member master KWL and pass it to this method. Web service calls will fill a KWL and pass it.
This base class implementation should be called by the derived class implementation (assuming the derived class needs to pull some parameters out of the KWL before the chains are set up.
This method will instantiate the output projection and define the output bounding rect and product size in pixels. The processing chain (stored in m_procChain) will be completely initialized and ready for calls to getTile(). Then either getChip() or execute() can be called depending on usage to fetch product.
Reimplemented from ossimTool.
Reimplemented in ossimHdf5Tool, ossimSubImageTool, ossimShorelineTool, ossimOrthoTool, ossimSlopeTool, ossimViewshedTool, ossimHlzTool, ossimPotraceTool, ossimBandMergeTool, and ossimRegTool.
Definition at line 321 of file ossimChipProcTool.cpp.
References ossimKeywordlist::addList(), ossimKeywordlist::clear(), ossimKeywordlist::findKey(), ossimScalarTypeLut::instance(), ossimTool::m_helpRequested, ossimTool::m_kwl, and m_productScalarType.
|
protectedvirtual |
Initializes m_aoiViewRect with the output area of interest as specified in master KWL.
Initialization will either come from user defined cut options or the source bounding rect with user options taking precidence.
Reimplemented in ossimViewshedTool.
Definition at line 931 of file ossimChipProcTool.cpp.
References ossimKeywordlist::hasKey(), m_aoiGroundRect, m_aoiViewRect, ossimTool::m_kwl, ossimGrect::makeNan(), and ossimIrect::makeNan().
Referenced by ossimViewshedTool::initializeAOI().
|
protectedvirtual |
Initializes the projection gsd.
This loops through all chains to find the minimum gsd.
Reimplemented in ossimViewshedTool.
Definition at line 856 of file ossimChipProcTool.cpp.
References ossimKeywordlist::findKey(), ossimImageGeometry::getProjection(), m_geom, and ossimTool::m_kwl.
Referenced by ossimViewshedTool::initializeProjectionGsd().
|
protectedpure virtual |
Derived classes initialize their custom chains here.
Implemented in ossimViewshedTool, ossimSubImageTool, ossimHlzTool, ossimHdf5Tool, ossimShorelineTool, ossimOrthoTool, ossimSlopeTool, ossimHillshadeTool, ossimPotraceTool, ossimBandMergeTool, and ossimRegTool.
|
inlinevirtual |
Overrides base class implementation to indicate this class supports getChip() calls.
Can be done with dunamic cast and pointer test, but not sure how that is supported in SWIG (OLK 11/2015).
Reimplemented from ossimTool.
Definition at line 90 of file ossimChipProcTool.h.
|
protectedvirtual |
Loads all DEM files specified in master KWL into the elev manager's database.
Definition at line 648 of file ossimChipProcTool.cpp.
References ossimKeywordNames::ELEVATION_SOURCE_KW, ossimString::empty(), ossimKeywordlist::findKey(), ossimElevManager::instance(), ossimFilename::isReadable(), ossimElevManager::loadElevationPath(), m_demSources, ossimTool::m_kwl, and ossimKeywordlist::numberOf().
|
protectedvirtual |
Creates chains for image entries associated with specified keyword.
This is usually the input image sources but could also be used for reading list of color sources.
Reimplemented in ossimHdf5Tool.
Definition at line 540 of file ossimChipProcTool.cpp.
References createInputChain(), ossimString::empty(), ossimKeywordNames::ENTRY_KW, ossimKeywordlist::find(), ossimKeywordlist::findKey(), getBandList(), ossimKeywordNames::IMAGE_FILE_KW, m_imgLayers, ossimTool::m_kwl, ossimKeywordlist::numberOf(), ossimSingleImageChain::setBandSelection(), ossimString::toUInt32(), and ossimRefPtr< T >::valid().
|
protected |
Some utilities need to work on DEMs as images.
This method determines which DEMs cover the AOI and creates an image mosaic with the DEMS serving as pixel sources. Throws exceptions.
Definition at line 1384 of file ossimChipProcTool.cpp.
References createInputChain(), ossimRefPtr< T >::get(), ossimElevManager::getCellsForBounds(), ossimSingleImageChain::getImageHandler(), ossimSingleImageChain::getImageRenderer(), ossimElevManager::instance(), m_aoiGroundRect, m_demSources, m_geom, and ossimRefPtr< T >::valid().
Referenced by ossimHillshadeTool::initProcessingChain(), and ossimHlzTool::initProcessingChain().
|
protected |
Sets the single image chain for identity operations view to a ossimImageViewAffineTransform.
This will have a rotation if up is up is selected. Also set m_outputProjection to the input's for area of interest.
Definition at line 751 of file ossimChipProcTool.cpp.
References ossimProjection::dup(), ossimRefPtr< T >::get(), ossimUtmProjection::getHemisphere(), ossimImageHandler::getImageGeometry(), ossimSingleImageChain::getImageHandler(), ossimImageGeometry::getProjection(), ossimUtmProjection::getZone(), m_demSources, m_imgLayers, m_projIsIdentity, ossimImageGeometry::open(), ossimUtmProjection::setHemisphere(), ossimUtmProjection::setZone(), and ossimRefPtr< T >::valid().
|
protected |
Convenience method to get a utm projection.
Definition at line 812 of file ossimChipProcTool.cpp.
References ossimKeywordlist::findKey(), ossimRefPtr< T >::get(), getProjectionOrigin(), ossimKeywordNames::HEMISPHERE_KW, ossimTool::m_kwl, ossimUtmProjection::setHemisphere(), ossimUtmProjection::setZone(), ossimString::size(), ossimString::string(), ossimString::toUInt32(), ossimString::upcase(), and ossimKeywordNames::ZONE_KW.
|
protected |
Creates a new writer.
This will use the writer option (-w or –writer), if present; else, it will be derived from the output file extention. This will also set any writer properties passed in.
Definition at line 1450 of file ossimChipProcTool.cpp.
References ossimKeywordlist::findKey(), and ossimTool::m_kwl.
Referenced by execute().
|
inlineprotected |
Hidden from use assignment operator.
Definition at line 207 of file ossimChipProcTool.h.
|
protected |
Intended to be called after derived class has picked off its own options from the parser, and arguments remain (such as input and output filenames).
Definition at line 259 of file ossimChipProcTool.cpp.
References ossimKeywordlist::add(), ossimArgumentParser::argc(), ossimString::chars(), ossimArgumentParser::errors(), ossimKeywordlist::find(), ossimTool::getClassName(), ossimKeywordNames::IMAGE_FILE_KW, initialize(), ossimTool::m_kwl, ossimNotify(), ossimNotifyLevel_NOTICE, ossimKeywordNames::OUTPUT_FILE_KW, ossimArgumentParser::read(), ossimArgumentParser::reportRemainingOptionsAsUnrecognized(), ossimFilename::setExtension(), ossimKeywordlist::write(), and ossimArgumentParser::writeErrorMessages().
Referenced by ossimSlopeTool::initialize(), and ossimSubImageTool::initialize().
|
protected |
Loops through all chains and sets the output projection.
Definition at line 1300 of file ossimChipProcTool.cpp.
References ossimRefPtr< T >::get(), m_geom, m_imgLayers, ossimConnectableObject::propagateEventToOutputs(), ossimImageRenderer::setView(), and ossimRefPtr< T >::valid().
|
protected |
Assigns the AOI to be the bounding rect of the union of all inputs.
Definition at line 1209 of file ossimChipProcTool.cpp.
References ossimGrect::clipToRect(), ossimGrect::expandToInclude(), ossimImageGeometry::getBoundingGroundRect(), ossimGrect::hasNans(), m_aoiGroundRect, m_demSources, m_imgLayers, ossimGrect::makeNan(), ossimImageGeometry::open(), ossimNotify(), ossimNotifyLevel_WARN, and ossimRefPtr< T >::valid().
|
protected |
Passes reader properties to single image handler if any.
ih | Image handler to set properties on. |
Definition at line 1325 of file ossimChipProcTool.cpp.
References ossimTool::m_kwl, and ossimKeywordlist::numberOf().
Referenced by createInputChain().
|
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.
Reimplemented in ossimShorelineTool, ossimHillshadeTool, ossimHlzTool, ossimHdf5Tool, ossimViewshedTool, ossimSubImageTool, ossimOrthoTool, ossimSlopeTool, ossimPotraceTool, ossimBandMergeTool, and ossimRegTool.
Definition at line 1520 of file ossimChipProcTool.cpp.
References ossimApplicationUsage::addCommandLineOption(), ossimInit::addOptions(), ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), ossimInit::instance(), and ossimTool::setUsage().
Referenced by ossimBandMergeTool::setUsage(), ossimOrthoTool::setUsage(), ossimSlopeTool::setUsage(), ossimViewshedTool::setUsage(), ossimHdf5Tool::setUsage(), ossimHlzTool::setUsage(), ossimHillshadeTool::setUsage(), and ossimShorelineTool::setUsage().
|
protected |
Definition at line 223 of file ossimChipProcTool.h.
Referenced by computeAdjustedViewFromGrect(), ossimViewshedTool::computeRadius(), ossimHlzTool::getChip(), ossimShorelineTool::getChip(), ossimViewshedTool::getChip(), getChip(), ossimViewshedTool::initializeAOI(), initializeAOI(), ossimSlopeTool::initProcessingChain(), ossimShorelineTool::initProcessingChain(), ossimHlzTool::initProcessingChain(), ossimViewshedTool::initProcessingChain(), mosaicDemSources(), ossimViewshedTool::optimizeFOV(), setAoiToInputs(), and ossimViewshedTool::test().
|
protected |
Definition at line 222 of file ossimChipProcTool.h.
Referenced by computeAdjustedViewFromGrect(), ossimHlzTool::computeHLZ(), ossimViewshedTool::computeRadius(), ossimViewshedTool::computeViewshed(), RadialProcessor::doRadial(), ossimHlzTool::execute(), ossimSubImageTool::execute(), execute(), ossimHlzTool::getChip(), ossimShorelineTool::getChip(), ossimViewshedTool::getChip(), getChip(), ossimSubImageTool::initialize(), initializeAOI(), ossimShorelineTool::initProcessingChain(), ossimHlzTool::initProcessingChain(), ossimViewshedTool::initProcessingChain(), ossimViewshedTool::paintReticle(), and ossimHlzTool::writeSlopeImage().
|
protected |
Definition at line 228 of file ossimChipProcTool.h.
Referenced by getChip().
|
protected |
Definition at line 225 of file ossimChipProcTool.h.
Referenced by ossimSlopeTool::initProcessingChain(), loadDemFiles(), mosaicDemSources(), newIdentityProjection(), and setAoiToInputs().
|
protected |
Definition at line 221 of file ossimChipProcTool.h.
Referenced by clear(), computeAdjustedViewFromGrect(), RadialProcessor::doRadial(), ossimPotraceTool::execute(), ossimSubImageTool::execute(), execute(), ossimHlzTool::getChip(), ossimShorelineTool::getChip(), ossimViewshedTool::getChip(), getChip(), ossimViewshedTool::initializeProjectionGsd(), initializeProjectionGsd(), ossimHlzTool::initProcessingChain(), ossimViewshedTool::initProcessingChain(), mosaicDemSources(), ossimChipProcTool(), ossimViewshedTool::paintReticle(), propagateGeometryToChains(), ossimPotraceTool::transformLineStrings(), and ossimPotraceTool::transformPolygons().
|
protected |
Definition at line 231 of file ossimChipProcTool.h.
Referenced by getProjectionOrigin(), and ossimViewshedTool::initializeProjectionGsd().
|
protected |
Definition at line 230 of file ossimChipProcTool.h.
Referenced by clear(), ossimHlzTool::computeHLZ(), ossimViewshedTool::initializeProjectionGsd(), ossimViewshedTool::initProcessingChain(), and ossimChipProcTool().
|
protected |
Definition at line 224 of file ossimChipProcTool.h.
Referenced by clear(), ossimPotraceTool::execute(), ossimShorelineTool::execute(), ossimHdf5Tool::execute(), ossimBandMergeTool::initProcessingChain(), ossimHillshadeTool::initProcessingChain(), ossimSlopeTool::initProcessingChain(), ossimShorelineTool::initProcessingChain(), ossimHdf5Tool::initProcessingChain(), ossimHlzTool::initProcessingChain(), ossimViewshedTool::initProcessingChain(), ossimHdf5Tool::loadImageFiles(), loadImageFiles(), newIdentityProjection(), propagateGeometryToChains(), and setAoiToInputs().
|
protected |
Definition at line 234 of file ossimChipProcTool.h.
Referenced by clear(), and ossimSubImageTool::initialize().
|
protected |
Definition at line 227 of file ossimChipProcTool.h.
Referenced by ossimShorelineTool::autoComputeThreshold(), clear(), computeAdjustedViewFromGrect(), ossimViewshedTool::computeViewshed(), createInputChain(), ossimShorelineTool::doThreshold(), ossimShorelineTool::execute(), ossimSubImageTool::execute(), execute(), ossimHlzTool::getChip(), ossimShorelineTool::getChip(), ossimViewshedTool::getChip(), getChip(), ossimSubImageTool::initialize(), ossimBandMergeTool::initProcessingChain(), ossimHillshadeTool::initProcessingChain(), ossimSlopeTool::initProcessingChain(), ossimShorelineTool::initProcessingChain(), ossimHdf5Tool::initProcessingChain(), ossimHlzTool::initProcessingChain(), ossimViewshedTool::initProcessingChain(), ossimHdf5Tool::loadImageFiles(), and ossimChipProcTool().
|
protected |
Definition at line 232 of file ossimChipProcTool.h.
Referenced by ossimShorelineTool::doThreshold(), ossimShorelineTool::execute(), ossimHdf5Tool::execute(), ossimSubImageTool::execute(), execute(), ossimSubImageTool::initialize(), and ossimPotraceTool::writeGeoJSON().
|
protected |
Definition at line 233 of file ossimChipProcTool.h.
Referenced by createInputChain(), initialize(), and ossimHdf5Tool::loadImageFiles().
|
protected |
Definition at line 229 of file ossimChipProcTool.h.
Referenced by newIdentityProjection().
|
mutableprotected |
Definition at line 226 of file ossimChipProcTool.h.