OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimNitfTileSource.h>
Public Types | |
enum | ReadMode { READ_MODE_UNKNOWN = 0, READ_BIB_BLOCK = 1, READ_BIP_BLOCK = 2, READ_BIR_BLOCK = 3, READ_BSQ_BLOCK = 4, READ_BIB = 5, READ_BIP = 6, READ_BIR = 7, READ_JPEG_BLOCK = 8 } |
![]() | |
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 | |
ossimNitfTileSource () | |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual bool | open () |
Returns true if the image_file can be opened and is a valid nitf file. More... | |
bool | open (std::shared_ptr< ossim::istream > &str, const std::string &connectionString) |
This open takes a stream and stores/captures the shared pointer on success. More... | |
virtual void | close () |
Closes file and destroys all memory allocated. More... | |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIrect &tileRect, ossim_uint32 resLevel=0) |
virtual ossim_uint32 | getNumberOfInputBands () const |
virtual ossim_uint32 | getNumberOfOutputBands () const |
virtual ossim_uint32 | getNumberOfLines (ossim_uint32 resLevel=0) const |
Returns the number of lines in the image. More... | |
virtual ossim_uint32 | getNumberOfSamples (ossim_uint32 resLevel=0) const |
Returns the number of samples in the image. 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 ossimScalarType | getOutputScalarType () const |
Returns the output pixel type of the tile source. More... | |
virtual ossim_uint32 | getTileWidth () const |
Returns the width of the output tile. More... | |
virtual ossim_uint32 | getTileHeight () const |
Returns the height of the output tile. More... | |
virtual ossim_uint32 | getImageTileWidth () const |
Returns the tile width of the image or 0 if the image is not tiled. More... | |
virtual ossim_uint32 | getImageTileHeight () const |
Returns the tile width of the image or 0 if the image is not tiled. More... | |
virtual bool | isOpen () const |
Derived classes must implement this method to be concrete. More... | |
virtual ossim_uint32 | getCurrentEntry () const |
virtual void | getEntryList (std::vector< ossim_uint32 > &entryList) const |
ossim_uint32 | getNumberOfEntries () const |
virtual bool | setCurrentEntry (ossim_uint32 entryIdx) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
ossimString | getSecurityClassification () const |
bool | getCacheEnabledFlag () const |
void | setCacheEnabledFlag (bool flag) |
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... | |
const ossimNitfFileHeader * | getFileHeader () const |
ossimNitfFileHeader * | getFileHeader () |
const ossimNitfImageHeader * | getCurrentImageHeader () const |
ossimNitfImageHeader * | getCurrentImageHeader () |
virtual bool | getRgbBandList (std::vector< ossim_uint32 > &bandList) const |
Convenience method to get the zero based rgb output band list. More... | |
![]() | |
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 (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 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 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 | 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 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 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 void | getEntryName (ossim_uint32 entryIdx, std::string &name) const |
Get the name of entry as a string. More... | |
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 |
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... | |
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 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 void | getOutputBandList (std::vector< ossim_uint32 > &bandList) const |
Initializes bandList. 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 | 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 | ~ossimNitfTileSource () |
void | setBoundingRectangle (const ossimIrect &imageRect) |
ossimNitfTileSource (const ossimNitfTileSource &obj) | |
Copy constructor, disallow... More... | |
ossimNitfTileSource & | operator= (const ossimNitfTileSource &rhs) |
Operator=, disallow... More... | |
bool | loadTile (const ossimIrect &clipRect) |
Returns true on success, false on error. More... | |
ossim_uint32 | getBlockNumber (const ossimIpt &block_origin) const |
void | destroy () |
Deletes all memory allocated by this object. More... | |
virtual bool | parseFile () |
Parses "theImageFile" and initializes all nitf headers. More... | |
virtual bool | allocate () |
Allocates everything for current entry. More... | |
virtual bool | allocateBuffers () |
Allocates buffers for current entry. More... | |
virtual bool | canUncompress (const ossimNitfImageHeader *hdr) const |
virtual void | initializeScalarType () |
Initializes the data member "theScalarType" from the current entry. More... | |
virtual void | initializeSwapBytesFlag () |
Initializes the data member "theSwapBytesFlag" from the current entry. More... | |
virtual void | initializeReadMode () |
Initializes the data member "theReadMode" from the current entry. More... | |
void | initializeBandCount () |
Initializes the data member "theNumberOfBands" from the current entry. More... | |
bool | initializeBlockSize () |
Initializes the data member "theBlockSize" from the current entry. More... | |
virtual bool | initializeImageRect () |
Initializes the data members "theImageRect" and "theBlockRect" from the current entry. More... | |
void | initializeCacheSize () |
Initializes the data member "theCacheSize". More... | |
virtual void | initializeCacheTileInterLeaveType () |
Initializes the data member "theCacheTileInterLeaveType". More... | |
void | initializeCacheTile () |
Initializes the cache tile size(width and height). More... | |
virtual void | initializeCompressedBuf () |
Initializes the data member theCompressedBuf. More... | |
virtual void | initializeOutputTile () |
Initializes the output tile size(width and height). More... | |
void | initializeLut () |
Initializes "theLut" if applicable. More... | |
bool | loadBlockFromCache (ossim_uint32 x, ossim_uint32 y, const ossimIrect &clipRect) |
Loads a block of data to theCacheTile. More... | |
virtual bool | loadBlock (ossim_uint32 x, ossim_uint32 y) |
Loads a block of data to theCacheTile. More... | |
bool | getPosition (std::streamoff &position, ossim_uint32 x, ossim_uint32 y, ossim_uint32 band) const |
ossim_uint32 | getNumberOfBlocks () const |
std::streampos | getBandOffset () const |
std::streampos | getBlockOffset () const |
void | explodePackedBits (ossimRefPtr< ossimImageData > packedBuffer) const |
void | convertTransparentToNull (ossimRefPtr< ossimImageData > tile) const |
ossim_uint32 | getPartialReadSize (const ossimIpt &blockOrigin) const |
bool | isVqCompressed (const ossimString &compressionCode) const |
void | vqUncompressC4 (ossimRefPtr< ossimImageData > destination, ossim_uint8 *source) |
Uncompresses Vector Quantization unmasked image data. More... | |
void | vqUncompressM4 (ossimRefPtr< ossimImageData > destination, ossim_uint8 *source) |
Uncompresses Vector Quantization masked image data. More... | |
void | lutUncompress (ossimRefPtr< ossimImageData > destination, ossim_uint8 *source) |
virtual bool | scanForJpegBlockOffsets () |
scans the file storing in offsets in "theNitfBlockOffset" and block sizes in "theNitfBlockSize". More... | |
virtual bool | uncompressJpegBlock (ossim_uint32 x, ossim_uint32 y) |
Uncompresses a jpeg block using the jpeg-6b library. More... | |
bool | loadJpegQuantizationTables (jpeg_decompress_struct &cinfo) const |
Loads one of the default tables based on COMRAT value. More... | |
bool | loadJpegHuffmanTables (jpeg_decompress_struct &cinfo) const |
Loads default huffman tables. More... | |
virtual void | establishDecimationFactors () |
Virtual method determines the decimation factors at each resolution level. More... | |
![]() | |
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 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) | |
Definition at line 29 of file ossimNitfTileSource.h.
Definition at line 33 of file ossimNitfTileSource.h.
ossimNitfTileSource::ossimNitfTileSource | ( | ) |
Definition at line 88 of file ossimNitfTileSource.cpp.
|
protectedvirtual |
Definition at line 129 of file ossimNitfTileSource.cpp.
References destroy().
|
protected |
Copy constructor, disallow...
Definition at line 3734 of file ossimNitfTileSource.cpp.
|
protectedvirtual |
Allocates everything for current entry.
This is called on an open() or a entry change to an already open nitf file.
This does not allocate buffers and tiles to keep open and setCurrentEntry times to a minimum. Buffers are allocated on first grab of pixel data by allocatBuffers method.
Reimplemented in ossimKakaduNitfReader.
Definition at line 587 of file ossimNitfTileSource.cpp.
References ossimAppFixedTileCache::deleteCache(), initializeBandCount(), initializeBlockSize(), initializeCacheSize(), initializeCacheTileInterLeaveType(), initializeImageRect(), initializeReadMode(), initializeScalarType(), initializeSwapBytesFlag(), ossimAppFixedTileCache::instance(), OSSIM_INTERLEAVE_UNKNOWN, OSSIM_SCALAR_UNKNOWN, READ_MODE_UNKNOWN, theCacheId, theCacheSize, theCacheTile, theCacheTileInterLeaveType, theCompressedBuf, theNumberOfInputBands, theReadMode, theScalarType, theTile, ossimIpt::x, and ossimIpt::y.
Referenced by setCurrentEntry().
|
protectedvirtual |
Allocates buffers for current entry.
This is called on first getTile().
Reimplemented in ossimKakaduNitfReader.
Definition at line 658 of file ossimNitfTileSource.cpp.
References initializeCacheTile(), initializeCompressedBuf(), initializeOutputTile(), ossimAppFixedTileCache::instance(), theBlockImageRect, theCacheEnabledFlag, theCacheId, theCacheSize, theCacheTile, and ossimRefPtr< T >::valid().
Referenced by ossimKakaduNitfReader::allocateBuffers(), and getTile().
|
protectedvirtual |
hdr | Pointer to image header. |
Reimplemented in ossimKakaduNitfReader, ossimJpeg12NitfReader, and ossimOpjNitfReader.
Definition at line 690 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getBitsPerPixelPerBand(), and ossimNitfImageHeader::getCompressionCode().
Referenced by ossimJpeg12NitfReader::canUncompress(), and ossimKakaduNitfReader::canUncompress().
|
virtual |
Closes file and destroys all memory allocated.
Reimplemented from ossimImageHandler.
Definition at line 362 of file ossimNitfTileSource.cpp.
References destroy().
Referenced by open(), ossimKakaduNitfReader::~ossimKakaduNitfReader(), and ossimOpjNitfReader::~ossimOpjNitfReader().
|
protected |
Definition at line 1976 of file ossimNitfTileSource.cpp.
References getBlockNumber(), ossimImageData::getBuf(), getCurrentImageHeader(), ossimImageData::getHeight(), ossimImageData::getNullPix(), ossimImageData::getNumberOfBands(), ossimImageData::getOrigin(), ossimNitfImageHeader::getPadPixelMaskRecordOffset(), ossimRectilinearDataObject::getScalarType(), ossimNitfImageHeader::getTransparentCode(), ossimImageData::getWidth(), ossimNitfImageHeader::hasPadPixelMaskRecords(), ossimNitfImageHeader::hasTransparentCode(), OSSIM_SINT16, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, and OSSIM_USHORT15.
|
protected |
Deletes all memory allocated by this object.
Definition at line 134 of file ossimNitfTileSource.cpp.
References ossimAppFixedTileCache::deleteCache(), ossimAppFixedTileCache::instance(), theCacheId, theCacheTile, theFileStr, theNitfFile, theNitfImageHeader, ossimImageHandler::theOverview, and theTile.
Referenced by close(), and ~ossimNitfTileSource().
|
protectedvirtual |
Virtual method determines the decimation factors at each resolution level.
This method derives the decimations from the image metadata.
Reimplemented from ossimImageHandler.
Definition at line 1178 of file ossimNitfTileSource.cpp.
References ossimImageHandler::establishDecimationFactors(), getCurrentImageHeader(), ossimNitfImageHeader::getDecimationFactor(), ossim::isnan(), and ossimImageHandler::theDecimationFactors.
|
protected |
Definition at line 1898 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getBitsPerPixelPerBand(), ossimImageData::getBuf(), getCurrentImageHeader(), ossimImageData::getHeight(), ossimImageData::getNumberOfBands(), ossimRectilinearDataObject::getScalarType(), ossimImageData::getSizePerBandInBytes(), ossimPackedBits::getValueAsUint32(), ossimImageData::getWidth(), OSSIM_FLOAT, OSSIM_UINT16, OSSIM_UINT8, and theCacheTile.
|
protected |
Definition at line 2232 of file ossimNitfTileSource.cpp.
References getNumberOfBlocks(), READ_BIB, READ_BIB_BLOCK, READ_BIP, READ_BIP_BLOCK, READ_BIR, READ_BIR_BLOCK, READ_BSQ_BLOCK, theBlockSizeInBytes, and theReadMode.
Referenced by getPosition().
|
protected |
Definition at line 2471 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), ossimNitfImageHeader::getNumberOfBlocksPerRow(), READ_BIB, READ_BIB_BLOCK, READ_BIP, READ_BIP_BLOCK, READ_BIR, READ_BIR_BLOCK, READ_BSQ_BLOCK, READ_JPEG_BLOCK, theCacheSize, theReadMode, ossimIpt::x, and ossimIpt::y.
Referenced by convertTransparentToNull(), getPosition(), ossimJpeg12NitfReader::uncompressJpegBlock(), ossimOpjNitfReader::uncompressJpegBlock(), and uncompressJpegBlock().
|
protected |
Definition at line 2258 of file ossimNitfTileSource.cpp.
References getNumberOfBlocks(), READ_BIB, READ_BIB_BLOCK, READ_BIP, READ_BIP_BLOCK, READ_BIR, READ_BIR_BLOCK, READ_BSQ_BLOCK, READ_JPEG_BLOCK, theBlockSizeInBytes, theNumberOfInputBands, theReadBlockSizeInBytes, and theReadMode.
Referenced by getPosition().
bool ossimNitfTileSource::getCacheEnabledFlag | ( | ) | const |
Definition at line 2681 of file ossimNitfTileSource.cpp.
References theCacheEnabledFlag.
|
virtual |
Reimplemented from ossimImageHandler.
Definition at line 2607 of file ossimNitfTileSource.cpp.
References theCurrentEntry.
const ossimNitfImageHeader * ossimNitfTileSource::getCurrentImageHeader | ( | ) | const |
Definition at line 2731 of file ossimNitfTileSource.cpp.
References theCurrentEntry, and theNitfImageHeader.
Referenced by ossimNitf20Writer::addTags(), ossimKakaduNitfReader::checkJp2Signature(), convertTransparentToNull(), ossimNitfProjectionFactory::createProjection(), ossimImageGeometryFactory::createTransformFromNitf(), ossimKakaduNitfReader::dumpTiles(), establishDecimationFactors(), explodePackedBits(), getBlockNumber(), getImageTileHeight(), getImageTileWidth(), getMaxPixelValue(), getNumberOfBlocks(), getNumberOfLines(), getNumberOfSamples(), getPartialReadSize(), getPosition(), getProperty(), getPropertyNames(), getRgbBandList(), getSecurityClassification(), initializeBandCount(), initializeBlockSize(), initializeCacheSize(), initializeCacheTileInterLeaveType(), initializeCompressedBuf(), initializeImageRect(), initializeLut(), ossimOpjNitfReader::initializeReadMode(), ossimKakaduNitfReader::initializeReadMode(), initializeReadMode(), initializeScalarType(), ossimKakaduNitfReader::isEntryJ2k(), ossimJpeg12NitfReader::loadJpeg12QuantizationTables(), loadJpegQuantizationTables(), lutUncompress(), ossimOpjNitfReader::scanForJpegBlockOffsets(), ossimKakaduNitfReader::scanForJpegBlockOffsets(), scanForJpegBlockOffsets(), vqUncompressC4(), and vqUncompressM4().
ossimNitfImageHeader * ossimNitfTileSource::getCurrentImageHeader | ( | ) |
Definition at line 2741 of file ossimNitfTileSource.cpp.
References theCurrentEntry, and theNitfImageHeader.
|
virtual |
entryList | This is the list to initialize with entry indexes. |
Reimplemented from ossimImageHandler.
Definition at line 2617 of file ossimNitfTileSource.cpp.
References theEntryList.
const ossimNitfFileHeader * ossimNitfTileSource::getFileHeader | ( | ) | const |
Definition at line 2711 of file ossimNitfTileSource.cpp.
References ossimNitfFile::getHeader(), theNitfFile, and ossimRefPtr< T >::valid().
Referenced by ossimNitf20Writer::addTags(), ossimNitfProjectionFactory::createProjection(), getProperty(), and getPropertyNames().
ossimNitfFileHeader * ossimNitfTileSource::getFileHeader | ( | ) |
Definition at line 2721 of file ossimNitfTileSource.cpp.
References ossimNitfFile::getHeader(), theNitfFile, and ossimRefPtr< T >::valid().
|
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.
Implements ossimImageHandler.
Definition at line 2584 of file ossimNitfTileSource.cpp.
References ossimImageHandler::getBoundingRect(), getCurrentImageHeader(), and ossimNitfImageHeader::getNumberOfPixelsPerBlockVert().
|
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.
Implements ossimImageHandler.
Definition at line 2570 of file ossimNitfTileSource.cpp.
References ossimImageHandler::getBoundingRect(), getCurrentImageHeader(), and ossimNitfImageHeader::getNumberOfPixelsPerBlockHoriz().
|
virtual |
Reimplemented from ossimObject.
Reimplemented in ossimKakaduNitfReader.
Definition at line 2602 of file ossimNitfTileSource.cpp.
|
virtual |
Returns the max pixel of the band.
Reimplemented from ossimImageHandler.
Reimplemented in ossimKakaduNitfReader.
Definition at line 2076 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getActualBitsPerPixelPerBand(), ossimNitfImageHeader::getBitsPerPixelPerBand(), getCurrentImageHeader(), ossimImageHandler::getMaxPixelValue(), and thePackedBitsFlag.
Referenced by getNullPixelValue().
|
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 ossimImageHandler.
Reimplemented in ossimKakaduNitfReader.
Definition at line 2064 of file ossimNitfTileSource.cpp.
References ossimImageHandler::getMinPixelValue(), and thePackedBitsFlag.
|
virtual |
Each band has a null pixel associated with it.
The null pixel represents an invalid value.
Reimplemented from ossimImageHandler.
Reimplemented in ossimKakaduNitfReader.
Definition at line 2119 of file ossimNitfTileSource.cpp.
References getMaxPixelValue(), ossimImageHandler::getNullPixelValue(), and thePackedBitsFlag.
|
protected |
Definition at line 2298 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), ossimNitfImageHeader::getNumberOfBlocksPerCol(), and ossimNitfImageHeader::getNumberOfBlocksPerRow().
Referenced by getBandOffset(), getBlockOffset(), initializeCacheSize(), and initializeReadMode().
|
virtual |
Reimplemented from ossimImageHandler.
Definition at line 2612 of file ossimNitfTileSource.cpp.
References theEntryList.
|
virtual |
Implements ossimImageSource.
Definition at line 2425 of file ossimNitfTileSource.cpp.
References theNumberOfInputBands.
|
virtual |
Returns the number of lines in the image.
Satisfies pure virtual from ImageHandler class.
Implements ossimImageHandler.
Reimplemented in ossimKakaduNitfReader.
Definition at line 2435 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), ossimImageHandler::getNumberOfLines(), ossimNitfImageHeader::getNumberOfRows(), ossimImageHandler::theOverview, and ossimRefPtr< T >::valid().
Referenced by ossimKakaduNitfReader::getNumberOfLines().
|
virtual |
Reimplemented from ossimImageSource.
Definition at line 2430 of file ossimNitfTileSource.cpp.
References theNumberOfOutputBands.
Referenced by ossimKakaduNitfReader::allocateBuffers(), ossimKakaduNitfReader::getOverviewTile(), and getRgbBandList().
|
virtual |
Returns the number of samples in the image.
Satisfies pure virtual from ImageHandler class.
Implements ossimImageHandler.
Reimplemented in ossimKakaduNitfReader.
Definition at line 2453 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), ossimNitfImageHeader::getNumberOfCols(), ossimImageHandler::getNumberOfSamples(), ossimImageHandler::theOverview, and ossimRefPtr< T >::valid().
Referenced by ossimKakaduNitfReader::getNumberOfSamples().
|
virtual |
Returns the output pixel type of the tile source.
Reimplemented from ossimImageSource.
Definition at line 2370 of file ossimNitfTileSource.cpp.
References theScalarType.
|
protected |
Definition at line 2518 of file ossimNitfTileSource.cpp.
References ossimIrect::clipToRect(), ossimIrect::completely_within(), ossimNitfImageHeader::getBitsPerPixelPerBand(), getCurrentImageHeader(), ossimImageData::getImageRectangle(), ossimIrect::height(), READ_BIB, READ_BIB_BLOCK, READ_BIP, READ_BIP_BLOCK, READ_BIR, READ_BIR_BLOCK, READ_BSQ_BLOCK, theBlockImageRect, theCacheSize, theCacheTile, theNumberOfInputBands, theReadBlockSizeInBytes, theReadMode, and ossimIpt::x.
|
protected |
x | Horizontal upper left pixel position of the requested block. |
y | Vertical upper left pixel position of the requested block. |
band | Band of block. Only relative with IMODES that have bands in separate blocks. |
Definition at line 2137 of file ossimNitfTileSource.cpp.
References getBandOffset(), ossimNitfImageHeader::getBlockMaskRecordOffset(), getBlockNumber(), getBlockOffset(), getCurrentImageHeader(), ossimNitfImageHeader::getDataLocation(), ossimNitfImageHeader::hasBlockMaskRecords(), READ_BIB, READ_BIB_BLOCK, READ_BSQ_BLOCK, READ_JPEG_BLOCK, theReadBlockSizeInBytes, theReadMode, x, and y.
|
virtual |
Reimplemented from ossimImageHandler.
Definition at line 2810 of file ossimNitfTileSource.cpp.
References ossimKeywordNames::ENABLE_CACHE_KW, getCurrentImageHeader(), getFileHeader(), ossimNitfFile::getHeader(), ossimNitfImageHeader::getProperty(), ossimNitfFileHeader::getProperty(), ossimImageHandler::getProperty(), ossimProperty::setReadOnlyFlag(), theCacheEnabledFlag, theNitfFile, and ossimRefPtr< T >::valid().
|
virtual |
Reimplemented from ossimImageHandler.
Definition at line 2867 of file ossimNitfTileSource.cpp.
References ossimKeywordNames::ENABLE_CACHE_KW, getCurrentImageHeader(), getFileHeader(), ossimNitfImageHeader::getPropertyNames(), ossimNitfFileHeader::getPropertyNames(), and ossimImageHandler::getPropertyNames().
|
virtual |
Convenience method to get the zero based rgb output band list.
Attempts to derive RGB bands from nitf fields.
bandList | Initialized by this. |
Reimplemented from ossimImageHandler.
Definition at line 2751 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getBandInformation(), ossimNitfImageBand::getBandRepresentation(), getCurrentImageHeader(), getNumberOfOutputBands(), ossimString::trim(), ossimString::upcase(), and ossimRefPtr< T >::valid().
ossimString ossimNitfTileSource::getSecurityClassification | ( | ) | const |
Definition at line 2882 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), and ossimNitfImageHeader::getSecurityClassification().
|
virtual |
Reimplemented from ossimObject.
Reimplemented in ossimKakaduNitfReader.
Definition at line 2597 of file ossimNitfTileSource.cpp.
|
virtual |
tileRect | Requested rectangle. |
resLevel | Reduced resolution level to grab tileRect from. Default = 0 or the full resolution data set. |
Reimplemented from ossimImageSource.
Definition at line 1532 of file ossimNitfTileSource.cpp.
References allocateBuffers(), ossimIrect::clipToRect(), ossimIrect::completely_within(), ossimRefPtr< T >::get(), ossimImageData::getBuf(), ossimDataObject::getDataObjectStatus(), ossimImageData::getImageRectangle(), ossimImageHandler::getOverviewTile(), ossimIrect::intersects(), isOpen(), ossimSource::isSourceEnabled(), ossimImageHandler::isValidRLevel(), loadTile(), ossimImageData::loadTile(), ossimImageData::makeBlank(), OSSIM_EMPTY, ossimNotify(), ossimNotifyLevel_WARN, ossimImageData::setImageRectangle(), theBlockImageRect, theCacheTile, theCacheTileInterLeaveType, theImageRect, ossimImageHandler::theStartingResLevel, theTile, ossimRefPtr< T >::valid(), and ossimImageData::validate().
|
virtual |
Returns the height of the output tile.
Reimplemented from ossimImageSource.
Definition at line 2400 of file ossimNitfTileSource.cpp.
References ossim::defaultTileSize(), ossimImageHandler::getBoundingRect(), ossimIpt::hasNans(), ossimIrect::height(), theCacheSize, and ossimIpt::y.
|
virtual |
Returns the width of the output tile.
Reimplemented from ossimImageSource.
Definition at line 2375 of file ossimNitfTileSource.cpp.
References ossim::defaultTileSize(), ossimImageHandler::getBoundingRect(), ossimIpt::hasNans(), theCacheSize, ossimIrect::width(), and ossimIpt::x.
|
protected |
Initializes the data member "theNumberOfBands" from the current entry.
Definition at line 973 of file ossimNitfTileSource.cpp.
References ossimString::contains(), ossimNitfImageHeader::getBandInformation(), ossimNitfImageHeader::getCompressionCode(), getCurrentImageHeader(), ossimNitfImageHeader::getNumberOfBands(), ossimNitfImageBand::getNumberOfLuts(), ossimNitfImageHeader::getRepresentation(), isVqCompressed(), theNumberOfInputBands, theNumberOfOutputBands, theOutputBandList, and ossimRefPtr< T >::valid().
Referenced by allocate().
|
protected |
Initializes the data member "theBlockSize" from the current entry.
Definition at line 1027 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getCompressionCode(), getCurrentImageHeader(), isVqCompressed(), theBlockSizeInBytes, and theReadBlockSizeInBytes.
Referenced by allocate().
|
protected |
Initializes the data member "theCacheSize".
Definition at line 1373 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), getNumberOfBlocks(), ossimNitfImageHeader::getNumberOfPixelsPerBlockHoriz(), ossimNitfImageHeader::getNumberOfPixelsPerBlockVert(), READ_BIB, READ_BIB_BLOCK, READ_BIP, READ_BIP_BLOCK, READ_BIR, READ_BIR_BLOCK, READ_BSQ_BLOCK, READ_JPEG_BLOCK, theCacheSize, theReadMode, ossimIpt::x, and ossimIpt::y.
Referenced by allocate().
|
protected |
Initializes the cache tile size(width and height).
For block images this will be the size of one block. For images that are a single block, this will be the image width by the height of one tile.
Definition at line 1480 of file ossimNitfTileSource.cpp.
References ossimImageDataFactory::create(), ossimImageData::initialize(), ossimImageDataFactory::instance(), theCacheSize, theCacheTile, theNumberOfOutputBands, theScalarType, ossimIpt::x, and ossimIpt::y.
Referenced by allocateBuffers().
|
protectedvirtual |
Initializes the data member "theCacheTileInterLeaveType".
Reimplemented in ossimKakaduNitfReader.
Definition at line 1435 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), OSSIM_BIL, OSSIM_BIP, OSSIM_BSQ, OSSIM_INTERLEAVE_UNKNOWN, READ_BIB, READ_BIB_BLOCK, READ_BIP, READ_BIP_BLOCK, READ_BIR, READ_BIR_BLOCK, READ_BSQ_BLOCK, READ_JPEG_BLOCK, theCacheTileInterLeaveType, and theReadMode.
Referenced by allocate(), and ossimKakaduNitfReader::initializeCacheTileInterLeaveType().
|
protectedvirtual |
Initializes the data member theCompressedBuf.
Reimplemented in ossimOpjNitfReader.
Definition at line 1492 of file ossimNitfTileSource.cpp.
References ossimString::contains(), ossimNitfImageHeader::getCompressionCode(), getCurrentImageHeader(), ossimNitfImageHeader::getRepresentation(), isVqCompressed(), theCompressedBuf, theReadBlockSizeInBytes, and ossimString::upcase().
Referenced by allocateBuffers().
|
protectedvirtual |
Initializes the data members "theImageRect" and "theBlockRect" from the current entry.
Definition at line 1347 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getBlockImageRect(), getCurrentImageHeader(), ossimNitfImageHeader::getImageRect(), ossimIrect::makeNan(), theBlockImageRect, and theImageRect.
Referenced by allocate().
|
protected |
Initializes "theLut" if applicable.
Definition at line 1517 of file ossimNitfTileSource.cpp.
References getCurrentImageHeader(), ossimNitfImageHeader::hasLut(), theCurrentEntry, ossimImageHandler::theLut, and theNitfImageHeader.
|
protectedvirtual |
Initializes the output tile size(width and height).
Definition at line 1508 of file ossimNitfTileSource.cpp.
References ossimImageDataFactory::create(), ossimImageData::initialize(), ossimImageDataFactory::instance(), and theTile.
Referenced by allocateBuffers().
|
protectedvirtual |
Initializes the data member "theReadMode" from the current entry.
Reimplemented in ossimKakaduNitfReader, and ossimOpjNitfReader.
Definition at line 730 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getCompressionCode(), getCurrentImageHeader(), ossimNitfImageHeader::getIMode(), getNumberOfBlocks(), READ_BIB, READ_BIB_BLOCK, READ_BIP, READ_BIP_BLOCK, READ_BIR, READ_BIR_BLOCK, READ_BSQ_BLOCK, READ_JPEG_BLOCK, READ_MODE_UNKNOWN, and theReadMode.
Referenced by allocate(), and ossimKakaduNitfReader::initializeReadMode().
|
protectedvirtual |
Initializes the data member "theScalarType" from the current entry.
Definition at line 798 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getActualBitsPerPixelPerBand(), ossimNitfImageHeader::getBitsPerPixelPerBand(), getCurrentImageHeader(), ossimNitfImageHeader::getPixelValueType(), ossimNitfImageHeader::isCompressed(), OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_SINT32, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, thePackedBitsFlag, theScalarType, and ossimString::upcase().
Referenced by allocate().
|
protectedvirtual |
Initializes the data member "theSwapBytesFlag" from the current entry.
Reimplemented in ossimKakaduNitfReader.
Definition at line 960 of file ossimNitfTileSource.cpp.
References ossim::byteOrder(), OSSIM_LITTLE_ENDIAN, OSSIM_UINT8, theScalarType, and theSwapBytesFlag.
Referenced by allocate(), and ossimKakaduNitfReader::initializeSwapBytesFlag().
|
virtual |
Derived classes must implement this method to be concrete.
Implements ossimImageHandler.
Definition at line 161 of file ossimNitfTileSource.cpp.
References theNitfImageHeader.
Referenced by getTile(), open(), and setCurrentEntry().
|
protected |
Definition at line 2563 of file ossimNitfTileSource.cpp.
Referenced by initializeBandCount(), initializeBlockSize(), and initializeCompressedBuf().
|
protectedvirtual |
Loads a block of data to theCacheTile.
x | Starting x position of block to load. |
y | Starting y position of block to load. |
Reimplemented in ossimKakaduNitfReader.
Definition at line 1741 of file ossimNitfTileSource.cpp.
Referenced by ossimKakaduNitfReader::loadBlock(), and loadTile().
|
protected |
Loads a block of data to theCacheTile.
x | Starting x position of block to load. |
y | Starting y position of block to load. |
Definition at line 1704 of file ossimNitfTileSource.cpp.
References ossimIrect::clipToRect(), ossimRefPtr< T >::get(), ossimImageData::getBuf(), ossimImageData::getImageRectangle(), ossimAppFixedTileCache::getTile(), ossimAppFixedTileCache::instance(), ossimImageData::loadTile(), theCacheEnabledFlag, theCacheId, theCacheTileInterLeaveType, theTile, ossimRefPtr< T >::valid(), x, and y.
Referenced by loadTile().
|
protected |
Loads default huffman tables.
Definition at line 3689 of file ossimNitfTileSource.cpp.
|
protected |
Loads one of the default tables based on COMRAT value.
Definition at line 3629 of file ossimNitfTileSource.cpp.
References ossimNitfImageHeader::getCompressionRateCode(), getCurrentImageHeader(), ossimNotify(), ossimNotifyLevel_WARN, ossimString::push_back(), ossimString::size(), and ossimString::toInt32().
|
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 ossimImageHandler.
Reimplemented in ossimQuickbirdNitfTileSource.
Definition at line 2310 of file ossimNitfTileSource.cpp.
References ossimImageHandler::loadState().
Referenced by ossimQuickbirdNitfTileSource::loadState().
|
protected |
Returns true on success, false on error.
Definition at line 1648 of file ossimNitfTileSource.cpp.
References ossimIrect::clipToRect(), ossimImageData::getBuf(), ossimImageData::getImageRectangle(), loadBlock(), loadBlockFromCache(), ossimImageData::loadTile(), ossimIrect::lr(), ossimIrect::stretchToTileBoundary(), theCacheSize, theCacheTile, theCacheTileInterLeaveType, theTile, ossimIrect::ul(), ossimIpt::x, x, ossimIpt::y, and y.
Referenced by getTile().
|
protected |
Definition at line 2892 of file ossimNitfTileSource.cpp.
References ossimImageData::getBuf(), getCurrentImageHeader(), ossimImageData::getHeight(), ossimImageData::getNumberOfBands(), ossimNBandLutDataObject::getNumberOfBands(), ossimRectilinearDataObject::getScalarType(), ossimImageData::getWidth(), OSSIM_UINT8, ossimImageHandler::theLut, and ossimRefPtr< T >::valid().
|
virtual |
Returns true if the image_file can be opened and is a valid nitf file.
Implements ossimImageHandler.
Reimplemented in ossimQuickbirdNitfTileSource.
Definition at line 167 of file ossimNitfTileSource.cpp.
References close(), ossim::StreamFactoryRegistry::createIstream(), ossimImageHandler::getFilename(), ossim::StreamFactoryRegistry::instance(), isOpen(), ossimErrorCodes::OSSIM_OK, and ossimErrorStatusInterface::theErrorStatus.
Referenced by ossimImageHandlerFactory::open(), ossimKakaduReaderFactory::open(), and ossimKakaduReaderFactory::openOverview().
bool ossimNitfTileSource::open | ( | std::shared_ptr< ossim::istream > & | str, |
const std::string & | connectionString | ||
) |
This open takes a stream and stores/captures the shared pointer on success.
str | Open stream to image. |
connectionString | Stored on success as the file name. |
Definition at line 193 of file ossimNitfTileSource.cpp.
|
protected |
Operator=, disallow...
Definition at line 3739 of file ossimNitfTileSource.cpp.
|
protectedvirtual |
Parses "theImageFile" and initializes all nitf headers.
Reimplemented in ossimKakaduNitfReader.
Definition at line 367 of file ossimNitfTileSource.cpp.
References ossimImageHandler::getFilename().
|
virtual |
Method to save the state of an object to a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageHandler.
Reimplemented in ossimQuickbirdNitfTileSource.
Definition at line 2357 of file ossimNitfTileSource.cpp.
References ossimKeywordlist::add(), ossimKeywordNames::ENABLE_CACHE_KW, ossimImageHandler::saveState(), theCacheEnabledFlag, and theCurrentEntry.
Referenced by ossimQuickbirdNitfTileSource::saveState().
|
protectedvirtual |
scans the file storing in offsets in "theNitfBlockOffset" and block sizes in "theNitfBlockSize".
Reimplemented in ossimKakaduNitfReader, and ossimOpjNitfReader.
Definition at line 3206 of file ossimNitfTileSource.cpp.
References ossim::byteOrder(), getCurrentImageHeader(), ossimNitfImageHeader::getDataLocation(), ossimNitfImageHeader::getNumberOfBlocksPerCol(), ossimNitfImageHeader::getNumberOfBlocksPerRow(), OSSIM_LITTLE_ENDIAN, ossimNotify(), ossimNotifyLevel_WARN, READ_JPEG_BLOCK, ossimEndian::swap(), theCurrentEntry, theFileStr, theNitfBlockOffset, theNitfBlockSize, and theReadMode.
|
protected |
imageRect | The full resolution image rectangle. |
Definition at line 2803 of file ossimNitfTileSource.cpp.
References theBlockImageRect, theImageRect, and ossimIrect::ul().
void ossimNitfTileSource::setCacheEnabledFlag | ( | bool | flag | ) |
flag | Sets theCacheEnabledFlag and disables/enables caching accordingly. If cache is disabled it is also flushed at the same time. If cache is enabled, blocks read from the image will be cached. |
Definition at line 2686 of file ossimNitfTileSource.cpp.
References ossimAppFixedTileCache::deleteCache(), ossimAppFixedTileCache::instance(), theBlockImageRect, theCacheEnabledFlag, theCacheId, and theCacheSize.
Referenced by setProperty().
|
virtual |
entryIdx | Zero base entry number to select. Sets data member "theCurrentEntry". |
Reimplemented from ossimImageHandler.
Definition at line 2627 of file ossimNitfTileSource.cpp.
References allocate(), ossimString::clear(), ossimImageHandler::completeOpen(), isOpen(), theCurrentEntry, ossimImageHandler::theGeometry, ossimImageHandler::theLut, theNitfImageHeader, theNumberOfImages, theOutputBandList, and ossimImageHandler::theOverviewFile.
|
virtual |
Reimplemented from ossimImageHandler.
Definition at line 2846 of file ossimNitfTileSource.cpp.
References ossimKeywordNames::ENABLE_CACHE_KW, ossimRefPtr< T >::get(), ossimBooleanProperty::getBoolean(), PTR_CAST, setCacheEnabledFlag(), and ossimImageHandler::setProperty().
|
protectedvirtual |
Uncompresses a jpeg block using the jpeg-6b library.
This method does eight bit jpeg compressed blocks. Note there is specialized jpeg12 plugin for 12 bit.
x | sample location in image space. |
y | line location in image space. |
Reimplemented in ossimOpjNitfReader, and ossimJpeg12NitfReader.
Definition at line 3397 of file ossimNitfTileSource.cpp.
References getBlockNumber(), x, and y.
|
protected |
Uncompresses Vector Quantization unmasked image data.
IC field = C4
destination | tile to stuff. |
source | Pointer to compressed data. |
Definition at line 2937 of file ossimNitfTileSource.cpp.
References ossimRefPtr< T >::get(), ossimNitfImageHeader::getBandInformation(), ossimImageData::getBuf(), ossimNitfImageHeader::getCompressionHeader(), getCurrentImageHeader(), ossimNitfVqCompressionHeader::getImageCodeBitLength(), ossimNitfImageBand::getLut(), ossimImageData::getNumberOfBands(), ossimNBandLutDataObject::getNumberOfBands(), ossimNitfVqCompressionHeader::getNumberOfImageCodesPerRow(), ossimNitfVqCompressionHeader::getNumberOfImageRows(), ossimRectilinearDataObject::getScalarType(), ossimNitfVqCompressionHeader::getTable(), ossimImageData::getWidth(), OSSIM_UINT8, PTR_CAST, ossimImageHandler::theLut, and ossimRefPtr< T >::valid().
|
protected |
Uncompresses Vector Quantization masked image data.
IC field = M4
destination | tile to stuff. |
source | Pointer to compressed data. |
Definition at line 3051 of file ossimNitfTileSource.cpp.
References ossimRefPtr< T >::get(), ossimNitfImageHeader::getBandInformation(), ossimImageData::getBuf(), ossimNitfImageHeader::getCompressionHeader(), getCurrentImageHeader(), ossimNitfVqCompressionHeader::getImageCodeBitLength(), ossimNitfImageBand::getLut(), ossimImageData::getNumberOfBands(), ossimNitfVqCompressionHeader::getNumberOfImageCodesPerRow(), ossimNitfVqCompressionHeader::getNumberOfImageRows(), ossimRectilinearDataObject::getScalarType(), ossimNitfVqCompressionHeader::getTable(), ossimImageData::getWidth(), OSSIM_UINT8, PTR_CAST, and ossimRefPtr< T >::valid().
|
protected |
Definition at line 548 of file ossimNitfTileSource.h.
|
protected |
Definition at line 534 of file ossimNitfTileSource.h.
Referenced by allocateBuffers(), getPartialReadSize(), getTile(), initializeImageRect(), setBoundingRectangle(), and setCacheEnabledFlag().
|
protected |
Definition at line 520 of file ossimNitfTileSource.h.
Referenced by getBandOffset(), getBlockOffset(), and initializeBlockSize().
|
protected |
Definition at line 530 of file ossimNitfTileSource.h.
Referenced by allocateBuffers(), getCacheEnabledFlag(), getProperty(), loadBlockFromCache(), saveState(), and setCacheEnabledFlag().
|
protected |
Definition at line 532 of file ossimNitfTileSource.h.
Referenced by allocate(), allocateBuffers(), destroy(), ossimKakaduNitfReader::loadBlock(), loadBlockFromCache(), and setCacheEnabledFlag().
|
protected |
Definition at line 528 of file ossimNitfTileSource.h.
Referenced by allocate(), allocateBuffers(), getBlockNumber(), getPartialReadSize(), getTileHeight(), getTileWidth(), initializeCacheSize(), initializeCacheTile(), ossimKakaduNitfReader::loadBlock(), loadTile(), and setCacheEnabledFlag().
|
protected |
Definition at line 512 of file ossimNitfTileSource.h.
Referenced by allocate(), ossimKakaduNitfReader::allocateBuffers(), allocateBuffers(), destroy(), explodePackedBits(), getPartialReadSize(), getTile(), initializeCacheTile(), ossimKakaduNitfReader::loadBlock(), loadTile(), ossimKakaduNitfReader::setMaxPixelValue(), ossimKakaduNitfReader::setMinPixelValue(), and ossimKakaduNitfReader::setNullPixelValue().
|
protected |
Definition at line 529 of file ossimNitfTileSource.h.
Referenced by allocate(), getTile(), ossimKakaduNitfReader::initializeCacheTileInterLeaveType(), initializeCacheTileInterLeaveType(), loadBlockFromCache(), and loadTile().
|
protected |
Definition at line 535 of file ossimNitfTileSource.h.
Referenced by allocate(), ossimOpjNitfReader::initializeCompressedBuf(), and initializeCompressedBuf().
|
protected |
Definition at line 523 of file ossimNitfTileSource.h.
Referenced by getCurrentEntry(), getCurrentImageHeader(), initializeLut(), saveState(), scanForJpegBlockOffsets(), and setCurrentEntry().
|
protected |
Definition at line 531 of file ossimNitfTileSource.h.
Referenced by getEntryList(), and getNumberOfEntries().
|
protected |
Definition at line 525 of file ossimNitfTileSource.h.
Referenced by ossimKakaduNitfReader::checkJp2Signature(), destroy(), ossimKakaduNitfReader::dumpTiles(), ossimKakaduNitfReader::get_pos(), ossimKakaduNitfReader::read(), ossimOpjNitfReader::scanForJpegBlockOffsets(), ossimKakaduNitfReader::scanForJpegBlockOffsets(), scanForJpegBlockOffsets(), and ossimKakaduNitfReader::seek().
|
protected |
Definition at line 524 of file ossimNitfTileSource.h.
Referenced by getTile(), initializeImageRect(), and setBoundingRectangle().
|
protected |
Definition at line 541 of file ossimNitfTileSource.h.
Referenced by ossimOpjNitfReader::scanForJpegBlockOffsets(), and scanForJpegBlockOffsets().
|
protected |
Definition at line 542 of file ossimNitfTileSource.h.
Referenced by ossimOpjNitfReader::initializeCompressedBuf(), ossimOpjNitfReader::scanForJpegBlockOffsets(), and scanForJpegBlockOffsets().
|
protected |
Definition at line 513 of file ossimNitfTileSource.h.
Referenced by destroy(), getFileHeader(), and getProperty().
|
protected |
Definition at line 514 of file ossimNitfTileSource.h.
Referenced by destroy(), getCurrentImageHeader(), initializeLut(), isOpen(), and setCurrentEntry().
|
protected |
Definition at line 522 of file ossimNitfTileSource.h.
Referenced by setCurrentEntry().
|
protected |
Definition at line 518 of file ossimNitfTileSource.h.
Referenced by allocate(), getBlockOffset(), getNumberOfInputBands(), getPartialReadSize(), and initializeBandCount().
|
protected |
Definition at line 519 of file ossimNitfTileSource.h.
Referenced by ossimKakaduNitfReader::configureChannelMapping(), getNumberOfOutputBands(), initializeBandCount(), and initializeCacheTile().
|
protected |
Definition at line 527 of file ossimNitfTileSource.h.
Referenced by initializeBandCount(), and setCurrentEntry().
|
protected |
Definition at line 533 of file ossimNitfTileSource.h.
Referenced by getMaxPixelValue(), getMinPixelValue(), getNullPixelValue(), and initializeScalarType().
|
protected |
Definition at line 521 of file ossimNitfTileSource.h.
Referenced by getBlockOffset(), getPartialReadSize(), getPosition(), initializeBlockSize(), and initializeCompressedBuf().
|
protected |
Definition at line 515 of file ossimNitfTileSource.h.
Referenced by allocate(), getBandOffset(), getBlockNumber(), getBlockOffset(), getPartialReadSize(), getPosition(), initializeCacheSize(), initializeCacheTileInterLeaveType(), ossimOpjNitfReader::initializeReadMode(), ossimKakaduNitfReader::initializeReadMode(), initializeReadMode(), ossimOpjNitfReader::scanForJpegBlockOffsets(), and scanForJpegBlockOffsets().
|
protected |
Definition at line 516 of file ossimNitfTileSource.h.
Referenced by allocate(), getOutputScalarType(), initializeCacheTile(), initializeScalarType(), and initializeSwapBytesFlag().
|
protected |
Definition at line 526 of file ossimNitfTileSource.h.
|
protected |
Definition at line 517 of file ossimNitfTileSource.h.
Referenced by ossimKakaduNitfReader::initializeSwapBytesFlag(), and initializeSwapBytesFlag().
|
protected |
Definition at line 511 of file ossimNitfTileSource.h.
Referenced by allocate(), ossimKakaduNitfReader::allocateBuffers(), destroy(), getTile(), initializeOutputTile(), loadBlockFromCache(), loadTile(), ossimKakaduNitfReader::setMaxPixelValue(), ossimKakaduNitfReader::setMinPixelValue(), and ossimKakaduNitfReader::setNullPixelValue().