OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
This class defines an abstract Handler which all image handlers(loaders) should derive from. More...
#include <ossimImageHandler.h>
Public Types | |
enum | ossimImageHandlerOverviewCompressionType { OSSIM_OVERVIEW_COMPRESSION_NONE = 0, OSSIM_OVERVIEW_COMPRESSION_JPEG, OSSIM_OVERVIEW_COMPRESSION_LZW, OSSIM_OVERVIEW_COMPRESSION_DEFLATE, OSSIM_OVERVIEW_COMPRESSION_PACKBITS } |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
Public Member Functions | |
ossimImageHandler () | |
Constructor (default): More... | |
virtual | ~ossimImageHandler () |
Destructor: Derived classes should implement. More... | |
virtual void | initialize () |
initialize Does nothing in this class. More... | |
virtual bool | openOverview () |
Searches for an overview. More... | |
virtual bool | openOverview (const ossimFilename &overview_file) |
Calls closeOverview(), then attempts to open the overview_file. More... | |
virtual void | closeOverview () |
If theOverview is initialized it will be deleted and set to NULL. More... | |
virtual const ossimImageHandler * | getOverview () const |
virtual bool | hasOverviews () const |
virtual ossimFilename | createDefaultOverviewFilename () const |
virtual ossimFilename | createDefaultGeometryFilename () const |
virtual ossimFilename | createDefaultMetadataFilename () const |
virtual ossimFilename | createDefaultHistogramFilename () const |
virtual ossimFilename | createDefaultValidVerticesFilename () const |
virtual bool | writeValidImageVertices (const std::vector< ossimIpt > &vertices, const ossimFilename &file=ossimFilename("")) |
Outputs vertices to file and updates the internal vertex array variable "theValidImageVertices". More... | |
virtual bool | openValidVertices (const ossimFilename &vertices_file) |
Opens the valid image vertices file and sets theValidImageVerticesFile variable. More... | |
virtual bool | openValidVertices () |
Creates vertices file name based on image, then tries to open. More... | |
virtual bool | open ()=0 |
Pure virtual open. More... | |
virtual bool | open (const ossimFilename &imageFile, ossim_uint32 entryIndex) |
Opens the image file. More... | |
virtual bool | open (const ossimFilename &imageFile) |
virtual bool | open (std::shared_ptr< ossim::ImageHandlerState > state) |
virtual void | close () |
Deletes the overview and clears the valid image vertices. More... | |
virtual bool | isOpen () const =0 |
Derived classes must implement this method to be concrete. More... | |
virtual bool | buildHistogram (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL) |
Build a histogram for image file. More... | |
virtual bool | buildAllHistograms (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL) |
Build a histograms for all image entries. More... | |
virtual bool | buildOverview (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false) |
Will build over file for theImageFile. More... | |
virtual bool | buildAllOverviews (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false) |
Will build over file for all image entries. More... | |
virtual bool | buildOverview (const ossimFilename &filename, ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false) |
Will build an over file for filename. More... | |
ossimRefPtr< ossimMultiResLevelHistogram > | getImageHistogram () const |
Fetches the current entry image's histogram. More... | |
virtual ossimRefPtr< ossimImageGeometry > | getImageGeometry () |
Returns the image geometry object associated with this tile source or NULL if non defined. More... | |
virtual void | setImageGeometry (ossimImageGeometry *geom) |
Sets the image geometry object. More... | |
virtual void | saveImageGeometry () const |
Saves the image geometry to a file that will be made based on the image file name. More... | |
virtual void | saveImageGeometry (const ossimFilename &geometry_file) const |
Saves the image geometry to a file that will be made based on the image file name. More... | |
virtual ossim_uint32 | getNumberOfLines (ossim_uint32 resLevel=0) const =0 |
Pure virtual, derived classes must implement. More... | |
virtual ossim_uint32 | getNumberOfSamples (ossim_uint32 resLevel=0) const =0 |
Pure virtual, derived classes must implement. More... | |
virtual ossimIrect | getImageRectangle (ossim_uint32 resLevel=0) const |
Returns zero-based bounding rectangle of the image. More... | |
virtual ossimIrect | getBoundingRect (ossim_uint32 resLevel=0) const |
Returns zero-based bounding rectangle of the image. More... | |
virtual void | getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const |
virtual void | getDecimationFactors (vector< ossimDpt > &decimations) const |
This returns all decimation for all levels. More... | |
virtual ossim_uint32 | getNumberOfDecimationLevels () const |
This returns the total number of decimation levels. More... | |
virtual ossim_uint32 | getNumberOfReducedResSets () const |
This method is obsolete. More... | |
virtual void | setFilename (const ossimFilename &filename) |
Sets the filename. More... | |
virtual const ossimFilename & | getFilename () const |
Returns the filename. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
Method to save the state of an object to a keyword list. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Method to the load (recreate) the state of an object from a keyword list. More... | |
virtual bool | isValidRLevel (ossim_uint32 resLevel) const |
Determines if the passed in reslution level is valid. More... | |
bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
Connection rule. More... | |
virtual void | getValidImageVertices (vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const |
ordering specifies how the vertices should be arranged. More... | |
virtual bool | isBandSelector () const |
Indicates whether or not the image handler can control output band selection via the setOutputBandList method. More... | |
virtual bool | setOutputBandList (const std::vector< ossim_uint32 > &band_list) |
If the image handler "isBandSeletor()" then the band selection of the output chip can be controlled. More... | |
virtual bool | setOutputToInputBandList () |
If the image handler "isBandSeletor()" then the band selection of the output are set to input or identity. More... | |
virtual bool | isIdentityBandList (const std::vector< ossim_uint32 > &bandList) const |
Convenience method to see if band list is identity. More... | |
virtual bool | isImageTiled () const |
Indicates whether or not the image is tiled internally. More... | |
virtual ossim_uint32 | getImageTileWidth () const =0 |
Returns the tile width of the image or 0 if the image is not tiled. More... | |
virtual ossim_uint32 | getImageTileHeight () const =0 |
Returns the tile width of the image or 0 if the image is not tiled. More... | |
virtual bool | hasMetaData () const |
virtual ossimRefPtr< ossimNBandLutDataObject > | getLut () const |
virtual bool | hasLut () const |
virtual void | loadMetaData () |
There is an external file with an omd extension. More... | |
virtual double | getMinPixelValue (ossim_uint32 band=0) const |
Retuns the min pixel value. More... | |
virtual double | getMaxPixelValue (ossim_uint32 band=0) const |
Returns the max pixel of the band. More... | |
virtual double | getNullPixelValue (ossim_uint32 band=0) const |
Each band has a null pixel associated with it. More... | |
virtual void | setMinPixelValue (ossim_uint32 band, const ossim_float64 &pix) |
convenience method to set min pixel value. More... | |
virtual void | setMaxPixelValue (ossim_uint32 band, const ossim_float64 &pix) |
convenience method to set max pixel value. More... | |
virtual void | setNullPixelValue (ossim_uint32 band, const ossim_float64 &pix) |
convenience method to set null pixel value. More... | |
virtual ossim_uint32 | getCurrentEntry () const |
virtual ossim_uint32 | getNumberOfEntries () const |
virtual void | getEntryName (ossim_uint32 entryIdx, std::string &name) const |
Get the name of entry as a string. More... | |
virtual void | getEntryList (std::vector< ossim_uint32 > &entryList) const |
virtual void | getEntryNames (std::vector< ossimString > &entryNames) const |
bool | useEntryIndex () const |
Convenience method to determine if entry index should be used for support files, e.g. More... | |
ossimFilename | getOverviewFile () const |
virtual bool | setCurrentEntry (ossim_uint32 entryIdx) |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
ossimFilename | getFilenameWithThisExtension (const ossimString &ext, bool set_e0_prefix=false) const |
Returns the image file with extension set using supplentary directory for dirname if set. More... | |
void | getFilenameWithThisExt (const ossimString &ext, ossimFilename &f) const |
Returns the image file with extension set using supplentary directory for dirname if set. More... | |
ossim_uint32 | getStartingResLevel () const |
void | setStartingResLevel (ossim_uint32 level) |
bool | getOpenOverviewFlag () const |
void | setOpenOverviewFlag (bool flag) |
Sets theOpenOverviewFlag. More... | |
virtual void | setSupplementaryDirectory (const ossimFilename &dir) |
Sets the supplementary directory. More... | |
virtual const ossimFilename & | getSupplementaryDirectory () const |
Returns the supplementary directory. More... | |
const ossimString & | getImageID () const |
Fetches the image ID. More... | |
void | setImageID (const ossimString &id) |
Sets the image ID in case it is externally generated. More... | |
ossimPixelType | getPixelType () const |
Returns the raster pixel alignment type. More... | |
virtual bool | getRgbBandList (std::vector< ossim_uint32 > &bandList) const |
Convenience method to get the zero based rgb output band list. More... | |
template<class T > | |
std::shared_ptr< T > | getStateAs () |
template<class T > | |
std::shared_ptr< const T > | getStateAs () const |
std::shared_ptr< ossim::ImageHandlerState > | getState () |
std::shared_ptr< const ossim::ImageHandlerState > | getState () const |
void | setState (std::shared_ptr< ossim::ImageHandlerState > state) |
![]() | |
ossimImageSource (ossimObject *owner=0) | |
ossimImageSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimImageSource () |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIpt &origin, ossim_uint32 resLevel=0) |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIrect &rect, ossim_uint32 resLevel=0) |
virtual bool | getTile (ossimImageData *result, ossim_uint32 resLevel=0) |
Method to get a tile. More... | |
virtual ossimObject * | getObject () |
For RTTI support. More... | |
virtual const ossimObject * | getObject () const |
For RTTI support. More... | |
virtual void | getDecimationFactors (std::vector< ossimDpt > &decimations) const |
Will return an array of all decimations for each resolution level. More... | |
virtual ossim_uint32 | getNumberOfInputBands () const =0 |
virtual ossim_uint32 | getNumberOfOutputBands () const |
Returns the number of bands in a tile returned from this TileSource. More... | |
virtual void | getOutputBandList (std::vector< ossim_uint32 > &bandList) const |
Initializes bandList. More... | |
virtual ossimScalarType | getOutputScalarType () const |
This will be used to query the output pixel type of the tile source. More... | |
virtual ossim_uint32 | getTileWidth () const |
Returns the default processing tile width. More... | |
virtual ossim_uint32 | getTileHeight () const |
Returns the default processing tile height. More... | |
virtual void | getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const |
Gets the bounding rectangle of the source. More... | |
virtual void | getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const |
ordering specifies how the vertices should be arranged. More... | |
virtual void | setImageGeometry (const ossimImageGeometry *geom) |
Default implementation sets geometry of the first input to the geometry specified. More... | |
virtual bool | isIndexedData () const |
![]() | |
ossimSource (ossimObject *owner=0) | |
ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimSource () |
virtual bool | isSourceEnabled () const |
virtual void | enableSource () |
virtual void | disableSource () |
virtual bool | getEnableFlag () const |
virtual void | setEnableFlag (bool flag) |
virtual bool | isInitialized () const |
virtual void | setInitializedFlag (bool flag) |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
![]() | |
ossimConnectableObject (ossimObject *owner=0) | |
Base constructor of this object. More... | |
ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimConnectableObject () |
void | setId (const ossimId &id) |
All connectable objects will have id's. More... | |
const ossimId & | getId () const |
Will allow us to get this object's id. More... | |
const ossimObject * | getOwner () const |
Fetches the current owner, most likely a container but not limited to one. More... | |
virtual void | changeOwner (ossimObject *owner) |
Permits changing the object's owner. More... | |
virtual void | setDescription (const ossimString &description) |
virtual ossimString | getDescription () const |
virtual bool | isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const |
will check the direction specified to see if all slots are full. More... | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className)) | |
virtual ossim_int32 | findInputIndex (const ossimConnectableObject *object) |
Return a valid index of the input list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findInputIndex (const ossimId &id) |
Return a valid index of the input list if the passed id is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimConnectableObject *object) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimId &id) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | getMyInputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual ossim_int32 | getMyOutputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual bool | canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const |
default implementation is to allow anyone to connect to us. More... | |
virtual void | disconnect (ossimConnectableObject *object=0) |
Will disconnect the object passed in. More... | |
virtual void | disconnect (const ossimId &id) |
Will disconnect the object passed in. More... | |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given input index and generate a connection event. More... | |
virtual void | disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More... | |
virtual void | disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given output index and generate a connection event. More... | |
virtual void | disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the output object. More... | |
virtual void | disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual void | disconnectAllInputs () |
Will disconnect all of the input objects. More... | |
virtual void | disconnectAllOutputs () |
Will disconnect all of the output objects. More... | |
virtual ossim_int32 | connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will try to connect this objects input to the passed in object. More... | |
virtual ossim_int32 | connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will connect the specified input to the passed in object. More... | |
virtual bool | connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true) |
virtual ossim_int32 | connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true) |
Will try to connect this objects output to the passed in object. More... | |
virtual bool | connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true) |
virtual bool | connectInputList (ConnectableObjectList &inputList) |
Will disconnect itself from all inputs and reset to the passed in input list. More... | |
virtual bool | connectOutputList (ConnectableObjectList &outputList) |
Will disconnect itself from all outputs and reset to the passed in output list. More... | |
virtual ossim_uint32 | getNumberOfInputs () const |
Returns the number of input objects. More... | |
virtual ossim_uint32 | getNumberOfOutputs () const |
Return the number of output objects. More... | |
ossimConnectableObject * | getInput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getInput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
ossimConnectableObject * | getOutput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getOutput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
virtual void | setNumberOfInputs (ossim_int32 numberOfInputs) |
Will set the number of inputs. More... | |
virtual bool | getInputListIsFixedFlag () const |
virtual bool | getOutputListIsFixedFlag () const |
virtual void | setNumberOfOutputs (ossim_int32 numberOfInputs) |
Will set the number of outputs. More... | |
const ConnectableObjectList & | getInputList () const |
const ConnectableObjectList & | getOutputList () const |
ConnectableObjectList & | getInputList () |
ConnectableObjectList & | getOutputList () |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true)) | |
virtual void | propagateEventToOutputs (ossimEvent &event) |
virtual void | propagateEventToInputs (ossimEvent &event) |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossim_uint32 | saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const |
Save the state of all inputs to a keyword list. More... | |
virtual bool | fillContainer (ossimConnectableContainer &container) |
Inserts this object and all of its children and inputs into the container provided. More... | |
bool | moveInputUp (const ossimId &id) |
Moves the input connection matching id up one in the connection list. More... | |
bool | moveInputDown (const ossimId &id) |
Moves the input connection matching id down one in the connection list. More... | |
bool | moveInputToTop (const ossimId &id) |
Moves the input connection matching id to the top of the connection list. More... | |
bool | moveInputToBottom (const ossimId &id) |
Moves the input connection matching id to the bottom of the connection list. More... | |
virtual void | accept (ossimVisitor &visitor) |
We will add a visitor interface for all connectable objects. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getClassName () 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 | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
![]() | |
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 |
![]() | |
ossimListenerManager () | |
virtual | ~ossimListenerManager () |
virtual void | fireEvent (ossimEvent &event) |
virtual bool | addListener (ossimListener *listener) |
virtual bool | removeListener (ossimListener *listener) |
virtual bool | findListener (ossimListener *listener) |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
Protected Member Functions | |
virtual ossimRefPtr< ossimImageGeometry > | getExternalImageGeometry () const |
Returns the image geometry object associated with this tile source or NULL if non defined. More... | |
virtual ossimRefPtr< ossimImageGeometry > | getInternalImageGeometry () const |
virtual bool | getOverviewTile (ossim_uint32 resLevel, ossimImageData *result) |
Method to get an overview tile. More... | |
bool | initVertices (const char *file) |
Opens file and attempts to initialize the valid image vertices. More... | |
virtual void | completeOpen () |
Will complete the opening process. More... | |
void | initImageParameters (ossimImageGeometry *geom) const |
Convenience method to set things needed in the image geometry from the image handler. More... | |
virtual void | establishDecimationFactors () |
Virtual method determines the decimation factors at each resolution level. More... | |
virtual bool | setOutputBandList (const std::vector< ossim_uint32 > &inBandList, std::vector< ossim_uint32 > &outBandList) |
Convenience method to set output band list. More... | |
void | getFilenameWithNoExtension (ossimFilename &f) const |
Get filename with no extension, using supplentary directory for dirname if set. More... | |
![]() | |
ossimImageSource (const ossimImageSource &rhs) | |
const ossimImageSource & | operator= (const ossimImageSource &) |
![]() | |
ossimSource (const ossimSource &rhs) | |
const ossimSource & | operator= (const ossimSource &rhs) |
![]() | |
ossimConnectableObject * | findObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor) |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimListenerManager (const ossimListenerManager &rhs) | |
This class defines an abstract Handler which all image handlers(loaders) should derive from.
Definition at line 35 of file ossimImageHandler.h.
Enumerator | |
---|---|
OSSIM_OVERVIEW_COMPRESSION_NONE | |
OSSIM_OVERVIEW_COMPRESSION_JPEG | |
OSSIM_OVERVIEW_COMPRESSION_LZW | |
OSSIM_OVERVIEW_COMPRESSION_DEFLATE | |
OSSIM_OVERVIEW_COMPRESSION_PACKBITS |
Definition at line 39 of file ossimImageHandler.h.
ossimImageHandler::ossimImageHandler | ( | ) |
Constructor (default):
Definition at line 65 of file ossimImageHandler.cpp.
|
virtual |
Destructor: Derived classes should implement.
Definition at line 99 of file ossimImageHandler.cpp.
References theOverview.
|
virtual |
Build a histograms for all image entries.
numberOfRLevels | sets the maximum number of reduced resolution level to compute histogram for. |
mode | OSSIM_HISTO_MODE_NORMAL or OSSIM_HISTO_MODE_FAST. |
Definition at line 552 of file ossimImageHandler.cpp.
References buildHistogram(), getCurrentEntry(), getEntryList(), and setCurrentEntry().
|
virtual |
Will build over file for all image entries.
includeFullResFlag | if true the full resolution layer will also be put in the overview format. This is handly for inefficeint formats. |
Definition at line 589 of file ossimImageHandler.cpp.
References buildOverview(), getCurrentEntry(), getEntryList(), and setCurrentEntry().
|
virtual |
Build a histogram for image file.
numberOfRLevels | sets the maximum number of reduced resolution level to compute histogram for. |
mode | OSSIM_HISTO_MODE_NORMAL or OSSIM_HISTO_MODE_FAST. |
Definition at line 507 of file ossimImageHandler.cpp.
References ossimListenerManager::addListener(), ossimConnectableObject::connectMyInputTo(), ossimConnectableObject::disconnect(), ossimSource::enableSource(), ossimHistogramWriter::execute(), ossimRefPtr< T >::get(), getFilenameWithThisExtension(), getNumberOfDecimationLevels(), isOpen(), ossimImageHistogramSource::setComputationMode(), ossimHistogramWriter::setFilename(), ossimImageHistogramSource::setMaxNumberOfRLevels(), and theStdOutProgress.
Referenced by buildAllHistograms(), and ATP::AtpGenerator::constructChain().
|
virtual |
Will build over file for theImageFile.
includeFullResFlag | if true the full resolution layer will also be put in the overview format. This is handly for inefficeint formats. |
Definition at line 573 of file ossimImageHandler.cpp.
References getFilenameWithThisExtension(), openOverview(), and theOverviewFile.
Referenced by buildAllOverviews().
|
virtual |
Will build an over file for filename.
filename | Name of image file. |
includeFullResFlag | if true the full resolution layer will also be put in the overview format. This is handly for inefficeint formats. |
Definition at line 613 of file ossimImageHandler.cpp.
References ossimTiffOverviewBuilder::buildOverview(), closeOverview(), ossim::COMPRESSION_NONE, isOpen(), OSSIM_OVERVIEW_COMPRESSION_DEFLATE, OSSIM_OVERVIEW_COMPRESSION_JPEG, OSSIM_OVERVIEW_COMPRESSION_LZW, OSSIM_OVERVIEW_COMPRESSION_NONE, OSSIM_OVERVIEW_COMPRESSION_PACKBITS, ossimTiffOverviewBuilder::setCompressionType(), ossimTiffOverviewBuilder::setInputSource(), ossimTiffOverviewBuilder::setJpegCompressionQuality(), ossimTiffOverviewBuilder::setResampleType(), and theOverviewFile.
|
virtual |
Connection rule.
Since image handler currently don't have any inputs this will just return false saying we can't connect anything to an image handler.
Implements ossimConnectableObject.
Reimplemented in ossimImageHandlerMtAdaptor.
Definition at line 1538 of file ossimImageHandler.cpp.
|
virtual |
Deletes the overview and clears the valid image vertices.
Derived classes should implement.
Reimplemented in ossimPngReader, ossimGpkgReader, ossimOpjJp2Reader, ossimJpegTileSource, ossimH5ImageHandler, ossimHdfReader, ossimHdf5ImageHandler, ossimAdrgTileSource, ossimGeneralRasterTileSource, ossimBitMaskTileSource, ossimNitfTileSource, ossimRangeDomeTileSource, ossimCibCadrgTileSource, ossimTiffTileSource, ossimLasReader, ossimplugins::ossimTerraSarTiffReader, ossimRpfCacheTileSource, ossimPointCloudImageHandler, ossimplugins::ossimRadarSat2TiffReader, ossimImageHandlerMtAdaptor, ossimDtedTileSource, ossimCcfTileSource, ossimImageCacheTileSource, ossimOgrGdalTileSource, ossimOgrVectorTileSource, ossimTiledImageHandler, ossimGdalTileSource, ossimKakaduJpipHandler, ossimBandSeparateHandler, ossimKmlSuperOverlayReader, ossimImageCacheBase, ossimVideoImageHandler, and ossimVpfTileSource.
Definition at line 1264 of file ossimImageHandler.cpp.
References setState(), theDecimationFactors, theGeometry, theOverview, and theValidImageVertices.
Referenced by ossimKakaduJpipHandler::close(), ossimImageHandlerMtAdaptor::close(), ossimPointCloudImageHandler::close(), ossimLasReader::close(), ossimTiffTileSource::close(), ossimCibCadrgTileSource::close(), ossimBitMaskTileSource::close(), ossimGeneralRasterTileSource::close(), ossimHdf5ImageHandler::close(), ossimH5ImageHandler::close(), ossimOpjJp2Reader::close(), ossimGpkgReader::close(), ossimPngReader::close(), ossimMG4LidarReader::closeEntry(), ossimGeoPdfReader::closeEntry(), ossimMrSidReader::closeEntry(), ossimKakaduJp2Reader::closeEntry(), ossimKakaduJ2kReader::closeEntry(), ossimGeoidImage::open(), open(), and ossimHdfReader::~ossimHdfReader().
|
virtual |
If theOverview is initialized it will be deleted and set to NULL.
Also clears theOverviewFile.
Definition at line 830 of file ossimImageHandler.cpp.
References theOverview.
Referenced by buildOverview(), and ossimImageHandlerMtAdaptor::close().
|
protectedvirtual |
Will complete the opening process.
If there are overviews it will open them. If there is meta data it will open that and if there is valid vertices it will open that.
Reimplemented in ossimLasReader.
Definition at line 1519 of file ossimImageHandler.cpp.
Referenced by ossimBandSeparateHandler::open(), ossimPointCloudImageHandler::open(), ossimPngReader::open(), ossimKakaduJpipHandler::openStream(), ossimHdf5ImageHandler::setCurrentEntry(), ossimH5ImageHandler::setCurrentEntry(), ossimNitfTileSource::setCurrentEntry(), ossimGpkgReader::setCurrentEntry(), ossimRpfCacheTileSource::setCurrentEntry(), ossimCibCadrgTileSource::setCurrentEntry(), ossimPointCloudImageHandler::setPointCloudHandler(), and setSupplementaryDirectory().
|
virtual |
Definition at line 1844 of file ossimImageHandler.cpp.
References getFilenameWithThisExtension().
Referenced by getProperty().
|
virtual |
Definition at line 1854 of file ossimImageHandler.cpp.
References getFilenameWithThisExtension().
Referenced by getProperty().
|
virtual |
Definition at line 1849 of file ossimImageHandler.cpp.
References getFilenameWithThisExtension().
Referenced by getProperty().
|
virtual |
Definition at line 1839 of file ossimImageHandler.cpp.
References getFilenameWithThisExtension().
Referenced by getProperty().
|
virtual |
Definition at line 1859 of file ossimImageHandler.cpp.
References ossimFilename::dirCat(), ossimFilename::fileNoExtension(), getCurrentEntry(), getNumberOfEntries(), ossimFilename::path(), theImageFile, and ossimString::toString().
Referenced by getProperty(), ATP::AtpGenerator::getValidVertices(), and writeValidImageVertices().
|
protectedvirtual |
Virtual method determines the decimation factors at each resolution level.
This base class implementation computes the decimation by considering the ratios in image size between resolution levels, with fuzzy logic for rounding ratios to the nearest power of 2 if possible. Derived classes need to override this method if the decimations are provided as part of the image metadata.
Reimplemented in ossimNitfTileSource, ossimRpfCacheTileSource, ossimImageCacheBase, and ossimBitMaskTileSource.
Definition at line 442 of file ossimImageHandler.cpp.
References getNumberOfDecimationLevels(), getNumberOfLines(), getNumberOfSamples(), theDecimationFactors, ossimDpt::x, and ossimDpt::y.
Referenced by ossimLasReader::completeOpen(), ossimImageCacheBase::establishDecimationFactors(), ossimRpfCacheTileSource::establishDecimationFactors(), and ossimNitfTileSource::establishDecimationFactors().
|
virtual |
Returns zero-based bounding rectangle of the image.
Same as getImageRectangle() call. Note sub-image offset now in ossimImageGeometry class.
resLevel | Reduced resolution level for rectangle. |
Reimplemented from ossimImageSource.
Definition at line 413 of file ossimImageHandler.cpp.
References getImageRectangle().
Referenced by ossimTiledImageHandler::allocate(), ossimBitMaskWriter::connectMyInputTo(), ossimVerticesFinderTool::execute(), ossimInfo::getCenterImage(), ossimInfo::getImageGeometryInfo(), ossimInfo::getImageInfo(), ossimInfo::getImageRect(), ossimNitfTileSource::getImageTileHeight(), ossimNitfTileSource::getImageTileWidth(), ossimGdalTileSource::getMaxSize(), ossimGdalTileSource::getTile(), ossimMrSidReader::getTile(), ossimMG4LidarReader::getTile(), ossimKakaduJpipHandler::getTileAtRes(), ossimGdalTileSource::getTileBlockRead(), ossimNitfTileSource::getTileHeight(), ossimNitfTileSource::getTileWidth(), ATP::AtpGenerator::getValidVertices(), initImageParameters(), main(), ossimBitMaskTileSource::open(), ossimGdalTileSource::setRlevelCache(), and ossimRpcSolver::solve().
|
virtual |
Reimplemented in ossimCibCadrgTileSource, ossimHdfReader, ossimH5ImageHandler, ossimNitfTileSource, ossimGpkgReader, ossimGdalTileSource, ossimHdf5ImageHandler, ossimLasReader, ossimPointCloudImageHandler, and ossimVideoImageHandler.
Definition at line 1461 of file ossimImageHandler.cpp.
Referenced by buildAllHistograms(), buildAllOverviews(), createDefaultValidVerticesFilename(), ossimProjectionFactoryBase::createProjection(), ossimTiffProjectionFactory::createProjection(), ossimNitfProjectionFactory::createProjection(), getExternalImageGeometry(), getFilenameWithThisExtension(), ossimKakaduJpipHandler::getImageGeometry(), getProperty(), and openValidVertices().
|
virtual |
resLevel | Reduced resolution set for requested decimation. |
result | ossimDpt to initialize with requested decimation. |
Reimplemented from ossimImageSource.
Reimplemented in ossimGdalTileSource, ossimKakaduJ2kReader, and ossimMrSidReader.
Definition at line 419 of file ossimImageHandler.cpp.
References ossimDpt::makeNan(), and theDecimationFactors.
Referenced by ossimTiledImageHandler::getImageRectangle(), and getValidImageVertices().
|
virtual |
This returns all decimation for all levels.
Reimplemented in ossimKakaduJ2kReader, and ossimMrSidReader.
Definition at line 427 of file ossimImageHandler.cpp.
References theDecimationFactors.
Referenced by ossimImageModel::initialize().
|
virtual |
entryList | This is the list to initialize with entry indexes. |
Reimplemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimGeoPdfReader, ossimGdalTileSource, ossimNitfTileSource, ossimGpkgReader, ossimOgrVectorTileSource, ossimHdfReader, ossimH5ImageHandler, ossimHdf5ImageHandler, ossimLasReader, ossimImageCacheBase, ossimPointCloudImageHandler, and ossimVideoImageHandler.
Definition at line 1476 of file ossimImageHandler.cpp.
Referenced by buildAllHistograms(), buildAllOverviews(), ossimInfo::getCenterGround(), ossimInfo::getCenterImage(), ossimOgrVectorTileSource::getEntryList(), ossimGeoPdfReader::getEntryList(), ossimInfo::getGrd2img(), ossimInfo::getImageBounds(), ossimInfo::getImageGeometryInfo(), ossimInfo::getImageInfo(), ossimInfo::getImagePalette(), ossimInfo::getImageRect(), ossimInfo::getImg2grd(), ossimInfo::getNorthUpAngle(), getNumberOfEntries(), getProperty(), ossimInfo::getUpIsUpAngle(), and useEntryIndex().
|
virtual |
Get the name of entry as a string.
This implementation clears name. Derived classes that support multiple entries and have "named" entries should re-implement to provide entry names. Example given from HDF5 file:
entry_name: /All_Data/VIIRS-IMG-GTM-EDR-GEO_All/QF1_VIIRSGTMGEO
entryIdx | Zero based entry index. If out of range name will be cleared. |
name | Initialized by this. |
Definition at line 1510 of file ossimImageHandler.cpp.
References getEntryNames().
Referenced by ossimInfo::getImageInfo().
|
virtual |
getEntryNames | List to initialize with strings associated with entries. |
Reimplemented in ossimGpkgReader, ossimGdalTileSource, ossimH5ImageHandler, ossimHdf5ImageHandler, and ossimPointCloudImageHandler.
Definition at line 1505 of file ossimImageHandler.cpp.
Referenced by getEntryName(), and ossimGdalTileSource::getEntryNames().
|
protectedvirtual |
Returns the image geometry object associated with this tile source or NULL if non defined.
The geometry contains full-to-local image transform as well as projection (image-to-world).
This method just looks for external .geom style override only. If you want to go through a registry then call getImageGeometry().
Reimplemented in ossimMrSidReader.
Definition at line 726 of file ossimImageHandler.cpp.
References ossimFilename::dirCat(), ossimFilename::exists(), ossimFilename::expand(), ossimFilename::file(), ossimKeywordlist::findKey(), getCurrentEntry(), getFilenameWithThisExt(), getFilenameWithThisExtension(), ossimImageGeometry::loadState(), ossimString::string(), theSupplementaryDirectory, ossimString::toString(), and ossimKeywordNames::TYPE_KW.
Referenced by ossimMrSidReader::getExternalImageGeometry(), ossimViirsHandler::getImageGeometry(), ossimQuickbirdTiffTileSource::getImageGeometry(), ossimQbTileFilesHandler::getImageGeometry(), ossimERSTileSource::getImageGeometry(), ossimGdalTileSource::getImageGeometry(), ossimAdrgTileSource::getImageGeometry(), ossimUsgsDemTileSource::getImageGeometry(), ossimGeneralRasterTileSource::getImageGeometry(), ossimOpjJp2Reader::getImageGeometry(), ossimJpegTileSource::getImageGeometry(), ossimMG4LidarReader::getImageGeometry(), ossimPointCloudImageHandler::getImageGeometry(), ossimGeoPdfReader::getImageGeometry(), ossimH5ImageHandler::getImageGeometry(), ossimLasReader::getImageGeometry(), ossimKakaduJp2Reader::getImageGeometry(), ossimPngReader::getImageGeometry(), ossimGpkgReader::getImageGeometry(), ossimCibCadrgTileSource::getImageGeometry(), and getImageGeometry().
|
virtual |
Returns the filename.
Definition at line 1554 of file ossimImageHandler.cpp.
References theImageFile.
Referenced by ossimSingleImageChain::addHistogramRemapper(), ossimImageHandlerRegistry::addToStateCache(), ossimBitMaskWriter::connectMyInputTo(), ossimProjectionFactoryBase::createProjection(), ossimNitfProjectionFactory::createProjection(), ossimLandsatTopoCorrectionFilter::findLandsatHeader(), ossimGdalOverviewBuilder::generateHfaStats(), ossimInfo::getCenterGround(), ossimInfo::getCenterImage(), ATP::AtpGenerator::getCmpFilename(), ossimSingleImageChain::getFilename(), getFilenameWithThisExt(), getFilenameWithThisExtension(), ossimInfo::getImageBounds(), ossimInfo::getImageGeometryInfo(), ossimInfo::getImageRect(), ossimJpegTileSource::getInternalImageGeometry(), ossimGdalOverviewBuilder::getOutputFile(), getProperty(), ATP::AtpGenerator::getRefFilename(), ossimGdalDataset::initGdalOverviewManager(), main(), ossimKakaduJpipHandler::open(), ossimNitfTileSource::open(), ossimQuickbirdRpcModel::ossimQuickbirdRpcModel(), and ossimNitfTileSource::parseFile().
|
protected |
Get filename with no extension, using supplentary directory for dirname if set.
Examples:
f = "foo.tif" f = "foo"
Definition at line 1784 of file ossimImageHandler.cpp.
References ossimString::after(), ossimFilename::drive(), ossimFilename::merge(), ossimFilename::setExtension(), ossimString::size(), ossimFilename::split(), and theSupplementaryDirectory.
Referenced by getFilenameWithThisExt(), and getFilenameWithThisExtension().
void ossimImageHandler::getFilenameWithThisExt | ( | const ossimString & | ext, |
ossimFilename & | f | ||
) | const |
Returns the image file with extension set using supplentary directory for dirname if set.
This is like the getFilenameWithThisExtension(...) method except it does NOT add the "_en" if image is multi entry.
Examples:
ext | Extension to tack onto file. Can have or have not ".", it will be added if "." is not the first character. |
f | Initialized by this. |
Definition at line 1766 of file ossimImageHandler.cpp.
References getFilename(), getFilenameWithNoExtension(), ossimString::size(), and ossimString::string().
Referenced by getExternalImageGeometry(), and ossimLasReader::init().
ossimFilename ossimImageHandler::getFilenameWithThisExtension | ( | const ossimString & | ext, |
bool | set_e0_prefix = false |
||
) | const |
Returns the image file with extension set using supplentary directory for dirname if set.
Default behaviour is to add the "_en.ext" only if the file is multi-entry. Use set_e0_prefix to override this.
Examples:
ext | Extension to tack onto file. Can have or have not ".", it will be added if "." is not the first character. |
set_e0_prefix | If true and the number of entries = 1 then "foo.geom" would come out "foo_e0.geom" instead. Default = false. |
Definition at line 1740 of file ossimImageHandler.cpp.
References getCurrentEntry(), getFilename(), getFilenameWithNoExtension(), getNumberOfEntries(), ossimString::size(), ossimString::string(), and ossimString::toString().
Referenced by ossimSingleImageChain::addHistogramRemapper(), ossimSingleImageChain::addImageHandler(), buildHistogram(), buildOverview(), createDefaultGeometryFilename(), createDefaultHistogramFilename(), createDefaultMetadataFilename(), createDefaultOverviewFilename(), getExternalImageGeometry(), getImageHistogram(), ossimImageUtil::getThumbnailFilename(), loadMetaData(), ossimSingleImageChain::openHistogram(), saveImageGeometry(), and ossimOverviewSequencer::writeHistogram().
|
virtual |
Returns the image geometry object associated with this tile source or NULL if non defined.
The geometry contains full-to-local image transform as well as projection (image-to-world).
Reimplemented from ossimImageSource.
Reimplemented in ossimCibCadrgTileSource, ossimGpkgReader, ossimPngReader, ossimImageCacheBase, ossimKakaduJp2Reader, ossimRpfCacheTileSource, ossimLasReader, ossimH5ImageHandler, ossimMrSidReader, ossimGeoPdfReader, ossimPointCloudImageHandler, ossimMG4LidarReader, ossimJpegTileSource, ossimOpjJp2Reader, ossimHdfReader, ossimGeneralRasterTileSource, ossimUsgsDemTileSource, ossimOgrVectorTileSource, ossimAdrgTileSource, ossimKmlSuperOverlayReader, ossimDtedTileSource, ossimGdalTileSource, ossimVpfTileSource, ossimRangeDomeTileSource, ossimBitMaskTileSource, ossimBandSeparateHandler, ossimplugins::ossimTerraSarTiffReader, ossimplugins::ossimRadarSat2TiffReader, ossimKakaduJpipHandler, ossimVideoImageHandler, ossimLandsatTileSource, ossimEnviTileSource, ossimERSTileSource, ossimSrtmTileSource, ossimQbTileFilesHandler, ossimDoqqTileSource, ossimQuickbirdTiffTileSource, ossimViirsHandler, ossimViirsHandler, and ossimQuickbirdNitfTileSource.
Definition at line 685 of file ossimImageHandler.cpp.
References ossimImageGeometryRegistry::extendGeometry(), ossimRefPtr< T >::get(), getExternalImageGeometry(), getInternalImageGeometry(), initImageParameters(), ossimImageGeometryRegistry::instance(), and theGeometry.
Referenced by ossimPointObservation::addMeasurement(), ATP::AtpGenerator::constructChain(), ossimKakaduJpipImageGeometryFactory::extendGeometry(), ossimImageGeometryFactory::extendGeometry(), ossimInfo::getCenterGround(), ossimInfo::getGrd2img(), ossimInfo::getImageBounds(), ossimQuickbirdNitfTileSource::getImageGeometry(), ossimKakaduJpipHandler::getImageGeometry(), ossimInfo::getImageGeometryInfo(), ossimInfo::getImg2grd(), ossimChipperUtil::getIrect(), ossimInfo::getNorthUpAngle(), ossimInfo::getUpIsUpAngle(), ATP::AtpGenerator::getValidVertices(), ossimChipperUtil::hasSensorModelInput(), ossimImageProjectionModel::initialize(), ossimTiledElevationDatabase::initializeReferenceProjection(), ossimEquationUtil::initInputSources(), main(), ossimChipProcTool::newIdentityProjection(), ossimGeoidImage::open(), ossimImageElevationHandler::open(), ossimImageGeometry::open(), ossimTilingPoly::parseShpFile(), ossimRpcSolver::solve(), and ossimIvtGeomXformVisitor::visit().
ossimRefPtr< ossimMultiResLevelHistogram > ossimImageHandler::getImageHistogram | ( | ) | const |
Fetches the current entry image's histogram.
Do: ossimRefPtr<ossimMultiResLevelHistogram> his = ih->getImageHistogram(); if ( ih.valid() ) { } else { ih->buildHistogram(); }
Definition at line 670 of file ossimImageHandler.cpp.
References getFilenameWithThisExtension(), ossimMultiResLevelHistogram::importHistogram(), and isOpen().
Referenced by ossimShorelineTool::autoComputeThreshold(), ATP::AtpGenerator::constructChain(), and ossimBandMergeTool::initHistogramStretch().
|
inline |
Fetches the image ID.
This is initialized to -1 in the constructor but is searched for in loadState():
Definition at line 715 of file ossimImageHandler.h.
Referenced by ATP::AtpGenerator::constructChain(), ATP::AtpGenerator::getCmpImageID(), and ATP::AtpGenerator::getRefImageID().
|
virtual |
Returns zero-based bounding rectangle of the image.
Note sub-image offset now in ossimImageGeometry class.
resLevel | Reduced resolution level for rectangle. |
Reimplemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimOgrGdalTileSource, ossimAdrgTileSource, ossimOgrVectorTileSource, ossimDtedTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimPngReader, ossimCcfTileSource, ossimGdalTileSource, ossimTiledImageHandler, ossimHdf5ImageHandler, ossimGpkgReader, ossimJpegTileSource, ossimUsgsDemTileSource, ossimKmlSuperOverlayReader, ossimVpfTileSource, and ossimImageCacheBase.
Definition at line 388 of file ossimImageHandler.cpp.
References getNumberOfLines(), getNumberOfSamples(), isOpen(), isValidRLevel(), and ossimIrect::makeNan().
Referenced by getBoundingRect(), ossimGdalTileSource::getImageRectangle(), ossimGeoPdfReader::getIntersectingEntries(), ossimChipperUtil::getIrect(), ossimHdfReader::getTile(), ossimBitMaskTileSource::getTile(), ossimTiffTileSource::getTile(), ossimGeoPdfReader::getTile(), ossimGdalDataset::init(), ossimOverviewSequencer::initialize(), ossimTiffTileSource::loadFromScanLine(), ossimGeoidImage::open(), and ossimQuickbirdRpcModel::parseTiffFile().
|
pure virtual |
Returns the tile width of the image or 0 if the image is not tiled.
Note: this is not the same as the ossimImageSource::getTileWidth which returns the output tile width which can be different than the internal image tile width on disk.
Implemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimTiffTileSource, ossimPngReader, ossimGdalTileSource, ossimNitfTileSource, ossimGpkgReader, ossimAdrgTileSource, ossimOgrVectorTileSource, ossimOgrGdalTileSource, ossimCcfTileSource, ossimDtedTileSource, ossimImageCacheBase, ossimLasReader, ossimUsgsDemTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimJpegTileSource, ossimHdf5ImageHandler, ossimVpfTileSource, ossimGeneralRasterTileSource, ossimPointCloudImageHandler, ossimGeoPdfReader, ossimKakaduJp2Reader, ossimKmlSuperOverlayReader, ossimKakaduJ2kReader, ossimMG4LidarReader, ossimMrSidReader, ossimHdfReader, ossimRangeDomeTileSource, ossimTiledImageHandler, ossimBitMaskTileSource, ossimBandSeparateHandler, ossimImageHandlerMtAdaptor, ossimKakaduJpipHandler, and ossimVideoImageHandler.
Referenced by ossimSingleImageChain::createRenderedChain(), ossimImageHandlerMtAdaptor::getImageTileHeight(), and isImageTiled().
|
pure virtual |
Returns the tile width of the image or 0 if the image is not tiled.
Note: this is not the same as the ossimImageSource::getTileWidth which returns the output tile width which can be different than the internal image tile width on disk.
Implemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimTiffTileSource, ossimPngReader, ossimGdalTileSource, ossimNitfTileSource, ossimGpkgReader, ossimAdrgTileSource, ossimOgrVectorTileSource, ossimOgrGdalTileSource, ossimCcfTileSource, ossimDtedTileSource, ossimImageCacheBase, ossimLasReader, ossimUsgsDemTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimJpegTileSource, ossimHdf5ImageHandler, ossimVpfTileSource, ossimGeneralRasterTileSource, ossimPointCloudImageHandler, ossimGeoPdfReader, ossimKakaduJp2Reader, ossimKmlSuperOverlayReader, ossimKakaduJ2kReader, ossimMG4LidarReader, ossimMrSidReader, ossimRangeDomeTileSource, ossimHdfReader, ossimTiledImageHandler, ossimBitMaskTileSource, ossimBandSeparateHandler, ossimImageHandlerMtAdaptor, ossimKakaduJpipHandler, and ossimVideoImageHandler.
Referenced by ossimSingleImageChain::createRenderedChain(), ossimImageHandlerMtAdaptor::getImageTileWidth(), and isImageTiled().
|
protectedvirtual |
Reimplemented in ossimMrSidReader, ossimGeoPdfReader, ossimMG4LidarReader, ossimJpegTileSource, ossimUsgsDemTileSource, ossimGdalTileSource, ossimOgrGdalTileSource, ossimOgrVectorTileSource, ossimKmlSuperOverlayReader, ossimEnviTileSource, ossimplugins::ossimTerraSarTiffReader, and ossimplugins::ossimRadarSat2TiffReader.
Definition at line 802 of file ossimImageHandler.cpp.
Referenced by getImageGeometry().
|
virtual |
Definition at line 1829 of file ossimImageHandler.cpp.
References theLut.
Referenced by ossimGdalWriter::checkColorLut(), ossimTiffWriter::checkColorLut(), and ossimInfo::getImagePalette().
|
virtual |
Returns the max pixel of the band.
Reimplemented from ossimImageSource.
Reimplemented in ossimNitfTileSource, ossimGdalTileSource, ossimLasReader, ossimTiffTileSource, ossimPointCloudImageHandler, ossimHdf5ImageHandler, ossimPngReader, ossimOgrVectorTileSource, ossimOgrGdalTileSource, ossimKakaduNitfReader, ossimGeneralRasterTileSource, ossimOpjJp2Reader, ossimVpfTileSource, ossimImageCacheTileSource, ossimDtedTileSource, ossimBitMaskTileSource, ossimUsgsDemTileSource, ossimImageHandlerMtAdaptor, and ossimLandsatTileSource.
Definition at line 1424 of file ossimImageHandler.cpp.
References ossim::defaultMax(), ossimImageMetaData::getMaxPix(), ossimImageMetaData::getNumberOfBands(), ossimImageSource::getOutputScalarType(), and theMetaData.
Referenced by ossimInfo::getImageInfo(), ossimImageHandlerMtAdaptor::getMaxPixelValue(), ossimImageCacheTileSource::getMaxPixelValue(), ossimKakaduNitfReader::getMaxPixelValue(), ossimHdf5ImageHandler::getMaxPixelValue(), ossimTiffTileSource::getMaxPixelValue(), ossimGdalTileSource::getMaxPixelValue(), and ossimNitfTileSource::getMaxPixelValue().
|
virtual |
Retuns the min pixel value.
If there was an external eta data file then use the meta data from that file. If not given then we will return the default min
Reimplemented from ossimImageSource.
Reimplemented in ossimNitfTileSource, ossimGdalTileSource, ossimTiffTileSource, ossimLasReader, ossimHdf5ImageHandler, ossimPointCloudImageHandler, ossimOgrVectorTileSource, ossimOgrGdalTileSource, ossimKakaduNitfReader, ossimGeneralRasterTileSource, ossimVpfTileSource, ossimImageCacheTileSource, ossimDtedTileSource, ossimBitMaskTileSource, ossimUsgsDemTileSource, ossimImageHandlerMtAdaptor, and ossimLandsatTileSource.
Definition at line 1415 of file ossimImageHandler.cpp.
References ossim::defaultMin(), ossimImageMetaData::getMinPix(), ossimImageMetaData::getNumberOfBands(), ossimImageSource::getOutputScalarType(), and theMetaData.
Referenced by ossimInfo::getImageInfo(), ossimImageHandlerMtAdaptor::getMinPixelValue(), ossimImageCacheTileSource::getMinPixelValue(), ossimKakaduNitfReader::getMinPixelValue(), ossimHdf5ImageHandler::getMinPixelValue(), ossimTiffTileSource::getMinPixelValue(), ossimGdalTileSource::getMinPixelValue(), and ossimNitfTileSource::getMinPixelValue().
|
virtual |
Each band has a null pixel associated with it.
The null pixel represents an invalid value.
Reimplemented from ossimImageSource.
Reimplemented in ossimNitfTileSource, ossimGdalTileSource, ossimLasReader, ossimTiffTileSource, ossimH5ImageHandler, ossimPointCloudImageHandler, ossimHdf5ImageHandler, ossimOgrVectorTileSource, ossimOgrGdalTileSource, ossimKakaduNitfReader, ossimGeneralRasterTileSource, ossimVpfTileSource, ossimImageCacheTileSource, ossimDtedTileSource, ossimBitMaskTileSource, ossimUsgsDemTileSource, ossimImageHandlerMtAdaptor, ossimLandsatTileSource, ossimViirsHandler, and ossimViirsHandler.
Definition at line 1433 of file ossimImageHandler.cpp.
References ossim::defaultNull(), ossimImageMetaData::getNullPix(), ossimImageMetaData::getNumberOfBands(), ossimImageSource::getOutputScalarType(), and theMetaData.
Referenced by ossimInfo::getImageInfo(), ossimImageHandlerMtAdaptor::getNullPixelValue(), ossimImageCacheTileSource::getNullPixelValue(), ossimKakaduNitfReader::getNullPixelValue(), ossimHdf5ImageHandler::getNullPixelValue(), ossimH5ImageHandler::getNullPixelValue(), ossimTiffTileSource::getNullPixelValue(), ossimGdalTileSource::getNullPixelValue(), ossimNitfTileSource::getNullPixelValue(), and ossimRangeDomeTileSource::getTile().
|
virtual |
This returns the total number of decimation levels.
It is important to note that res level 0 or full resolution is included in the list and has decimation values 1.0, 1.0
Reimplemented from ossimImageSource.
Reimplemented in ossimLasReader, ossimGpkgReader, ossimPointCloudImageHandler, ossimTiffTileSource, ossimKakaduJ2kReader, ossimKakaduJp2Reader, ossimMrSidReader, ossimMG4LidarReader, ossimOgrGdalTileSource, ossimOgrVectorTileSource, ossimBitMaskTileSource, ossimCcfTileSource, ossimGdalTileSource, ossimOpjJp2Reader, ossimKakaduNitfReader, ossimVpfTileSource, ossimImageHandlerMtAdaptor, and ossimKakaduJpipHandler.
Definition at line 373 of file ossimImageHandler.cpp.
References getNumberOfDecimationLevels(), theOverview, and ossimRefPtr< T >::valid().
Referenced by buildHistogram(), establishDecimationFactors(), ossimAdrgTileSource::getImageGeometry(), ossimInfo::getImageInfo(), ossimKakaduJpipHandler::getNumberOfDecimationLevels(), ossimImageHandlerMtAdaptor::getNumberOfDecimationLevels(), ossimKakaduNitfReader::getNumberOfDecimationLevels(), ossimOpjJp2Reader::getNumberOfDecimationLevels(), ossimGdalTileSource::getNumberOfDecimationLevels(), ossimMG4LidarReader::getNumberOfDecimationLevels(), ossimMrSidReader::getNumberOfDecimationLevels(), ossimKakaduJp2Reader::getNumberOfDecimationLevels(), ossimKakaduJ2kReader::getNumberOfDecimationLevels(), ossimTiffTileSource::getNumberOfDecimationLevels(), ossimGpkgReader::getNumberOfDecimationLevels(), getNumberOfDecimationLevels(), getNumberOfReducedResSets(), getProperty(), hasOverviews(), ossimImageUtil::hasRequiredOverview(), initImageParameters(), ossimJpegTileSource::isValidRLevel(), isValidRLevel(), main(), and ossimBitMaskTileSource::open().
|
virtual |
Reimplemented in ossimGeoPdfReader, ossimNitfTileSource, ossimGpkgReader, ossimOgrVectorTileSource, ossimHdfReader, ossimH5ImageHandler, ossimHdf5ImageHandler, and ossimVideoImageHandler.
Definition at line 1497 of file ossimImageHandler.cpp.
References getEntryList().
Referenced by createDefaultValidVerticesFilename(), getFilenameWithThisExtension(), ossimInfo::getImagePalette(), ossimKakaduNitfOverviewBuilder::getOutputFile(), and openValidVertices().
|
pure virtual |
Pure virtual, derived classes must implement.
resLevel | Reduced resolution level to return lines of. Default = 0 |
Implemented in ossimKakaduJ2kReader, ossimKakaduJp2Reader, ossimMrSidReader, ossimGeoPdfReader, ossimMG4LidarReader, ossimCibCadrgTileSource, ossimTiffTileSource, ossimNitfTileSource, ossimHdfReader, ossimLasReader, ossimRpfCacheTileSource, ossimPointCloudImageHandler, ossimKakaduNitfReader, ossimAdrgTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimPngReader, ossimRangeDomeTileSource, ossimDtedTileSource, ossimOgrGdalTileSource, ossimHdf5ImageHandler, ossimOgrVectorTileSource, ossimGpkgReader, ossimGdalTileSource, ossimCcfTileSource, ossimJpegTileSource, ossimGeneralRasterTileSource, ossimKmlSuperOverlayReader, ossimBitMaskTileSource, ossimUsgsDemTileSource, ossimVpfTileSource, ossimTiledImageHandler, ossimImageHandlerMtAdaptor, ossimBandSeparateHandler, ossimKakaduJpipHandler, ossimImageCacheBase, and ossimVideoImageHandler.
Referenced by establishDecimationFactors(), ossimKakaduJ2kReader::getDecimationFactor(), getImageRectangle(), ossimVideoImageHandler::getImageTileHeight(), ossimKakaduJpipHandler::getNumberOfLines(), ossimImageHandlerMtAdaptor::getNumberOfLines(), ossimUsgsDemTileSource::getNumberOfLines(), ossimJpegTileSource::getNumberOfLines(), ossimGdalTileSource::getNumberOfLines(), ossimGpkgReader::getNumberOfLines(), ossimHdf5ImageHandler::getNumberOfLines(), ossimDtedTileSource::getNumberOfLines(), ossimH5ImageHandler::getNumberOfLines(), ossimOpjJp2Reader::getNumberOfLines(), ossimPngReader::getNumberOfLines(), ossimAdrgTileSource::getNumberOfLines(), ossimKakaduNitfReader::getNumberOfLines(), ossimRpfCacheTileSource::getNumberOfLines(), ossimNitfTileSource::getNumberOfLines(), ossimCibCadrgTileSource::getNumberOfLines(), ossimTiffTileSource::getNumberOfLines(), ossimGeoPdfReader::getNumberOfLines(), ossimKakaduJp2Reader::getNumberOfLines(), ossimGdalTileSource::getNumberOfSamples(), ossimOpjJp2Reader::getNumberOfSamples(), getProperty(), ossimOverviewBuilderBase::getRequiredResLevels(), ossimImageElevationHandler::getSizeOfElevCell(), ossimImageUtil::hasRequiredOverview(), ossimImageModel::initialize(), and ossimImageElevationHandler::open().
|
virtual |
This method is obsolete.
Please use getNumberOfDecimationLevels.
For backwards compatibility this calls getNumberOfDecimationLevels.
Definition at line 383 of file ossimImageHandler.cpp.
References getNumberOfDecimationLevels().
|
pure virtual |
Pure virtual, derived classes must implement.
resLevel | Reduced resolution level to return samples of. Default = 0 |
Implemented in ossimKakaduJ2kReader, ossimKakaduJp2Reader, ossimMrSidReader, ossimGeoPdfReader, ossimMG4LidarReader, ossimCibCadrgTileSource, ossimTiffTileSource, ossimLasReader, ossimHdfReader, ossimNitfTileSource, ossimRpfCacheTileSource, ossimPointCloudImageHandler, ossimKakaduNitfReader, ossimAdrgTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimPngReader, ossimDtedTileSource, ossimOgrGdalTileSource, ossimHdf5ImageHandler, ossimRangeDomeTileSource, ossimOgrVectorTileSource, ossimGpkgReader, ossimGdalTileSource, ossimCcfTileSource, ossimJpegTileSource, ossimGeneralRasterTileSource, ossimKmlSuperOverlayReader, ossimUsgsDemTileSource, ossimBitMaskTileSource, ossimVpfTileSource, ossimTiledImageHandler, ossimImageHandlerMtAdaptor, ossimBandSeparateHandler, ossimImageCacheBase, ossimKakaduJpipHandler, and ossimVideoImageHandler.
Referenced by establishDecimationFactors(), ossimKakaduJ2kReader::getDecimationFactor(), getImageRectangle(), ossimVideoImageHandler::getImageTileWidth(), ossimHdfReader::getNumberOfLines(), ossimMG4LidarReader::getNumberOfLines(), ossimMrSidReader::getNumberOfLines(), ossimKakaduJpipHandler::getNumberOfSamples(), ossimImageHandlerMtAdaptor::getNumberOfSamples(), ossimUsgsDemTileSource::getNumberOfSamples(), ossimJpegTileSource::getNumberOfSamples(), ossimGpkgReader::getNumberOfSamples(), ossimHdf5ImageHandler::getNumberOfSamples(), ossimDtedTileSource::getNumberOfSamples(), ossimPngReader::getNumberOfSamples(), ossimH5ImageHandler::getNumberOfSamples(), ossimAdrgTileSource::getNumberOfSamples(), ossimKakaduNitfReader::getNumberOfSamples(), ossimRpfCacheTileSource::getNumberOfSamples(), ossimNitfTileSource::getNumberOfSamples(), ossimHdfReader::getNumberOfSamples(), ossimTiffTileSource::getNumberOfSamples(), ossimCibCadrgTileSource::getNumberOfSamples(), ossimMG4LidarReader::getNumberOfSamples(), ossimGeoPdfReader::getNumberOfSamples(), ossimMrSidReader::getNumberOfSamples(), ossimKakaduJp2Reader::getNumberOfSamples(), getProperty(), ossimOverviewBuilderBase::getRequiredResLevels(), ossimImageElevationHandler::getSizeOfElevCell(), ossimImageUtil::hasRequiredOverview(), ossimImageModel::initialize(), and ossimImageElevationHandler::open().
bool ossimImageHandler::getOpenOverviewFlag | ( | ) | const |
Definition at line 1886 of file ossimImageHandler.cpp.
References theOpenOverviewFlag.
|
virtual |
Definition at line 835 of file ossimImageHandler.cpp.
References ossimRefPtr< T >::get(), and theOverview.
Referenced by ossimSingleImageChain::addImageHandler(), ossimInfo::getImageInfo(), and ossimImageHandlerFactory::openSrcRecord().
ossimFilename ossimImageHandler::getOverviewFile | ( | ) | const |
|
protectedvirtual |
Method to get an overview tile.
Derived classes should override if they have built in overviews or something different than the standard external overview file. Image handlers can call this method from getTile in place of inlining code or if derived class needs to override this method.
resLevel | The resolution level to pull from with resLevel 0 being full res. |
result | The tile to stuff. passing. |
Reimplemented in ossimKakaduJp2Reader, ossimKakaduJ2kReader, ossimOpjJp2Reader, and ossimKakaduNitfReader.
Definition at line 1812 of file ossimImageHandler.cpp.
References ossimImageData::getNumberOfBands(), ossimImageSource::getNumberOfOutputBands(), ossimImageSource::getTile(), isValidRLevel(), status, theOverview, and ossimRefPtr< T >::valid().
Referenced by ossimKakaduNitfReader::getOverviewTile(), ossimUsgsDemTileSource::getTile(), ossimJpegTileSource::getTile(), ossimGpkgReader::getTile(), ossimHdf5ImageHandler::getTile(), ossimCcfTileSource::getTile(), ossimHdfReader::getTile(), ossimDtedTileSource::getTile(), ossimPngReader::getTile(), ossimH5ImageHandler::getTile(), ossimAdrgTileSource::getTile(), ossimTiffTileSource::getTile(), ossimGeoPdfReader::getTile(), ossimRpfCacheTileSource::getTile(), ossimNitfTileSource::getTile(), ossimCibCadrgTileSource::getTile(), and ossimKakaduJpipHandler::getTileAtRes().
|
inline |
Returns the raster pixel alignment type.
OSSIM treats all alignments internally as pixel-is-point. This is only a flag to identify the source's alignment type.
Definition at line 722 of file ossimImageHandler.h.
|
virtual |
Reimplemented from ossimImageSource.
Reimplemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimLasReader, ossimTiffTileSource, ossimGdalTileSource, ossimPointCloudImageHandler, ossimH5ImageHandler, ossimNitfTileSource, ossimHdf5ImageHandler, ossimOgrGdalTileSource, ossimDtedTileSource, ossimAdrgTileSource, ossimCcfTileSource, ossimJpegTileSource, ossimPngReader, ossimGpkgReader, ossimRangeDomeTileSource, ossimEnviTileSource, ossimLandsatTileSource, ossimKakaduJpipHandler, ossimSrtmTileSource, and ossimDoqqTileSource.
Definition at line 1601 of file ossimImageHandler.cpp.
References ossimStringProperty::addConstraint(), createDefaultGeometryFilename(), createDefaultHistogramFilename(), createDefaultMetadataFilename(), createDefaultOverviewFilename(), createDefaultValidVerticesFilename(), ossimKeywordNames::ENTRY_KW, getCurrentEntry(), getEntryList(), getFilename(), getNumberOfDecimationLevels(), ossimImageSource::getNumberOfInputBands(), getNumberOfLines(), getNumberOfSamples(), ossimImageSource::getOutputScalarType(), ossimScalarTypeLut::instance(), ossimKeywordNames::NUMBER_BANDS_KW, ossimKeywordNames::NUMBER_LINES_KW, ossimKeywordNames::NUMBER_REDUCED_RES_SETS_KW, ossimKeywordNames::NUMBER_SAMPLES_KW, ossimFilenameProperty::ossimFilenamePropertyIoType_INPUT, ossimKeywordNames::SCALAR_TYPE_KW, ossimProperty::setCacheRefreshBit(), ossimStringProperty::setEditableFlag(), ossimProperty::setFullRefreshBit(), ossimFilenameProperty::setIoType(), ossimProperty::setReadOnlyFlag(), and ossimString::toString().
Referenced by ossimHistogramMatchFilter::autoLoadInputHistogram(), ossimDoqqTileSource::getProperty(), ossimRangeDomeTileSource::getProperty(), ossimGpkgReader::getProperty(), ossimJpegTileSource::getProperty(), ossimCcfTileSource::getProperty(), ossimAdrgTileSource::getProperty(), ossimDtedTileSource::getProperty(), ossimNitfTileSource::getProperty(), ossimTiffTileSource::getProperty(), ossimRpfCacheTileSource::getProperty(), ossimCibCadrgTileSource::getProperty(), ossimInfo::isImageEntryOverview(), and ossimImageHandlerRegistry::printReaderProps().
|
virtual |
Reimplemented from ossimImageSource.
Reimplemented in ossimCibCadrgTileSource, ossimLasReader, ossimGdalTileSource, ossimTiffTileSource, ossimH5ImageHandler, ossimHdf5ImageHandler, ossimNitfTileSource, ossimOgrGdalTileSource, ossimDtedTileSource, ossimAdrgTileSource, ossimCcfTileSource, ossimJpegTileSource, ossimPngReader, ossimGpkgReader, ossimEnviTileSource, ossimLandsatTileSource, ossimSrtmTileSource, ossimKakaduJpipHandler, and ossimDoqqTileSource.
Definition at line 1728 of file ossimImageHandler.cpp.
References ossimKeywordNames::ENTRY_KW, ossimImageSource::getPropertyNames(), ossimKeywordNames::NUMBER_BANDS_KW, ossimKeywordNames::NUMBER_LINES_KW, ossimKeywordNames::NUMBER_REDUCED_RES_SETS_KW, ossimKeywordNames::NUMBER_SAMPLES_KW, and ossimKeywordNames::SCALAR_TYPE_KW.
Referenced by ossimDoqqTileSource::getPropertyNames(), ossimKakaduJpipHandler::getPropertyNames(), ossimGpkgReader::getPropertyNames(), ossimJpegTileSource::getPropertyNames(), ossimCcfTileSource::getPropertyNames(), ossimAdrgTileSource::getPropertyNames(), ossimDtedTileSource::getPropertyNames(), ossimNitfTileSource::getPropertyNames(), ossimHdf5ImageHandler::getPropertyNames(), ossimH5ImageHandler::getPropertyNames(), ossimTiffTileSource::getPropertyNames(), ossimCibCadrgTileSource::getPropertyNames(), and ossimImageHandlerRegistry::printReaderProps().
|
virtual |
Convenience method to get the zero based rgb output band list.
This method returns false and is here only so derived classes can override.
bandList |
Reimplemented in ossimNitfTileSource, and ossimEnviTileSource.
Definition at line 1283 of file ossimImageHandler.cpp.
References ossimImageMetaData::getRgbBands(), and theMetaData.
Referenced by ossimBandSelector::getRgbBandList(), ossimInfo::getRgbBands(), and ossimSingleImageChain::setToThreeBands().
ossim_uint32 ossimImageHandler::getStartingResLevel | ( | ) | const |
Definition at line 1876 of file ossimImageHandler.cpp.
References theStartingResLevel.
|
inline |
Definition at line 740 of file ossimImageHandler.h.
Referenced by ossimImageHandlerRegistry::addToStateCache(), and ossimTiffProjectionFactory::createProjection().
|
inline |
Definition at line 741 of file ossimImageHandler.h.
|
inline |
Definition at line 737 of file ossimImageHandler.h.
|
inline |
Definition at line 739 of file ossimImageHandler.h.
|
virtual |
Returns the supplementary directory.
Definition at line 1577 of file ossimImageHandler.cpp.
References theSupplementaryDirectory.
|
virtual |
ordering specifies how the vertices should be arranged.
valid image vertices is basically the tightly fit convex hull of the image. Usually an image has NULL values and are internally not upright rectangular. This can cause problems some spatial filters.
The default implementation is to return the bounding rect.
Definition at line 1232 of file ossimImageHandler.cpp.
References getDecimationFactor(), ossimImageSource::getValidImageVertices(), ossimDpt::hasNans(), OSSIM_COUNTERCLOCKWISE_ORDER, theValidImageVertices, ossimDpt::x, x, and ossimDpt::y.
Referenced by ATP::AtpGenerator::getValidVertices().
|
virtual |
Definition at line 1834 of file ossimImageHandler.cpp.
References theLut, and ossimRefPtr< T >::valid().
Referenced by ossimGdalWriter::checkColorLut().
|
virtual |
Definition at line 1544 of file ossimImageHandler.cpp.
References ossimImageMetaData::isValid(), and theMetaData.
Referenced by ossimGdalTileSource::computeMinMax().
|
virtual |
Definition at line 840 of file ossimImageHandler.cpp.
References getNumberOfDecimationLevels().
|
virtual |
initialize Does nothing in this class.
Implemented to satisfy pure virtual.
Implements ossimImageSource.
Reimplemented in ossimRangeDomeTileSource, and ossimVideoImageHandler.
Definition at line 104 of file ossimImageHandler.cpp.
|
protected |
Convenience method to set things needed in the image geometry from the image handler.
At time of writing sets the decimation and image size.
geom | ossimImageGeometry to initiale. |
Definition at line 1898 of file ossimImageHandler.cpp.
References getBoundingRect(), ossimImageGeometry::getImageSize(), getNumberOfDecimationLevels(), ossimImageGeometry::getNumberOfDecimations(), ossimIpt::hasNans(), ossimIrect::height(), ossimImageGeometry::setDiscreteDecimation(), ossimImageGeometry::setImageSize(), theDecimationFactors, and ossimIrect::width().
Referenced by ossimDoqqTileSource::getImageGeometry(), ossimQbTileFilesHandler::getImageGeometry(), ossimERSTileSource::getImageGeometry(), ossimKakaduJpipHandler::getImageGeometry(), ossimVpfTileSource::getImageGeometry(), ossimGdalTileSource::getImageGeometry(), ossimDtedTileSource::getImageGeometry(), ossimUsgsDemTileSource::getImageGeometry(), ossimGeneralRasterTileSource::getImageGeometry(), ossimOpjJp2Reader::getImageGeometry(), ossimJpegTileSource::getImageGeometry(), ossimMG4LidarReader::getImageGeometry(), ossimGeoPdfReader::getImageGeometry(), ossimMrSidReader::getImageGeometry(), ossimH5ImageHandler::getImageGeometry(), ossimLasReader::getImageGeometry(), ossimRpfCacheTileSource::getImageGeometry(), ossimKakaduJp2Reader::getImageGeometry(), ossimPngReader::getImageGeometry(), ossimGpkgReader::getImageGeometry(), ossimCibCadrgTileSource::getImageGeometry(), and getImageGeometry().
|
protected |
Opens file and attempts to initialize the valid image vertices.
Returns true on success, false on error.
Definition at line 267 of file ossimImageHandler.cpp.
References ossim::StreamFactoryRegistry::createIstream(), ossimString::find(), ossim::StreamFactoryRegistry::instance(), m_state, and ossimErrorCodes::OSSIM_OK.
Referenced by openValidVertices().
|
virtual |
Indicates whether or not the image handler can control output band selection via the setOutputBandList method.
Reimplemented in ossimGeneralRasterTileSource, and ossimTiffTileSource.
Definition at line 1273 of file ossimImageHandler.cpp.
Referenced by ossimOverviewBuilderBase::finalize(), ossimBandSelector::getBandSelectableImageHandler(), ossimTiffTileSource::isBandSelector(), ossimGeneralRasterTileSource::isBandSelector(), ossimOverviewBuilderBase::setInputSource(), and setOutputToInputBandList().
|
virtual |
Convenience method to see if band list is identity.
bandList | List to check. |
Definition at line 1301 of file ossimImageHandler.cpp.
References ossimImageSource::getOutputBandList().
Referenced by ossimTiffTileSource::saveState().
|
virtual |
Indicates whether or not the image is tiled internally.
This implementation returns true if (getImageTileWidth() && getImageTileHeight()) are both non zero. Override in the image handler if something else is desired. Returns true if tiled, false if not.
Reimplemented in ossimTiledImageHandler, and ossimKakaduJpipHandler.
Definition at line 1369 of file ossimImageHandler.cpp.
References getImageTileHeight(), and getImageTileWidth().
Referenced by ossimSingleImageChain::createRenderedChain().
|
pure virtual |
Derived classes must implement this method to be concrete.
Implemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimGdalTileSource, ossimKakaduJ2kReader, ossimKakaduJp2Reader, ossimPngReader, ossimNitfTileSource, ossimTiffTileSource, ossimMrSidReader, ossimGpkgReader, ossimImageCacheBase, ossimGeoPdfReader, ossimOgrVectorTileSource, ossimOgrGdalTileSource, ossimCcfTileSource, ossimDtedTileSource, ossimMG4LidarReader, ossimAdrgTileSource, ossimUsgsDemTileSource, ossimJpegTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimHdfReader, ossimGeneralRasterTileSource, ossimHdf5ImageHandler, ossimVpfTileSource, ossimKmlSuperOverlayReader, ossimBitMaskTileSource, ossimRangeDomeTileSource, ossimLasReader, ossimPointCloudImageHandler, ossimImageHandlerMtAdaptor, ossimTiledImageHandler, ossimBandSeparateHandler, ossimKakaduJpipHandler, and ossimVideoImageHandler.
Referenced by buildHistogram(), buildOverview(), getImageHistogram(), getImageRectangle(), ossimImageHandlerMtAdaptor::isOpen(), open(), and useEntryIndex().
|
virtual |
Determines if the passed in reslution level is valid.
If this reader is used as an overview the caller should pass in a resLevel relative to the full image.
resLevel | zero base resolution level. |
Reimplemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimTiffTileSource, ossimImageCacheBase, ossimJpegTileSource, ossimGeneralRasterTileSource, and ossimBitMaskTileSource.
Definition at line 1207 of file ossimImageHandler.cpp.
References getNumberOfDecimationLevels(), and theStartingResLevel.
Referenced by getImageRectangle(), ossimGdalTileSource::getMaxSize(), ossimGdalTileSource::getNumberOfLines(), ossimOpjJp2Reader::getNumberOfLines(), ossimKakaduNitfReader::getNumberOfLines(), ossimMrSidReader::getNumberOfLines(), ossimKakaduJp2Reader::getNumberOfLines(), ossimGdalTileSource::getNumberOfSamples(), ossimOpjJp2Reader::getNumberOfSamples(), ossimKakaduNitfReader::getNumberOfSamples(), ossimMrSidReader::getNumberOfSamples(), ossimKakaduJp2Reader::getNumberOfSamples(), ossimKakaduNitfReader::getOverviewTile(), getOverviewTile(), ossimUsgsDemTileSource::getTile(), ossimOpjJp2Reader::getTile(), ossimGdalTileSource::getTile(), ossimGpkgReader::getTile(), ossimHdf5ImageHandler::getTile(), ossimCcfTileSource::getTile(), ossimHdfReader::getTile(), ossimDtedTileSource::getTile(), ossimPngReader::getTile(), ossimH5ImageHandler::getTile(), ossimMrSidReader::getTile(), ossimMG4LidarReader::getTile(), ossimAdrgTileSource::getTile(), ossimKakaduJ2kReader::getTile(), ossimKakaduJp2Reader::getTile(), ossimGeoPdfReader::getTile(), ossimNitfTileSource::getTile(), ossimJpegTileSource::isValidRLevel(), ossimRpfCacheTileSource::isValidRLevel(), and ossimCibCadrgTileSource::isValidRLevel().
|
virtual |
There is an external file with an omd extension.
this file contains additional information about the image such as the null pixel, min and max values. For general raster it will contain much more than that.
Reimplemented in ossimDtedTileSource, and ossimHdf5ImageHandler.
Definition at line 1374 of file ossimImageHandler.cpp.
References ossimString::c_str(), ossimImageMetaData::clear(), ossim::StreamFactoryRegistry::createIstream(), getFilenameWithThisExtension(), ossimImageSource::getOutputScalarType(), ossim::StreamFactoryRegistry::instance(), ossimImageMetaData::loadState(), m_state, ossimKeywordlist::parseStream(), ossimImageMetaData::setScalarType(), and theMetaData.
Referenced by ossimHdf5ImageHandler::loadMetaData().
|
virtual |
Method to the load (recreate) the state of an object from a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageSource.
Reimplemented in ossimCibCadrgTileSource, ossimLasReader, ossimKakaduJp2Reader, ossimKakaduJ2kReader, ossimPointCloudImageHandler, ossimMrSidReader, ossimGeoPdfReader, ossimMG4LidarReader, ossimTiffTileSource, ossimRpfCacheTileSource, ossimHdfReader, ossimNitfTileSource, ossimCcfTileSource, ossimOgrGdalTileSource, ossimAdrgTileSource, ossimDtedTileSource, ossimOgrVectorTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimPngReader, ossimGdalTileSource, ossimHdf5ImageHandler, ossimGpkgReader, ossimUsgsDemTileSource, ossimJpegTileSource, ossimImageCacheBase, ossimKmlSuperOverlayReader, ossimRangeDomeTileSource, ossimVpfTileSource, ossimGeneralRasterTileSource, ossimTiledImageHandler, ossimKakaduJpipHandler, ossimBandSeparateHandler, ossimplugins::ossimTerraSarTiffReader, ossimplugins::ossimRadarSat2TiffReader, ossimEnviTileSource, ossimLandsatTileSource, ossimImageHandlerMtAdaptor, ossimSrtmTileSource, ossimERSTileSource, ossimQuickbirdNitfTileSource, and ossimDoqqTileSource.
Definition at line 141 of file ossimImageHandler.cpp.
References theDecimationFactors.
Referenced by ossimDoqqTileSource::loadState(), ossimBandSeparateHandler::loadState(), ossimKakaduJpipHandler::loadState(), ossimTiledImageHandler::loadState(), ossimVpfTileSource::loadState(), ossimRangeDomeTileSource::loadState(), ossimKmlSuperOverlayReader::loadState(), ossimJpegTileSource::loadState(), ossimUsgsDemTileSource::loadState(), ossimGpkgReader::loadState(), ossimHdf5ImageHandler::loadState(), ossimGdalTileSource::loadState(), ossimH5ImageHandler::loadState(), ossimOpjJp2Reader::loadState(), ossimPngReader::loadState(), ossimAdrgTileSource::loadState(), ossimDtedTileSource::loadState(), ossimOgrVectorTileSource::loadState(), ossimOgrGdalTileSource::loadState(), ossimCcfTileSource::loadState(), ossimNitfTileSource::loadState(), ossimHdfReader::loadState(), ossimTiffTileSource::loadState(), ossimMG4LidarReader::loadState(), ossimGeoPdfReader::loadState(), ossimMrSidReader::loadState(), ossimKakaduJ2kReader::loadState(), ossimKakaduJp2Reader::loadState(), ossimLasReader::loadState(), ossimKakaduJpipInfo::open(), ossimHdf5PluginHandlerFactory::open(), and ossimplugins::ossimPluginReaderFactory::open().
|
pure virtual |
Pure virtual open.
Derived classes must implement.
Implemented in ossimH5ImageHandler, ossimTiffTileSource, ossimPngReader, ossimGpkgReader, ossimHdf5ImageHandler, ossimJpegTileSource, ossimKakaduJ2kReader, ossimKakaduJp2Reader, ossimMrSidReader, ossimGeoPdfReader, ossimOpjJp2Reader, ossimMG4LidarReader, ossimGeneralRasterTileSource, ossimHdfReader, ossimBitMaskTileSource, ossimCibCadrgTileSource, ossimRangeDomeTileSource, ossimNitfTileSource, ossimRpfCacheTileSource, ossimOgrGdalTileSource, ossimAdrgTileSource, ossimOgrVectorTileSource, ossimImageHandlerMtAdaptor, ossimGdalTileSource, ossimLasReader, ossimDtedTileSource, ossimImageCacheTileSource, ossimPointCloudImageHandler, ossimKmlSuperOverlayReader, ossimCcfTileSource, ossimKakaduJpipHandler, ossimTiledImageHandler, ossimUsgsDemTileSource, ossimImageCacheBase, ossimBandSeparateHandler, ossimVpfTileSource, ossimEnviTileSource, ossimLandsatTileSource, ossimQbTileFilesHandler, ossimSrtmTileSource, ossimVideoImageHandler, ossimQuickbirdTiffTileSource, and ossimQuickbirdNitfTileSource.
Referenced by ossimImageCacheTileSource::fillTile(), ossimDtedTileSource::loadState(), main(), ossimImageHandlerFactory::open(), ossimHdf5PluginHandlerFactory::open(), ossimplugins::ossimPluginReaderFactory::open(), ossimKakaduJpipInfo::open(), ossimImageHandlerMtAdaptor::open(), ossimImageHandlerRegistry::open(), open(), ossimGdalFactory::openOverview(), ossimOpjReaderFactory::openOverview(), ossimImageHandlerFactory::openOverview(), and ossimKakaduReaderFactory::openOverview().
|
virtual |
Opens the image file.
imageFile | File to open. |
entryIndex |
Definition at line 1173 of file ossimImageHandler.cpp.
References close(), isOpen(), open(), setCurrentEntry(), and setFilename().
|
virtual |
Reimplemented in ossimJpegTileSource, ossimTiffTileSource, ossimplugins::ossimTerraSarTiffReader, ossimplugins::ossimRadarSat2TiffReader, ossimERSTileSource, and ossimDoqqTileSource.
Definition at line 1161 of file ossimImageHandler.cpp.
References close(), isOpen(), open(), and setFilename().
|
virtual |
Definition at line 1192 of file ossimImageHandler.cpp.
References close(), isOpen(), open(), setFilename(), and setState().
|
virtual |
Searches for an overview.
Uses theImageFile as a key. If theImageFile = "foo.tif" it will look for "foo.ovr" first, then "foo_ovr.tif" next. Calls openOverview(const ossimFilename& overview_file)
Definition at line 927 of file ossimImageHandler.cpp.
Referenced by ossimSingleImageChain::addImageHandler(), buildOverview(), and ossimImageHandlerFactory::openSrcRecord().
|
virtual |
Calls closeOverview(), then attempts to open the overview_file.
On success, theOverviewFile will be set and theOverview will be initialized. On failure, theOverviewFile will be cleared and theOverview deleted and set to NULL.
overview_file | ossimFilename representing overview file. |
Definition at line 845 of file ossimImageHandler.cpp.
|
virtual |
Opens the valid image vertices file and sets theValidImageVerticesFile variable.
vertices_file | File name containing valid vertices for image. |
Definition at line 1132 of file ossimImageHandler.cpp.
References initVertices().
Referenced by ATP::AtpGenerator::getValidVertices().
|
virtual |
Creates vertices file name based on image, then tries to open.
If theImageFile = "foo.tif" it will look for "foo_vertices.kwl".
Definition at line 1137 of file ossimImageHandler.cpp.
References ossimFilename::dirCat(), ossimFilename::fileNoExtension(), getCurrentEntry(), getNumberOfEntries(), ossimFilename::path(), theImageFile, and ossimString::toString().
|
virtual |
Saves the image geometry to a file that will be made based on the image file name.
Reimplemented from ossimImageSource.
Definition at line 814 of file ossimImageHandler.cpp.
References getFilenameWithThisExtension().
|
virtual |
Saves the image geometry to a file that will be made based on the image file name.
Reimplemented from ossimImageSource.
Definition at line 820 of file ossimImageHandler.cpp.
References ossimString::chars(), ossimImageGeometry::saveState(), theGeometry, ossimRefPtr< T >::valid(), and ossimKeywordlist::write().
|
virtual |
Method to save the state of an object to a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageSource.
Reimplemented in ossimGeoPdfReader, ossimLasReader, ossimCibCadrgTileSource, ossimPointCloudImageHandler, ossimTiffTileSource, ossimRpfCacheTileSource, ossimNitfTileSource, ossimCcfTileSource, ossimOgrGdalTileSource, ossimAdrgTileSource, ossimDtedTileSource, ossimOgrVectorTileSource, ossimH5ImageHandler, ossimOpjJp2Reader, ossimPngReader, ossimGdalTileSource, ossimHdf5ImageHandler, ossimGpkgReader, ossimRangeDomeTileSource, ossimJpegTileSource, ossimUsgsDemTileSource, ossimKmlSuperOverlayReader, ossimVpfTileSource, ossimGeneralRasterTileSource, ossimImageCacheBase, ossimKakaduJpipHandler, ossimTiledImageHandler, ossimBandSeparateHandler, ossimplugins::ossimTerraSarTiffReader, ossimplugins::ossimRadarSat2TiffReader, ossimEnviTileSource, ossimImageHandlerMtAdaptor, ossimSrtmTileSource, and ossimQuickbirdNitfTileSource.
Definition at line 111 of file ossimImageHandler.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimKeywordNames::FILENAME_KW, ossimErrorStatusInterface::getErrorStatus(), ossimErrorCodes::OSSIM_ERROR, ossimNotify(), ossimNotifyLevel_WARN, ossimImageSource::saveState(), and theImageFile.
Referenced by ossimBandSeparateHandler::saveState(), ossimTiledImageHandler::saveState(), ossimKakaduJpipHandler::saveState(), ossimImageCacheBase::saveState(), ossimKmlSuperOverlayReader::saveState(), ossimJpegTileSource::saveState(), ossimRangeDomeTileSource::saveState(), ossimGpkgReader::saveState(), ossimHdf5ImageHandler::saveState(), ossimGdalTileSource::saveState(), ossimH5ImageHandler::saveState(), ossimOpjJp2Reader::saveState(), ossimOgrVectorTileSource::saveState(), ossimDtedTileSource::saveState(), ossimAdrgTileSource::saveState(), ossimOgrGdalTileSource::saveState(), ossimCcfTileSource::saveState(), ossimNitfTileSource::saveState(), ossimRpfCacheTileSource::saveState(), ossimTiffTileSource::saveState(), ossimPointCloudImageHandler::saveState(), ossimCibCadrgTileSource::saveState(), and ossimGeoPdfReader::saveState().
|
virtual |
entryIdx | Entry number to select. |
Reimplemented in ossimCibCadrgTileSource, ossimRpfCacheTileSource, ossimGpkgReader, ossimOgrGdalTileSource, ossimNitfTileSource, ossimGeoPdfReader, ossimGdalTileSource, ossimLasReader, ossimH5ImageHandler, ossimOgrVectorTileSource, ossimHdf5ImageHandler, ossimPointCloudImageHandler, ossimHdfReader, and ossimVideoImageHandler.
Definition at line 1466 of file ossimImageHandler.cpp.
Referenced by ossimSingleImageChain::addImageHandler(), buildAllHistograms(), buildAllOverviews(), ATP::AtpGenerator::constructChain(), ossimChipProcTool::createInputChain(), ossimVerticesFinderTool::execute(), ossimInfo::getCenterGround(), ossimInfo::getCenterImage(), ossimInfo::getGrd2img(), ossimInfo::getImageBounds(), ossimInfo::getImageGeometryInfo(), ossimInfo::getImageInfo(), ossimInfo::getImagePalette(), ossimInfo::getImageRect(), ossimInfo::getImg2grd(), ossimInfo::getNorthUpAngle(), ossimInfo::getUpIsUpAngle(), ossimSubImageTool::initialize(), open(), ossimImageHandlerFactory::openSrcRecord(), ossimAutRegUtil::setChainEntry(), ossimChipperUtil::setChainEntry(), and setProperty().
|
virtual |
Sets the filename.
Definition at line 1549 of file ossimImageHandler.cpp.
References theImageFile.
Referenced by ossimHdf5Tool::loadImageFiles(), and open().
|
virtual |
Sets the image geometry object.
Definition at line 809 of file ossimImageHandler.cpp.
References theGeometry.
|
inline |
Sets the image ID in case it is externally generated.
Definition at line 718 of file ossimImageHandler.h.
Referenced by ATP::AtpGenerator::constructChain().
|
virtual |
convenience method to set max pixel value.
Added for overview readers so that the image handler that owns the overview reader can pass on it's max value.
band | Zero based band to set. |
pix | Max pixel value. |
Reimplemented in ossimKakaduNitfReader.
Definition at line 1449 of file ossimImageHandler.cpp.
References ossimImageMetaData::setMaxPix(), and theMetaData.
Referenced by ossimKakaduNitfReader::setMaxPixelValue().
|
virtual |
convenience method to set min pixel value.
Added for overview readers so that the image handler that owns the overview reader can pass on it's min value.
band | Zero based band to set. |
pix | Min pixel value. |
Reimplemented in ossimKakaduNitfReader.
Definition at line 1443 of file ossimImageHandler.cpp.
References ossimImageMetaData::setMinPix(), and theMetaData.
Referenced by ossimKakaduNitfReader::setMinPixelValue().
|
virtual |
convenience method to set null pixel value.
Added for overview readers so that the image handler that owns the overview reader can pass on it's max value.
band | Zero based band to set. |
pix | Null pixel value. |
Reimplemented in ossimKakaduNitfReader.
Definition at line 1455 of file ossimImageHandler.cpp.
References ossimImageMetaData::setNullPix(), and theMetaData.
Referenced by ossimKakaduNitfReader::setNullPixelValue().
void ossimImageHandler::setOpenOverviewFlag | ( | bool | flag | ) |
Sets theOpenOverviewFlag.
If true opening of overviews will be attempted on normal open. If false only the base image will be opened (shallow open). Defaulted to true in constructor.
Definition at line 1891 of file ossimImageHandler.cpp.
References theOpenOverviewFlag.
Referenced by ossimHdf5PluginHandlerFactory::open(), ossimplugins::ossimPluginReaderFactory::open(), ossimImageHandlerFactory::open(), ossimPngReaderFactory::open(), ossimKakaduReaderFactory::open(), ossimGdalFactory::openOverview(), ossimOpjReaderFactory::openOverview(), ossimImageHandlerFactory::openOverview(), and ossimKakaduReaderFactory::openOverview().
|
virtual |
If the image handler "isBandSeletor()" then the band selection of the output chip can be controlled.
This method returns false. Derived classes that are band selectors should override.
band_list | Requested bands. |
Reimplemented in ossimGdalTileSource, ossimHdfReader, ossimGeneralRasterTileSource, and ossimTiffTileSource.
Definition at line 1278 of file ossimImageHandler.cpp.
Referenced by ossimOverviewBuilderBase::finalize(), ossimBandSelector::setOutputBandList(), ossimTiffTileSource::setOutputBandList(), ossimGeneralRasterTileSource::setOutputBandList(), setOutputBandList(), and setOutputToInputBandList().
|
protectedvirtual |
Convenience method to set output band list.
This performs range checking and calls theOverview->setOutputBandList on success.
inBandList | The new band list. |
outBandList | Band list to initialize. |
Definition at line 1331 of file ossimImageHandler.cpp.
References ossimImageSource::getNumberOfInputBands(), ossimImageSource::getOutputBandList(), setOutputBandList(), theOverview, and ossimRefPtr< T >::valid().
|
virtual |
If the image handler "isBandSeletor()" then the band selection of the output are set to input or identity.
Does nothing and returns false if not a band selector.
Definition at line 1289 of file ossimImageHandler.cpp.
References ossimImageSource::getOutputBandList(), isBandSelector(), and setOutputBandList().
Referenced by ossimOverviewBuilderBase::setInputSource().
|
virtual |
Reimplemented from ossimImageSource.
Reimplemented in ossimLasReader, ossimTiffTileSource, ossimGdalTileSource, ossimPointCloudImageHandler, ossimNitfTileSource, ossimH5ImageHandler, ossimOgrGdalTileSource, ossimHdf5ImageHandler, ossimPngReader, ossimGpkgReader, ossimRangeDomeTileSource, and ossimKakaduJpipHandler.
Definition at line 1582 of file ossimImageHandler.cpp.
References ossimKeywordNames::ENTRY_KW, ossimProperty::getName(), setCurrentEntry(), ossimRefPtr< T >::valid(), and ossimProperty::valueToString().
Referenced by ossimKakaduJpipHandler::setProperty(), ossimRangeDomeTileSource::setProperty(), ossimGpkgReader::setProperty(), ossimNitfTileSource::setProperty(), and ossimTiffTileSource::setProperty().
void ossimImageHandler::setStartingResLevel | ( | ossim_uint32 | level | ) |
Definition at line 1881 of file ossimImageHandler.cpp.
References theStartingResLevel.
|
inline |
Definition at line 742 of file ossimImageHandler.h.
Referenced by close(), and open().
|
virtual |
Sets the supplementary directory.
Definition at line 1559 of file ossimImageHandler.cpp.
References completeOpen(), ossimFilename::isDir(), ossimFilename::path(), theDecimationFactors, theOverview, theSupplementaryDirectory, and ossimRefPtr< T >::valid().
Referenced by ossimSingleImageChain::addImageHandler(), and ossimImageHandlerFactory::openSrcRecord().
bool ossimImageHandler::useEntryIndex | ( | ) | const |
Convenience method to determine if entry index should be used for support files, e.g.
file.his or file_e1.his.
Definition at line 1481 of file ossimImageHandler.cpp.
References getEntryList(), and isOpen().
|
virtual |
Outputs vertices to file and updates the internal vertex array variable "theValidImageVertices".
vertices | Array of ossimIpts to write. |
file | Name of output file to write to. If file is empty, the output file will be the image file with no extension + _vertices.kwl. So if the image is "foo.tif" you'll get "foo_vertices.kwl". |
Definition at line 1085 of file ossimImageHandler.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimPolygon::checkOrdering(), createDefaultValidVerticesFilename(), ossimFilename::exists(), ossimPolygon::getOrdering(), OSSIM_COUNTERCLOCKWISE_ORDER, theValidImageVertices, ossimString::toString(), and ossimKeywordlist::write().
|
protected |
Definition at line 856 of file ossimImageHandler.h.
Referenced by initVertices(), and loadMetaData().
|
protected |
Definition at line 840 of file ossimImageHandler.h.
Referenced by close(), ossimBitMaskTileSource::establishDecimationFactors(), ossimRpfCacheTileSource::establishDecimationFactors(), ossimNitfTileSource::establishDecimationFactors(), establishDecimationFactors(), getDecimationFactor(), getDecimationFactors(), ossimBitMaskTileSource::getNumberOfDecimationLevels(), initImageParameters(), ossimRangeDomeTileSource::loadState(), ossimPointCloudImageHandler::loadState(), loadState(), ossimHdfReader::setCurrentEntry(), ossimGdalTileSource::setCurrentEntry(), ossimCibCadrgTileSource::setCurrentEntry(), and setSupplementaryDirectory().
|
mutableprotected |
Definition at line 838 of file ossimImageHandler.h.
Referenced by ossimRangeDomeTileSource::close(), close(), ossimMrSidReader::getDecimationFactor(), ossimMrSidReader::getDecimationFactors(), ossimViirsHandler::getImageGeometry(), ossimQuickbirdTiffTileSource::getImageGeometry(), ossimDoqqTileSource::getImageGeometry(), ossimQbTileFilesHandler::getImageGeometry(), ossimERSTileSource::getImageGeometry(), ossimVideoImageHandler::getImageGeometry(), ossimKakaduJpipHandler::getImageGeometry(), ossimRangeDomeTileSource::getImageGeometry(), ossimVpfTileSource::getImageGeometry(), ossimDtedTileSource::getImageGeometry(), ossimGdalTileSource::getImageGeometry(), ossimAdrgTileSource::getImageGeometry(), ossimGeneralRasterTileSource::getImageGeometry(), ossimUsgsDemTileSource::getImageGeometry(), ossimHdfReader::getImageGeometry(), ossimOpjJp2Reader::getImageGeometry(), ossimJpegTileSource::getImageGeometry(), ossimMG4LidarReader::getImageGeometry(), ossimPointCloudImageHandler::getImageGeometry(), ossimGeoPdfReader::getImageGeometry(), ossimMrSidReader::getImageGeometry(), ossimH5ImageHandler::getImageGeometry(), ossimLasReader::getImageGeometry(), ossimRpfCacheTileSource::getImageGeometry(), ossimKakaduJp2Reader::getImageGeometry(), ossimPngReader::getImageGeometry(), ossimGpkgReader::getImageGeometry(), ossimCibCadrgTileSource::getImageGeometry(), getImageGeometry(), ossimOgrGdalTileSource::getInternalImageGeometry(), ossimRangeDomeTileSource::getNumberOfLines(), ossimPointCloudImageHandler::getNumberOfLines(), ossimRangeDomeTileSource::getNumberOfSamples(), ossimPointCloudImageHandler::getNumberOfSamples(), ossimMrSidReader::getTile(), ossimPointCloudImageHandler::getTile(), ossimRangeDomeTileSource::getTile(), ossimPointCloudImageHandler::getValidImageVertices(), ossimRangeDomeTileSource::initialize(), saveImageGeometry(), ossimHdfReader::setCurrentEntry(), ossimH5ImageHandler::setCurrentEntry(), ossimGdalTileSource::setCurrentEntry(), ossimGeoPdfReader::setCurrentEntry(), ossimNitfTileSource::setCurrentEntry(), ossimGpkgReader::setCurrentEntry(), ossimRpfCacheTileSource::setCurrentEntry(), ossimCibCadrgTileSource::setCurrentEntry(), ossimPointCloudImageHandler::setGSD(), and setImageGeometry().
|
protected |
Definition at line 832 of file ossimImageHandler.h.
Referenced by ossimQbTileFilesHandler::computeImageRects(), createDefaultValidVerticesFilename(), ossimBandSeparateHandler::getBandFileNames(), ossimMrSidReader::getExternalImageGeometry(), ossimGdalTileSource::getExternalImageGeometryFromXml(), getFilename(), ossimMrSidReader::getGeoProjection(), ossimGeneralRasterTileSource::getHdrInfo(), ossimQuickbirdTiffTileSource::getImageGeometry(), ossimQbTileFilesHandler::getImageGeometry(), ossimGeneralRasterTileSource::getImageGeometry(), ossimH5ImageHandler::getLatLonDatasets(), ossimCibCadrgTileSource::getPropertyNames(), ossimKmlSuperOverlayReader::getTopLevelKmlFileInfo(), ossimGeneralRasterTileSource::getXmlInfo(), if(), ossimKakaduJp2Reader::isJp2(), ossimOgrVectorTileSource::isOgrVectorDataSource(), ossimKmlSuperOverlayReader::isOpen(), ossimGeoPdfReader::isOpen(), ossimRpfCacheTileSource::isOpen(), ossimBitMaskTileSource::isSupportedExtension(), ossimHdfReader::isSupportedExtension(), ossimDtedTileSource::loadMetaData(), ossimDtedTileSource::loadState(), ossimVpfTileSource::open(), ossimKmlSuperOverlayReader::open(), ossimPointCloudImageHandler::open(), ossimTiffTileSource::open(), ossimOgrGdalTileSource::open(), ossimRangeDomeTileSource::open(), ossimBitMaskTileSource::open(), ossimJpegTileSource::open(), ossimPngReader::open(), openValidVertices(), ossimTiffTileSource::print(), ossimPngReader::restart(), saveState(), setFilename(), and ossimTiffTileSource::validateMinMaxNull().
|
protected |
Definition at line 841 of file ossimImageHandler.h.
|
protected |
Definition at line 839 of file ossimImageHandler.h.
Referenced by getLut(), ossimGdalTileSource::getMaxPixelValue(), ossimGdalTileSource::getMinPixelValue(), ossimGdalTileSource::getNullPixelValue(), ossimGdalTileSource::getOutputScalarType(), hasLut(), ossimNitfTileSource::initializeLut(), ossimNitfTileSource::lutUncompress(), ossimGdalTileSource::populateLut(), ossimTiffTileSource::populateLut(), ossimRpfCacheTileSource::populateLut(), ossimCibCadrgTileSource::populateLut(), ossimNitfTileSource::setCurrentEntry(), ossimGdalTileSource::setPreservePaletteIndexesFlag(), and ossimNitfTileSource::vqUncompressC4().
|
protected |
Definition at line 837 of file ossimImageHandler.h.
Referenced by ossimGdalTileSource::computeMinMax(), ossimUsgsDemTileSource::getMaxPixelValue(), ossimDtedTileSource::getMaxPixelValue(), ossimTiffTileSource::getMaxPixelValue(), ossimGdalTileSource::getMaxPixelValue(), getMaxPixelValue(), ossimUsgsDemTileSource::getMinPixelValue(), ossimDtedTileSource::getMinPixelValue(), ossimTiffTileSource::getMinPixelValue(), ossimGdalTileSource::getMinPixelValue(), getMinPixelValue(), ossimDtedTileSource::getNullPixelValue(), ossimTiffTileSource::getNullPixelValue(), ossimGdalTileSource::getNullPixelValue(), getNullPixelValue(), getRgbBandList(), hasMetaData(), loadMetaData(), ossimERSTileSource::open(), setMaxPixelValue(), setMinPixelValue(), and setNullPixelValue().
|
protected |
If true opening of overviews will be attempted.
If false only the base image will be opened (shallow open). Defaulted to true in constructor.
Definition at line 853 of file ossimImageHandler.h.
Referenced by getOpenOverviewFlag(), and setOpenOverviewFlag().
|
protected |
Definition at line 835 of file ossimImageHandler.h.
Referenced by close(), closeOverview(), ossimRpfCacheTileSource::deleteAll(), ossimCibCadrgTileSource::deleteAll(), ossimNitfTileSource::destroy(), ossimKakaduJ2kReader::getDecimationFactor(), ossimGdalTileSource::getMaxSize(), ossimKakaduJpipHandler::getNumberOfDecimationLevels(), ossimKakaduNitfReader::getNumberOfDecimationLevels(), ossimOpjJp2Reader::getNumberOfDecimationLevels(), ossimGdalTileSource::getNumberOfDecimationLevels(), ossimMG4LidarReader::getNumberOfDecimationLevels(), ossimMrSidReader::getNumberOfDecimationLevels(), ossimKakaduJp2Reader::getNumberOfDecimationLevels(), ossimKakaduJ2kReader::getNumberOfDecimationLevels(), ossimTiffTileSource::getNumberOfDecimationLevels(), ossimGpkgReader::getNumberOfDecimationLevels(), getNumberOfDecimationLevels(), ossimKakaduJpipHandler::getNumberOfLines(), ossimUsgsDemTileSource::getNumberOfLines(), ossimJpegTileSource::getNumberOfLines(), ossimGdalTileSource::getNumberOfLines(), ossimGpkgReader::getNumberOfLines(), ossimHdf5ImageHandler::getNumberOfLines(), ossimDtedTileSource::getNumberOfLines(), ossimOpjJp2Reader::getNumberOfLines(), ossimPngReader::getNumberOfLines(), ossimH5ImageHandler::getNumberOfLines(), ossimAdrgTileSource::getNumberOfLines(), ossimKakaduNitfReader::getNumberOfLines(), ossimRpfCacheTileSource::getNumberOfLines(), ossimHdfReader::getNumberOfLines(), ossimNitfTileSource::getNumberOfLines(), ossimTiffTileSource::getNumberOfLines(), ossimCibCadrgTileSource::getNumberOfLines(), ossimMG4LidarReader::getNumberOfLines(), ossimGeoPdfReader::getNumberOfLines(), ossimMrSidReader::getNumberOfLines(), ossimKakaduJp2Reader::getNumberOfLines(), ossimKakaduJpipHandler::getNumberOfSamples(), ossimUsgsDemTileSource::getNumberOfSamples(), ossimJpegTileSource::getNumberOfSamples(), ossimGdalTileSource::getNumberOfSamples(), ossimGpkgReader::getNumberOfSamples(), ossimHdf5ImageHandler::getNumberOfSamples(), ossimDtedTileSource::getNumberOfSamples(), ossimOpjJp2Reader::getNumberOfSamples(), ossimH5ImageHandler::getNumberOfSamples(), ossimPngReader::getNumberOfSamples(), ossimAdrgTileSource::getNumberOfSamples(), ossimKakaduNitfReader::getNumberOfSamples(), ossimRpfCacheTileSource::getNumberOfSamples(), ossimNitfTileSource::getNumberOfSamples(), ossimHdfReader::getNumberOfSamples(), ossimTiffTileSource::getNumberOfSamples(), ossimCibCadrgTileSource::getNumberOfSamples(), ossimMG4LidarReader::getNumberOfSamples(), ossimGeoPdfReader::getNumberOfSamples(), ossimMrSidReader::getNumberOfSamples(), ossimKakaduJp2Reader::getNumberOfSamples(), getOverview(), ossimKakaduNitfReader::getOverviewTile(), ossimKakaduJ2kReader::getOverviewTile(), ossimKakaduJp2Reader::getOverviewTile(), getOverviewTile(), ossimGdalTileSource::getTile(), ossimBandSeparateHandler::getTile(), ossimMrSidReader::getTile(), ossimMG4LidarReader::getTile(), ossimTiledImageHandler::getTile(), ossimKakaduJpipHandler::getTileAtRes(), ossimTiffTileSource::isBandSelector(), ossimGeneralRasterTileSource::isBandSelector(), ossimJpegTileSource::isValidRLevel(), ossimRpfCacheTileSource::isValidRLevel(), ossimCibCadrgTileSource::isValidRLevel(), ossimTiffTileSource::print(), ossimHdfReader::setCurrentEntry(), ossimGdalTileSource::setCurrentEntry(), setOutputBandList(), setSupplementaryDirectory(), and ~ossimImageHandler().
|
protected |
Definition at line 833 of file ossimImageHandler.h.
Referenced by buildOverview(), getOverviewFile(), ossimHdfReader::setCurrentEntry(), ossimHdf5ImageHandler::setCurrentEntry(), ossimH5ImageHandler::setCurrentEntry(), ossimGdalTileSource::setCurrentEntry(), ossimNitfTileSource::setCurrentEntry(), ossimGpkgReader::setCurrentEntry(), ossimRpfCacheTileSource::setCurrentEntry(), and ossimCibCadrgTileSource::setCurrentEntry().
|
mutableprotected |
Definition at line 854 of file ossimImageHandler.h.
Referenced by ossimOgrGdalTileSource::loadState(), and ossimOgrGdalTileSource::ossimOgrGdalTileSource().
|
protected |
theStartingResLevel If set to something other than zero(default) this is indicative that the reader is an overview.
Definition at line 847 of file ossimImageHandler.h.
Referenced by ossimTiffTileSource::getNumberOfDecimationLevels(), ossimBitMaskTileSource::getNumberOfLines(), ossimKakaduNitfReader::getNumberOfLines(), ossimTiffTileSource::getNumberOfLines(), ossimBitMaskTileSource::getNumberOfSamples(), ossimKakaduNitfReader::getNumberOfSamples(), ossimTiffTileSource::getNumberOfSamples(), ossimKakaduNitfReader::getOverviewTile(), getStartingResLevel(), ossimBitMaskTileSource::getTile(), ossimTiffTileSource::getTile(), ossimNitfTileSource::getTile(), ossimBitMaskTileSource::isValidRLevel(), ossimTiffTileSource::isValidRLevel(), isValidRLevel(), ossimBitMaskTileSource::open(), ossimBitMaskTileSource::setAssociatedMaskWriter(), and setStartingResLevel().
|
protected |
Definition at line 834 of file ossimImageHandler.h.
Referenced by getExternalImageGeometry(), getFilenameWithNoExtension(), getSupplementaryDirectory(), and setSupplementaryDirectory().
|
protected |
Definition at line 836 of file ossimImageHandler.h.
Referenced by close(), getValidImageVertices(), ossimCcfTileSource::initVerticesFromHeader(), ossimHdf5ImageHandler::setCurrentEntry(), and writeValidImageVertices().