OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimProcessInterface.h>
Public Types | |
enum | ossimProcessStatus { PROCESS_STATUS_UNKNOWN = 0, PROCESS_STATUS_EXECUTING = 1, PROCESS_STATUS_ABORTED = 2, PROCESS_STATUS_ABORT_REQUEST = 3, PROCESS_STATUS_NOT_EXECUTING = 4 } |
Public Member Functions | |
ossimProcessInterface () | |
virtual | ~ossimProcessInterface () |
virtual ossimObject * | getObject ()=0 |
virtual const ossimObject * | getObject () const =0 |
virtual bool | execute ()=0 |
virtual void | abort () |
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) |
virtual ossimListenerManager * | getManager () |
void | enableEvents () |
void | disableEvents () |
void | setCurrentMessage (const ossimString &message) |
virtual std::ostream & | print (std::ostream &out) const |
Protected Attributes | |
double | thePercentComplete |
ossimProcessStatus | theProcessStatus |
ossimString | theMessage |
bool | theEventFlag |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimProcessInterface &data) |
Definition at line 21 of file ossimProcessInterface.h.
Enumerator | |
---|---|
PROCESS_STATUS_UNKNOWN | |
PROCESS_STATUS_EXECUTING | |
PROCESS_STATUS_ABORTED | |
PROCESS_STATUS_ABORT_REQUEST | |
PROCESS_STATUS_NOT_EXECUTING |
Definition at line 25 of file ossimProcessInterface.h.
ossimProcessInterface::ossimProcessInterface | ( | ) |
Definition at line 20 of file ossimProcessInterface.cpp.
|
virtual |
Definition at line 28 of file ossimProcessInterface.cpp.
|
virtual |
Reimplemented in ossimAtbController, ossimHistogramWriter, and ossimChipProcTool.
Definition at line 32 of file ossimProcessInterface.cpp.
References PROCESS_STATUS_ABORT_REQUEST, PROCESS_STATUS_EXECUTING, setProcessStatus(), and theProcessStatus.
Referenced by ossimChipProcTool::abort(), ossimHistogramWriter::abort(), and ossimChipperUtil::abort().
void ossimProcessInterface::disableEvents | ( | ) |
void ossimProcessInterface::enableEvents | ( | ) |
|
pure virtual |
Implemented in ossimImageFileWriter, ossimOverviewBuilderBase, ossimAtbController, ossimVertexExtractor, ossimChipProcTool, ossimTiffOverviewBuilder, ossimGdalOverviewBuilder, ossimMetadataFileWriter, ossimSubImageTool, ossimImageHistogramSource, ossimViewshedTool, ossimKakaduNitfOverviewBuilder, ossimHdf5Tool, ossimShorelineTool, ossimHistogramWriter, ossimHlzTool, ossimPotraceTool, ossimBandMergeTool, ossimEquationUtil, and ossimRegTool.
|
virtual |
Reimplemented in ossimChipProcTool, and ossimEquationUtil.
Definition at line 91 of file ossimProcessInterface.cpp.
References getObject(), and PTR_CAST.
Referenced by setCurrentMessage(), and setPercentComplete().
|
pure virtual |
Implemented in ossimTiffOverviewBuilder, ossimGdalOverviewBuilder, ossimKakaduNitfOverviewBuilder, ossimChipProcTool, ossimAtbController, ossimMetadataFileWriter, ossimImageFileWriter, ossimHistogramWriter, ossimVertexExtractor, ossimEquationUtil, and ossimImageHistogramSource.
Referenced by getManager(), setCurrentMessage(), and setPercentComplete().
|
pure virtual |
|
virtual |
Definition at line 71 of file ossimProcessInterface.cpp.
References thePercentComplete.
ossimProcessInterface::ossimProcessStatus ossimProcessInterface::getProcessStatus | ( | ) | const |
Definition at line 61 of file ossimProcessInterface.cpp.
References theProcessStatus.
bool ossimProcessInterface::isAborted | ( | ) | const |
Definition at line 50 of file ossimProcessInterface.cpp.
References PROCESS_STATUS_ABORTED, and theProcessStatus.
Referenced by ossimChipProcTool::execute(), needsAborting(), and ossimHistogramWriter::writeHistogram().
bool ossimProcessInterface::isAbortRequested | ( | ) | const |
Definition at line 45 of file ossimProcessInterface.cpp.
References PROCESS_STATUS_ABORT_REQUEST, and theProcessStatus.
Referenced by needsAborting().
bool ossimProcessInterface::isExecuting | ( | ) | const |
Definition at line 55 of file ossimProcessInterface.cpp.
References PROCESS_STATUS_ABORT_REQUEST, PROCESS_STATUS_EXECUTING, and theProcessStatus.
bool ossimProcessInterface::needsAborting | ( | ) | const |
Definition at line 40 of file ossimProcessInterface.cpp.
References isAborted(), and isAbortRequested().
Referenced by ossimImageHistogramSource::computeFastModeHistogram(), ossimImageHistogramSource::computeNormalModeHistogram(), ossimViewshedTool::computeViewshed(), ossimImageHistogramSource::execute(), ossimNitf20Writer::writeBlockBandSeparate(), ossimNitfWriter::writeBlockBandSeparate(), ossimNitf20Writer::writeBlockBandSequential(), ossimNitfWriter::writeBlockBandSequential(), ossimImageFileWriter::writeHistogramFile(), and ossimImageFileWriter::writeMetaDataFiles().
|
virtual |
Called by friend operator<< function, derived classes should override if something different is desired.
Reimplemented in ossimGdalOverviewBuilder, and ossimKakaduNitfOverviewBuilder.
Definition at line 121 of file ossimProcessInterface.cpp.
References PROCESS_STATUS_ABORTED, PROCESS_STATUS_EXECUTING, PROCESS_STATUS_NOT_EXECUTING, thePercentComplete, and theProcessStatus.
Referenced by operator<<().
void ossimProcessInterface::setCurrentMessage | ( | const ossimString & | message | ) |
Definition at line 106 of file ossimProcessInterface.cpp.
References ossimListenerManager::fireEvent(), getManager(), getObject(), theEventFlag, theMessage, and thePercentComplete.
Referenced by ossimHistogramWriter::processProgressEvent().
|
virtual |
Reimplemented in ossimImageFileWriter, ossimVertexExtractor, and ossimMetadataFileWriter.
Definition at line 76 of file ossimProcessInterface.cpp.
References ossimListenerManager::fireEvent(), getManager(), getObject(), theEventFlag, theMessage, and thePercentComplete.
Referenced by ossimImageHistogramSource::computeFastModeHistogram(), ossimHlzTool::computeHLZ(), ossimImageHistogramSource::computeNormalModeHistogram(), ossimHistogramWriter::processProgressEvent(), ossimMetadataFileWriter::setPercentComplete(), ossimVertexExtractor::setPercentComplete(), and ossimImageFileWriter::setPercentComplete().
|
virtual |
Definition at line 66 of file ossimProcessInterface.cpp.
References theProcessStatus.
Referenced by abort(), ossimHistogramWriter::abort(), and ossimImageHistogramSource::execute().
|
friend |
Definition at line 141 of file ossimProcessInterface.cpp.
|
protected |
Definition at line 81 of file ossimProcessInterface.h.
Referenced by disableEvents(), enableEvents(), setCurrentMessage(), and setPercentComplete().
|
protected |
Definition at line 80 of file ossimProcessInterface.h.
Referenced by setCurrentMessage(), and setPercentComplete().
|
protected |
Definition at line 78 of file ossimProcessInterface.h.
Referenced by getPercentComplete(), print(), setCurrentMessage(), and setPercentComplete().
|
protected |
Definition at line 79 of file ossimProcessInterface.h.
Referenced by abort(), getProcessStatus(), isAborted(), isAbortRequested(), isExecuting(), print(), and setProcessStatus().