OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Pure virtual base class for image file writers. More...
#include <ossimImageFileWriter.h>
Public Member Functions | |
ossimImageFileWriter (const ossimFilename &filename=ossimFilename(), ossimImageSource *inputSource=0, ossimObject *owner=0) | |
The writer will own the sequencer. More... | |
virtual | ~ossimImageFileWriter () |
virtual ossimObject * | getObject () |
virtual const ossimObject * | getObject () const |
virtual void | getImageTypeList (std::vector< ossimString > &imageTypeList) const =0 |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const More... | |
virtual ossimString | getExtension () const |
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions. More... | |
virtual bool | getOutputHasInternalOverviews (void) const |
Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nitf_j2k. More... | |
virtual bool | hasImageType (const ossimString &imageType) const |
bool hasImageType(const ossimString& imageType) const More... | |
virtual void | setTileSize (const ossimIpt &tileSize) |
Sets the output image tiling size if supported by the writer. More... | |
virtual bool | writeEnviHeaderFile () |
Will write an envi header file. More... | |
virtual bool | writeErsHeaderFile () |
Will write an ER Mapper header file. More... | |
virtual bool | writeExternalGeometryFile () |
Will write an external geometry file. More... | |
virtual bool | writeFgdcFile () |
Will write an fgdc file. More... | |
virtual bool | writeHistogramFile () |
Returns true on success, false on error. More... | |
virtual bool | writeJpegWorldFile () |
Will write a jpeg world file. More... | |
virtual bool | writeOverviewFile (ossim_uint16 tiff_compress_type=1, ossim_int32 jpeg_compress_quality=75, bool includeR0=false) |
Write out an ossim overview file from the source_file. More... | |
virtual bool | writeReadmeFile () |
Will write a readme file. More... | |
virtual bool | writeTiffWorldFile () |
Will write a world file. More... | |
virtual bool | writeWorldFile () |
Will write a world file. More... | |
virtual bool | writeMetaDataFiles () |
Convenience method that calls meta data write methods that are flagged to be called. More... | |
virtual void | setAreaOfInterest (const ossimIrect &inputRect) |
virtual void | changeSequencer (ossimImageSourceSequencer *sequencer) |
Sets the sequencer and connects it to the input of this. More... | |
virtual ossimImageSourceSequencer * | getSequencer () |
virtual void | initialize () |
Initialize method. More... | |
virtual bool | execute () |
Calls: writeFile() writeMetaDataFiles() More... | |
virtual bool | writeStream () |
Method to write the image to a stream. More... | |
virtual bool | setOutputStream (ossimRefPtr< ossimOStream > stream) |
Sets the output stream to write to. More... | |
virtual bool | setOutputStream (std::ostream &str) |
tmp drb More... | |
virtual ossimRefPtr< ossimOStream > | getOutputStream () const |
Method to return the stream attached to output. More... | |
virtual void | setPercentComplete (double percentComplete) |
virtual void | setOutputImageType (ossim_int32 type) |
virtual void | setOutputImageType (const ossimString &type) |
virtual ossim_int32 | getOutputImageType () const |
virtual ossimString | getOutputImageTypeString () const |
virtual void | setOutputName (const ossimString &outputName) |
virtual void | setFilename (const ossimFilename &file) |
virtual const ossimFilename & | getFilename () const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
required to be overriden by derived classes More... | |
virtual void | disconnectInputEvent (ossimConnectionEvent &event) |
virtual void | connectInputEvent (ossimConnectionEvent &event) |
virtual void | propertyEvent (ossimPropertyEvent &event) |
virtual bool | getWriteImageFlag () const |
Control flags... More... | |
virtual bool | getWriteHistogramFlag () const |
virtual bool | getWriteOverviewFlag () const |
virtual bool | getScaleToEightBitFlag () const |
virtual bool | getWriteEnviHeaderFlag () const |
virtual bool | getWriteErsHeaderFlag () const |
virtual bool | getWriteExternalGeometryFlag () const |
virtual bool | getWriteFgdcFlag () const |
virtual bool | getWriteJpegWorldFileFlag () const |
virtual bool | getWriteReadmeFlag () const |
virtual bool | getWriteTiffWorldFileFlag () const |
virtual bool | getWriteWorldFileFlag () const |
virtual void | setWriteImageFlag (bool flag) |
virtual void | setWriteOverviewFlag (bool flag) |
virtual void | setWriteHistogramFlag (bool flag) |
virtual void | setScaleToEightBitFlag (bool flag) |
virtual void | setWriteEnviHeaderFlag (bool flag) |
virtual void | setWriteErsHeaderFlag (bool flag) |
virtual void | setWriteExternalGeometryFlag (bool flag) |
virtual void | setWriteFgdcFlag (bool flag) |
virtual void | setWriteJpegWorldFile (bool flag) |
virtual void | setWriteReadme (bool flag) |
virtual void | setWriteTiffWorldFile (bool flag) |
virtual void | setWriteWorldFile (bool flag) |
virtual ossim_uint16 | getOverviewCompressType () const |
virtual ossim_int32 | getOverviewJpegCompressQuality () const |
virtual void | setOverviewCompressType (ossim_uint16 type) |
virtual void | setOverviewJpegCompressQuality (ossim_int32 quality) |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
virtual bool | addListener (ossimListener *listener) |
Overrides base "addListener" this will capture the pointer and then call the base class "addListener". More... | |
virtual bool | removeListener (ossimListener *listener) |
Overrides base "removeListener". More... | |
virtual void | setPixelType (ossimPixelType type) |
If "point" the coordinate tie points are relative to the center of the pixel. More... | |
virtual void | setPixelType (const ossimString &type) |
If "point" the coordinate tie points are relative to the center of the pixel. More... | |
virtual ossimPixelType | getPixelType () const |
virtual void | getPixelTypeString (ossimString &type) const |
![]() | |
ossimImageWriter (ossimObject *owner=NULL) | |
ossimImageWriter (ossimObject *owner, ossim_uint32 numberOfInputs, ossim_uint32 numberOfOutputs, bool inputListIsFixed, bool outputListIsFixed) | |
virtual | ~ossimImageWriter () |
virtual bool | setViewingRect (const ossimIrect &aRect) |
virtual ossimIrect | getAreaOfInterest () const |
![]() | |
ossimOutputSource (ossimObject *owner=NULL) | |
ossimOutputSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimOutputSource () |
virtual bool | isOpen () const =0 |
virtual bool | open ()=0 |
virtual bool | open (const ossimString &outputName) |
virtual const ossimString & | getOutputName () |
virtual void | close ()=0 |
![]() | |
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 | 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 |
![]() | |
ossimProcessInterface () | |
virtual | ~ossimProcessInterface () |
virtual void | abort () |
bool | needsAborting () const |
bool | isAbortRequested () const |
bool | isAborted () const |
bool | isExecuting () const |
ossimProcessStatus | getProcessStatus () const |
virtual void | setProcessStatus (ossimProcessStatus processStatus) |
virtual double | getPercentComplete () const |
virtual ossimListenerManager * | getManager () |
void | enableEvents () |
void | disableEvents () |
void | setCurrentMessage (const ossimString &message) |
virtual std::ostream & | print (std::ostream &out) const |
![]() | |
ossimConnectableObjectListener () | |
virtual | ~ossimConnectableObjectListener () |
virtual void | processEvent (ossimEvent &event) |
ProcessEvent. More... | |
virtual void | objectDestructingEvent (ossimObjectDestructingEvent &) |
virtual void | connectionEvent (ossimConnectionEvent &) |
virtual void | disconnectOutputEvent (ossimConnectionEvent &) |
virtual void | connectOutputEvent (ossimConnectionEvent &) |
virtual void | addObjectEvent (ossimContainerEvent &) |
virtual void | removeObjectEvent (ossimContainerEvent &) |
virtual void | containerEvent (ossimContainerEvent &) |
virtual void | refreshEvent (ossimRefreshEvent &) |
![]() | |
ossimListener () | |
virtual | ~ossimListener () |
void | enableListener () |
void | disableListener () |
void | setListenerEnableFlag (bool flag) |
bool | isListenerEnabled () const |
bool | getListenerEnableFlag () const |
Protected Member Functions | |
bool | writeWorldFile (const ossimFilename &file) |
Common world file writer method. More... | |
virtual bool | writeFile ()=0 |
Write out the file. More... | |
![]() | |
ossimSource (const ossimSource &rhs) | |
const ossimSource & | operator= (const ossimSource &rhs) |
![]() | |
ossimConnectableObject * | findObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor) |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimListenerManager (const ossimListenerManager &rhs) | |
Additional Inherited Members | |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
![]() | |
enum | ossimProcessStatus { PROCESS_STATUS_UNKNOWN = 0, PROCESS_STATUS_EXECUTING = 1, PROCESS_STATUS_ABORTED = 2, PROCESS_STATUS_ABORT_REQUEST = 3, PROCESS_STATUS_NOT_EXECUTING = 4 } |
Pure virtual base class for image file writers.
There is normally one subclass of this class for each format supported for writing. This class roughly corresponds to the ImageHandler class used for reading images. Format specific ossimImageWriter's are normally instantiated by the ossimImageWriterFactory::createWriterInstance() method. ossimImageWriters should not be directly instantiated by application code.
Definition at line 34 of file ossimImageFileWriter.h.
ossimImageFileWriter::ossimImageFileWriter | ( | const ossimFilename & | filename = ossimFilename() , |
ossimImageSource * | inputSource = 0 , |
||
ossimObject * | owner = 0 |
||
) |
The writer will own the sequencer.
Definition at line 65 of file ossimImageFileWriter.cpp.
|
virtual |
Definition at line 122 of file ossimImageFileWriter.cpp.
References removeListener(), theInputConnection, and theProgressListener.
|
virtual |
Overrides base "addListener" this will capture the pointer and then call the base class "addListener".
If overview building is enabled, the listener will be passed to the overview builder::addListener, and subsequently removed from the overview builder after the build overview call is complete. This it transparent to the caller of this method.
listener | The listener to add. |
Reimplemented from ossimListenerManager.
Definition at line 1523 of file ossimImageFileWriter.cpp.
References ossimListenerManager::addListener(), and theProgressListener.
Referenced by ossimChipProcTool::execute(), main(), and ossimIgen::writeToFile().
|
virtual |
required to be overriden by derived classes
Implements ossimConnectableObject.
Definition at line 1227 of file ossimImageFileWriter.cpp.
References PTR_CAST.
|
virtual |
Sets the sequencer and connects it to the input of this.
This does not set the area of interest. Note stored as an ossimRefPtr.
sequencer | Pointer to a sequencer. |
Definition at line 160 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimConnectableObject::getInput(), and theInputConnection.
Referenced by ossimIgen::outputProduct().
|
virtual |
Reimplemented from ossimConnectableObjectListener.
Definition at line 824 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimConnectableObject::getInput(), initialize(), PTR_CAST, theInputConnection, and theViewController.
|
virtual |
Reimplemented from ossimConnectableObjectListener.
Definition at line 813 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::disconnectMyInput(), ossimConnectableObject::getInput(), initialize(), PTR_CAST, theInputConnection, and theViewController.
|
virtual |
Calls: writeFile() writeMetaDataFiles()
Implements ossimProcessInterface.
Definition at line 1016 of file ossimImageFileWriter.cpp.
References theInputConnection.
Referenced by ossimDemTool::doOMG(), ossimPointCloudTool::execute(), ossimChipProcTool::execute(), ossimKmlSuperOverlayWriter::generateTile(), main(), ATP::AtpAnnotatedImage::write(), writeRaster(), and ossimHlzTool::writeSlopeImage().
|
virtual |
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions.
imageType | string representing image type. |
Reimplemented in ossimTiffWriter, ossimKakaduNitfWriter, ossimNitfWriterBase, ossimKmlSuperOverlayWriter, ossimOpjJp2Writer, ossimKakaduJp2Writer, ossimJpegWriter, ossimGpkgWriter, ossimPdfWriter, ossimWriter, ossimArcInfoGridWriter, ossimGeneralRasterWriter, ossimGdalWriter, and ossimPngWriter.
Definition at line 1491 of file ossimImageFileWriter.cpp.
|
virtual |
Definition at line 1222 of file ossimImageFileWriter.cpp.
References theFilename.
Referenced by ossimIgen::outputProduct().
|
pure virtual |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
pure virtual
Appends the writers image types to the "imageTypeList".
This is the actual image type name. So for example, ossimTiffWriter has several image types. Some of these include TIFF_TILED, TIFF_TILED_BAND_SEPARATE ... etc. The ossimGdalWriter may include GDAL_IMAGINE_HFA, GDAL_RGB_NITF, GDAL_JPEG20000, ... etc.
imageTypeList | stl::vector<ossimString> list to append to. |
Implemented in ossimGpkgWriter, ossimPdfWriter, ossimWriter, ossimPngWriter, ossimTiffWriter, ossimKmlSuperOverlayWriter, ossimOpjJp2Writer, ossimNitfWriter, ossimKakaduNitfWriter, ossimNitf20Writer, ossimKakaduJp2Writer, ossimGeneralRasterWriter, ossimGdalWriter, and ossimJpegWriter.
Referenced by ossimImageWriterFactory::getImageTypeList(), ossimKmlSuperOverlayWriterFactory::getImageTypeList(), getProperty(), hasImageType(), and ossimImageWriterFactoryRegistry::printWriterProps().
|
virtual |
Implements ossimProcessInterface.
Definition at line 982 of file ossimImageFileWriter.cpp.
|
virtual |
Implements ossimProcessInterface.
Definition at line 987 of file ossimImageFileWriter.cpp.
|
virtual |
Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nitf_j2k.
Reimplemented in ossimKakaduNitfWriter, ossimOpjJp2Writer, and ossimKakaduJp2Writer.
Definition at line 1497 of file ossimImageFileWriter.cpp.
|
virtual |
Definition at line 855 of file ossimImageFileWriter.cpp.
References ossimLookUpTable::getEntryNumber(), and theOutputImageType.
|
virtual |
Definition at line 849 of file ossimImageFileWriter.cpp.
References theOutputImageType.
|
virtual |
Method to return the stream attached to output.
This implementation in this class does nothing and returns an empty ossimRefPtr<ossimOStream>. Derived classed should implement as needed.
Definition at line 1175 of file ossimImageFileWriter.cpp.
|
virtual |
Definition at line 1235 of file ossimImageFileWriter.cpp.
References theOverviewCompressType.
|
virtual |
Definition at line 1240 of file ossimImageFileWriter.cpp.
References theOverviewJpegCompressQuality.
|
virtual |
Definition at line 1557 of file ossimImageFileWriter.cpp.
References thePixelType.
Referenced by ossimKakaduJp2Writer::writeGeotiffBox().
|
virtual |
type | ossimString to initialize which will either be "point" or "area". |
Definition at line 1562 of file ossimImageFileWriter.cpp.
References OSSIM_PIXEL_IS_POINT, and thePixelType.
|
virtual |
Reimplemented from ossimSource.
Reimplemented in ossimWriter, ossimPdfWriter, ossimTiffWriter, ossimGpkgWriter, ossimPngWriter, ossimKmlSuperOverlayWriter, ossimOpjJp2Writer, ossimKakaduNitfWriter, ossimKakaduJp2Writer, ossimJpegWriter, ossimGdalWriter, ossimNitfWriterBase, ossimNitfWriter, and ossimNitf20Writer.
Definition at line 1343 of file ossimImageFileWriter.cpp.
References ossimKeywordNames::FILENAME_KW, getImageTypeList(), ossimKeywordNames::IMAGE_TYPE_KW, ossimFilenameProperty::ossimFilenamePropertyIoType_OUTPUT, ossimProperty::ossimPropertyChangeType_AFFECTS_OTHERS, ossimProperty::setChangeType(), ossimStringProperty::setConstraints(), ossimFilenameProperty::setIoType(), ossimProperty::setReadOnlyFlag(), theFilename, and theOutputImageType.
Referenced by ossimNitf20Writer::getProperty(), ossimJpegWriter::getProperty(), ossimKakaduJp2Writer::getProperty(), ossimKmlSuperOverlayWriter::getProperty(), ossimGpkgWriter::getProperty(), ossimTiffWriter::getProperty(), ossimPdfWriter::getProperty(), and ossimImageWriterFactoryRegistry::printWriterProps().
|
virtual |
Reimplemented from ossimSource.
Reimplemented in ossimWriter, ossimPdfWriter, ossimTiffWriter, ossimGpkgWriter, ossimPngWriter, ossimKmlSuperOverlayWriter, ossimOpjJp2Writer, ossimKakaduNitfWriter, ossimKakaduJp2Writer, ossimJpegWriter, ossimGdalWriter, ossimNitfWriterBase, ossimNitfWriter, and ossimNitf20Writer.
Definition at line 1468 of file ossimImageFileWriter.cpp.
References ossimKeywordNames::CREATE_EXTERNAL_GEOMETRY_KW, ossimKeywordNames::CREATE_HISTOGRAM_KW, ossimKeywordNames::CREATE_IMAGE_KW, ossimKeywordNames::CREATE_OVERVIEW_KW, ossimKeywordNames::FILENAME_KW, and ossimSource::getPropertyNames().
Referenced by ossimNitf20Writer::getPropertyNames(), ossimNitfWriterBase::getPropertyNames(), ossimJpegWriter::getPropertyNames(), ossimKakaduJp2Writer::getPropertyNames(), ossimKmlSuperOverlayWriter::getPropertyNames(), ossimTiffWriter::getPropertyNames(), ossimPdfWriter::getPropertyNames(), and ossimImageWriterFactoryRegistry::printWriterProps().
|
virtual |
Definition at line 877 of file ossimImageFileWriter.cpp.
References theScaleToEightBitFlag.
|
virtual |
Definition at line 1011 of file ossimImageFileWriter.cpp.
References ossimRefPtr< T >::get(), and theInputConnection.
Referenced by ossimGeneralRasterWriter::writeFile().
|
virtual |
Definition at line 882 of file ossimImageFileWriter.cpp.
References theWriteEnviHeaderFlag.
|
virtual |
Definition at line 887 of file ossimImageFileWriter.cpp.
References theWriteErsHeaderFlag.
|
virtual |
Definition at line 892 of file ossimImageFileWriter.cpp.
References theWriteExternalGeometryFlag.
|
virtual |
|
virtual |
Definition at line 867 of file ossimImageFileWriter.cpp.
References theWriteHistogramFlag.
|
virtual |
Control flags...
Definition at line 862 of file ossimImageFileWriter.cpp.
References theWriteImageFlag.
|
virtual |
Definition at line 902 of file ossimImageFileWriter.cpp.
References theWriteJpegWorldFileFlag.
|
virtual |
Definition at line 872 of file ossimImageFileWriter.cpp.
References theWriteOverviewFlag.
|
virtual |
Definition at line 907 of file ossimImageFileWriter.cpp.
References theWriteReadmeFlag.
|
virtual |
Definition at line 912 of file ossimImageFileWriter.cpp.
References theWriteTiffWorldFileFlag.
|
virtual |
Definition at line 917 of file ossimImageFileWriter.cpp.
References theWriteWorldFileFlag.
|
virtual |
bool hasImageType(const ossimString& imageType) const
imageType | string representing image type. |
Reimplemented in ossimTiffWriter, ossimPdfWriter, ossimOpjJp2Writer, ossimGpkgWriter, ossimKmlSuperOverlayWriter, ossimKakaduJp2Writer, ossimPngWriter, ossimJpegWriter, ossimKakaduNitfWriter, ossimWriter, and ossimGdalWriter.
Definition at line 1504 of file ossimImageFileWriter.cpp.
References getImageTypeList().
Referenced by ossimGdalImageWriterFactory::createWriter(), ossimImageWriterFactory::createWriter(), ossimSqliteWriterFactory::createWriter(), ossimPngWriterFactory::createWriter(), ossimOpjWriterFactory::createWriter(), ossimKakaduWriterFactory::createWriter(), ossimGdalWriter::hasImageType(), ossimJpegWriter::hasImageType(), and ossimTiffWriter::hasImageType().
|
virtual |
Initialize method.
Calls theInputConnection->initialize() then syncs area of interest(AOI) with ossimImageWriter::theAreaOfInterest taking precedence over ossimImageSourceSequencer::theAreaOfInterest.
Reimplemented from ossimSource.
Definition at line 129 of file ossimImageFileWriter.cpp.
References ossimImageSourceSequencer::getBoundingRect(), ossimIrect::hasNans(), ossimImageSourceSequencer::initialize(), ossimImageSourceSequencer::setAreaOfInterest(), ossimImageWriter::theAreaOfInterest, theInputConnection, and ossimRefPtr< T >::valid().
Referenced by connectInputEvent(), disconnectInputEvent(), ossimIgen::outputProduct(), propertyEvent(), and ATP::AtpAnnotatedImage::write().
|
virtual |
Method to the load (recreate) the state of the object from a keyword list. Return true if ok or false on error.
Reimplemented from ossimImageWriter.
Reimplemented in ossimWriter, ossimPdfWriter, ossimTiffWriter, ossimNitfWriterBase, ossimGpkgWriter, ossimNitfWriter, ossimNitf20Writer, ossimPngWriter, ossimKmlSuperOverlayWriter, ossimOpjJp2Writer, ossimGeneralRasterWriter, ossimGdalWriter, ossimKakaduNitfWriter, ossimKakaduJp2Writer, ossimJpegWriter, and ossimArcInfoGridWriter.
Definition at line 288 of file ossimImageFileWriter.cpp.
References ossimKeywordNames::CREATE_EXTERNAL_GEOMETRY_KW, ossimKeywordNames::CREATE_HISTOGRAM_KW, ossimKeywordNames::CREATE_IMAGE_KW, ossimKeywordNames::CREATE_OVERVIEW_KW, ossimKeywordNames::FILENAME_KW, ossimKeywordNames::FILEPATH_KW, ossimKeywordlist::find(), ossimUnitTypeLut::instance(), ossimSource::loadState(), OSSIM_FEET, OSSIM_METERS, OSSIM_PIXEL_IS_AREA, OSSIM_PIXEL_IS_POINT, OSSIM_US_SURVEY_FEET, ossimKeywordNames::PIXEL_TYPE_KW, setFilename(), theLinearUnits, thePixelType, theScaleToEightBitFlag, theWriteEnviHeaderFlag, theWriteErsHeaderFlag, theWriteExternalGeometryFlag, theWriteFgdcFlag, theWriteHistogramFlag, theWriteImageFlag, theWriteJpegWorldFileFlag, theWriteOverviewFlag, theWriteReadmeFlag, theWriteTiffWorldFileFlag, theWriteWorldFileFlag, and ossimString::toBool().
Referenced by ossimGdalImageWriterFactory::createWriter(), ossimImageWriterFactory::createWriter(), ossimSqliteWriterFactory::createWriter(), ossimOpjWriterFactory::createWriter(), ossimPngWriterFactory::createWriter(), ossimKakaduWriterFactory::createWriter(), ossimKmlSuperOverlayWriterFactory::createWriter(), ossimArcInfoGridWriter::loadState(), ossimJpegWriter::loadState(), ossimKakaduJp2Writer::loadState(), ossimGdalWriter::loadState(), ossimGeneralRasterWriter::loadState(), ossimKmlSuperOverlayWriter::loadState(), ossimGpkgWriter::loadState(), ossimPdfWriter::loadState(), and ossimWriter::loadState().
|
virtual |
Reimplemented from ossimConnectableObjectListener.
Definition at line 833 of file ossimImageFileWriter.cpp.
References initialize().
|
virtual |
Overrides base "removeListener".
Calls base "removeListener which will find and removes the listener. If "theProgressListener" pointer matches listener "theProgressListener" will be set to NULL.
listener | The listener to remove. |
Reimplemented from ossimListenerManager.
Definition at line 1529 of file ossimImageFileWriter.cpp.
References ossimListenerManager::removeListener(), and theProgressListener.
Referenced by ossimChipProcTool::execute(), main(), and ~ossimImageFileWriter().
|
virtual |
Method to save the state of the object to a keyword list. Return true if ok or false on error.
Reimplemented from ossimImageWriter.
Reimplemented in ossimWriter, ossimPdfWriter, ossimTiffWriter, ossimGpkgWriter, ossimNitfWriterBase, ossimNitfWriter, ossimNitf20Writer, ossimPngWriter, ossimKmlSuperOverlayWriter, ossimOpjJp2Writer, ossimGeneralRasterWriter, ossimGdalWriter, ossimKakaduNitfWriter, ossimKakaduJp2Writer, ossimJpegWriter, and ossimArcInfoGridWriter.
Definition at line 169 of file ossimImageFileWriter.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimKeywordNames::CREATE_EXTERNAL_GEOMETRY_KW, ossimKeywordNames::CREATE_HISTOGRAM_KW, ossimKeywordNames::CREATE_IMAGE_KW, ossimKeywordNames::CREATE_OVERVIEW_KW, ossimKeywordNames::FILENAME_KW, ossimObject::getClassName(), theFilename, theScaleToEightBitFlag, theWriteEnviHeaderFlag, theWriteErsHeaderFlag, theWriteExternalGeometryFlag, theWriteFgdcFlag, theWriteHistogramFlag, theWriteImageFlag, theWriteJpegWorldFileFlag, theWriteOverviewFlag, theWriteReadmeFlag, theWriteTiffWorldFileFlag, theWriteWorldFileFlag, and ossimKeywordNames::TYPE_KW.
Referenced by ossimArcInfoGridWriter::saveState(), ossimJpegWriter::saveState(), ossimKakaduJp2Writer::saveState(), ossimGeneralRasterWriter::saveState(), ossimKmlSuperOverlayWriter::saveState(), ossimGpkgWriter::saveState(), ossimPdfWriter::saveState(), and ossimWriter::saveState().
|
virtual |
Reimplemented from ossimImageWriter.
Definition at line 992 of file ossimImageFileWriter.cpp.
References ossimImageSourceSequencer::getBoundingRect(), ossimImageWriter::setAreaOfInterest(), ossimImageSourceSequencer::setAreaOfInterest(), ossimImageWriter::theAreaOfInterest, theInputConnection, and ossimRefPtr< T >::valid().
Referenced by ossimChipProcTool::execute(), ossimKmlSuperOverlayWriter::generateTile(), ossimIgen::outputProduct(), ATP::AtpAnnotatedImage::write(), and ossimHlzTool::writeSlopeImage().
|
virtual |
Definition at line 1217 of file ossimImageFileWriter.cpp.
References theFilename.
Referenced by ossimImageWriterFactoryRegistry::createWriter(), ossimKmlSuperOverlayWriter::generateTile(), ossimGeneralRasterWriter::loadState(), loadState(), main(), ossimIgen::outputProduct(), setOutputName(), ATP::AtpAnnotatedImage::write(), writeRaster(), and ossimHlzTool::writeSlopeImage().
|
virtual |
Definition at line 843 of file ossimImageFileWriter.cpp.
References ossimLookUpTable::getEntryString(), and theOutputImageType.
Referenced by ossimImageWriterFactory::createFromMimeType(), ossimImageWriterFactory::createWriter(), ossimImageWriterFactory::createWriterFromExtension(), ossimGeneralRasterWriter::ossimGeneralRasterWriter(), ossimKmlSuperOverlayWriter::ossimKmlSuperOverlayWriter(), and ossimGdalWriter::setOutputImageType().
|
virtual |
Reimplemented in ossimGdalWriter.
Definition at line 838 of file ossimImageFileWriter.cpp.
References theOutputImageType.
|
virtual |
This is a generic interface to allow one to set the output name of the writer. If its a Visual display this could be used to set the title. If this is a file output then this could be a directory or a file name.
Reimplemented from ossimOutputSource.
Definition at line 1211 of file ossimImageFileWriter.cpp.
References setFilename(), and ossimOutputSource::setOutputName().
|
virtual |
Sets the output stream to write to.
This implementation in this class does nothing and returns false. Derived classed should implement as needed.
stream | The stream to write to. |
Definition at line 1184 of file ossimImageFileWriter.cpp.
Referenced by ossimIgen::outputProduct().
|
virtual |
tmp drb
Reimplemented in ossimPngWriter, ossimPdfWriter, ossimOpjJp2Writer, ossimKakaduJp2Writer, ossimKakaduNitfWriter, ossimWriter, and ossimGeneralRasterWriter.
Definition at line 1194 of file ossimImageFileWriter.cpp.
|
virtual |
Definition at line 1245 of file ossimImageFileWriter.cpp.
References theOverviewCompressType.
|
virtual |
Definition at line 1250 of file ossimImageFileWriter.cpp.
References theOverviewJpegCompressQuality.
|
virtual |
Reimplemented from ossimProcessInterface.
Definition at line 1204 of file ossimImageFileWriter.cpp.
References ossimListenerManager::fireEvent(), and ossimProcessInterface::setPercentComplete().
Referenced by while(), ossimNitf20Writer::writeBlockBandSeparate(), ossimNitfWriter::writeBlockBandSeparate(), ossimNitf20Writer::writeBlockBandSequential(), and ossimNitfWriter::writeBlockBandSequential().
|
virtual |
If "point" the coordinate tie points are relative to the center of the pixel.
If "area" the coordinate tie points are relative to the upper left corner of the pixel.
For image types that are keyed, tiff for instance, this will set the geotiff key: GTRasterTypeGeoKey
If meta data writers are enabled, world file writers for instance, this will also be propagated to them.
Default in this writer is: OSSIM_PIXEL_IS_POINT
type | OSSIM_PIXEL_IS_POINT = center of pixel OSSIM_PIXEL_IS_AREA = upper left corner of pixel |
Definition at line 1538 of file ossimImageFileWriter.cpp.
References thePixelType.
Referenced by setPixelType().
|
virtual |
If "point" the coordinate tie points are relative to the center of the pixel.
If "area" the coordinate tie points are relative to the upper left corner of the pixel.
For image types that are keyed, tiff for instance, this will set the geotiff key: GTRasterTypeGeoKey
If meta data writers are enabled, world file writers for instance, this will also be propagated to them.
Default in this writer is: OSSIM_PIXEL_IS_POINT
type | "point" = center of pixel "area" = upper left corner of pixel |
Definition at line 1543 of file ossimImageFileWriter.cpp.
References ossimString::downcase(), OSSIM_PIXEL_IS_AREA, OSSIM_PIXEL_IS_POINT, and setPixelType().
|
virtual |
Reimplemented from ossimSource.
Reimplemented in ossimWriter, ossimPdfWriter, ossimTiffWriter, ossimGpkgWriter, ossimPngWriter, ossimKmlSuperOverlayWriter, ossimOpjJp2Writer, ossimKakaduNitfWriter, ossimGdalWriter, ossimKakaduJp2Writer, ossimJpegWriter, ossimNitfWriter, ossimNitfWriterBase, and ossimNitf20Writer.
Definition at line 1255 of file ossimImageFileWriter.cpp.
References ossimKeywordNames::CREATE_EXTERNAL_GEOMETRY_KW, ossimKeywordNames::CREATE_HISTOGRAM_KW, ossimKeywordNames::CREATE_IMAGE_KW, ossimKeywordNames::CREATE_OVERVIEW_KW, ossimKeywordNames::FILENAME_KW, ossimProperty::getName(), theFilename, theScaleToEightBitFlag, theWriteEnviHeaderFlag, theWriteErsHeaderFlag, theWriteExternalGeometryFlag, theWriteFgdcFlag, theWriteHistogramFlag, theWriteImageFlag, theWriteJpegWorldFileFlag, theWriteOverviewFlag, theWriteReadmeFlag, theWriteTiffWorldFileFlag, and theWriteWorldFileFlag.
Referenced by ossimNitf20Writer::setProperty(), ossimJpegWriter::setProperty(), ossimKakaduJp2Writer::setProperty(), ossimGdalWriter::setProperty(), ossimKmlSuperOverlayWriter::setProperty(), ossimTiffWriter::setProperty(), and ossimPdfWriter::setProperty().
|
virtual |
Definition at line 937 of file ossimImageFileWriter.cpp.
References theScaleToEightBitFlag.
|
virtual |
Sets the output image tiling size if supported by the writer.
If not supported this simply sets the sequencer(input) tile size.
Reimplemented in ossimWriter, ossimNitfWriter, and ossimTiffWriter.
Definition at line 1574 of file ossimImageFileWriter.cpp.
References ossimImageSourceSequencer::setTileSize(), theInputConnection, and ossimRefPtr< T >::valid().
|
virtual |
Definition at line 942 of file ossimImageFileWriter.cpp.
References theWriteEnviHeaderFlag.
|
virtual |
Definition at line 947 of file ossimImageFileWriter.cpp.
References theWriteErsHeaderFlag.
|
virtual |
Definition at line 952 of file ossimImageFileWriter.cpp.
References theWriteExternalGeometryFlag.
Referenced by ossimGeneralRasterWriter::ossimGeneralRasterWriter(), and ossimNitf20Writer::ossimNitf20Writer().
|
virtual |
|
virtual |
Definition at line 932 of file ossimImageFileWriter.cpp.
References theWriteHistogramFlag.
|
virtual |
|
virtual |
Definition at line 962 of file ossimImageFileWriter.cpp.
References theWriteJpegWorldFileFlag.
|
virtual |
Definition at line 922 of file ossimImageFileWriter.cpp.
References theWriteOverviewFlag.
|
virtual |
Definition at line 967 of file ossimImageFileWriter.cpp.
References theWriteReadmeFlag.
|
virtual |
Definition at line 972 of file ossimImageFileWriter.cpp.
References theWriteTiffWorldFileFlag.
|
virtual |
Definition at line 977 of file ossimImageFileWriter.cpp.
References theWriteWorldFileFlag.
|
virtual |
Will write an envi header file.
If "theFilename" is "foo.tif" then this will write out "foo.hdr".
Definition at line 500 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimMetadataFileWriter::execute(), ossimRefPtr< T >::get(), ossimIrect::hasNans(), ossimMetadataFileWriter::initialize(), ossimMetadataFileWriter::setAreaOfInterest(), ossimFilename::setExtension(), ossimMetadataFileWriter::setFilename(), ossimMetadataFileWriter::setPixelType(), ossimImageWriter::theAreaOfInterest, theFilename, theInputConnection, and thePixelType.
Referenced by writeMetaDataFiles().
|
virtual |
Will write an ER Mapper header file.
If "theFilename" is "foo.tif" then this will write out "foo.hdr".
Definition at line 527 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimMetadataFileWriter::execute(), ossimRefPtr< T >::get(), ossimIrect::hasNans(), ossimMetadataFileWriter::initialize(), ossimMetadataFileWriter::setAreaOfInterest(), ossimFilename::setExtension(), ossimMetadataFileWriter::setFilename(), ossimMetadataFileWriter::setPixelType(), ossimImageWriter::theAreaOfInterest, theFilename, theInputConnection, and thePixelType.
Referenced by writeMetaDataFiles().
|
virtual |
Will write an external geometry file.
If "theFilename" is "foo.tif" then this will write out "foo.geom".
Definition at line 554 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimMetadataFileWriter::execute(), ossimRefPtr< T >::get(), ossimIrect::hasNans(), ossimMetadataFileWriter::initialize(), ossimMetadataFileWriter::setAreaOfInterest(), ossimFilename::setExtension(), ossimMetadataFileWriter::setFilename(), ossimMetadataFileWriter::setPixelType(), ossimImageWriter::theAreaOfInterest, theFilename, theInputConnection, and thePixelType.
Referenced by writeMetaDataFiles().
|
virtual |
Will write an fgdc file.
If "theFilename" is "foo.tif" then this will write out "foo.xml".
Definition at line 581 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimMetadataFileWriter::execute(), ossimRefPtr< T >::get(), ossimIrect::hasNans(), ossimMetadataFileWriter::initialize(), ossimMetadataFileWriter::setAreaOfInterest(), ossimFilename::setExtension(), ossimMetadataFileWriter::setFilename(), ossimMetadataFileWriter::setPixelType(), ossimImageWriter::theAreaOfInterest, theFilename, theInputConnection, and thePixelType.
|
protectedpure virtual |
Write out the file.
Implemented in ossimGpkgWriter, ossimPngWriter, ossimPdfWriter, ossimOpjJp2Writer, ossimWriter, ossimTiffWriter, ossimNitfWriter, ossimKakaduNitfWriter, ossimKakaduJp2Writer, ossimKmlSuperOverlayWriter, ossimJpegWriter, ossimGeneralRasterWriter, ossimNitf20Writer, ossimGdalWriter, and ossimArcInfoGridWriter.
|
virtual |
Returns true on success, false on error.
Definition at line 780 of file ossimImageFileWriter.cpp.
References ossimListenerManager::addListener(), ossimConnectableObject::connectMyInputTo(), ossimConnectableObject::disconnect(), ossimSource::enableSource(), ossimHistogramWriter::execute(), ossimRefPtr< T >::get(), ossimImageHandlerRegistry::instance(), ossimProcessInterface::needsAborting(), ossimOutputSource::open(), ossimFilename::setExtension(), ossimHistogramWriter::setFilename(), ossimImageHistogramSource::setMaxNumberOfRLevels(), theFilename, and theStdOutProgress.
|
virtual |
Will write a jpeg world file.
If "theFilename" is "foo.tif" then this will write out "foo.jpw".
Definition at line 607 of file ossimImageFileWriter.cpp.
References ossimFilename::setExtension(), theFilename, and writeWorldFile().
|
virtual |
Convenience method that calls meta data write methods that are flagged to be called.
Attempts to write all files flagged to be written even if one file writer returns false.
Currently calls these methods if flagged: writeEnviHeaderFile writeExternalGeometryFile writeFgdcFile writeJpegWorldFile writeReadmeFile writeTiffWorldFile writeOverviewFile writeHistogramFile
Definition at line 663 of file ossimImageFileWriter.cpp.
References ossimProcessInterface::needsAborting(), ossimNotify(), ossimNotifyLevel_WARN, status, theWriteEnviHeaderFlag, theWriteErsHeaderFlag, theWriteExternalGeometryFlag, writeEnviHeaderFile(), writeErsHeaderFile(), and writeExternalGeometryFile().
|
virtual |
Write out an ossim overview file from the source_file.
If source file is "foo.tif", this will create a "foo.ovr" in the same directory.
source_file | The file to create overview from. |
tiff_compress_type | valid types:
|
jpeg_compress_quality | Compression quality. Only valid with COMPRESSION_JPEG. Range 1 to 100 with 100 being the best. default = 75 |
Definition at line 455 of file ossimImageFileWriter.cpp.
References ossimListenerManager::addListener(), ossimTiffOverviewBuilder::execute(), ossimRefPtr< T >::get(), ossimImageHandlerRegistry::instance(), ossimImageHandlerRegistry::open(), ossimListenerManager::removeListener(), ossimTiffOverviewBuilder::setCompressionType(), ossimTiffOverviewBuilder::setCopyAllFlag(), ossimFilename::setExtension(), ossimTiffOverviewBuilder::setInputSource(), ossimTiffOverviewBuilder::setJpegCompressionQuality(), ossimTiffOverviewBuilder::setOutputFile(), theFilename, theProgressListener, and ossimRefPtr< T >::valid().
|
virtual |
Will write a readme file.
If "theFilename" is "foo.tif" then this will write out "foo_readme.txt".
Definition at line 621 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimMetadataFileWriter::execute(), ossimRefPtr< T >::get(), ossimIrect::hasNans(), ossimMetadataFileWriter::initialize(), ossimFilename::noExtension(), ossimMetadataFileWriter::setAreaOfInterest(), ossimMetadataFileWriter::setFilename(), ossimMetadataFileWriter::setPixelType(), ossimImageWriter::theAreaOfInterest, theFilename, theInputConnection, and thePixelType.
|
virtual |
Method to write the image to a stream.
This implementation does nothing and returns false. Derived classed should implement as needed.
Reimplemented in ossimPngWriter, ossimPdfWriter, ossimOpjJp2Writer, ossimKmlSuperOverlayWriter, ossimKakaduJp2Writer, ossimKakaduNitfWriter, ossimWriter, and ossimGeneralRasterWriter.
Definition at line 1166 of file ossimImageFileWriter.cpp.
|
virtual |
Will write a world file.
If "theFilename" is "foo.tif" then this will write out "foo.tfw".
Definition at line 649 of file ossimImageFileWriter.cpp.
References ossimFilename::setExtension(), theFilename, and writeWorldFile().
|
virtual |
Will write a world file.
The extension will be derived from the image extension.
Currently handles the following image extensions:
"tif" or "tiff" -> "tfw" "jpg" of "jpeg" -> "jpw" "png" -> "pgw" "sid" -> "sdw"
If extension does not match one of the above no file will be written and false will be returned.
Definition at line 1582 of file ossimImageFileWriter.cpp.
References ossimString::downcase(), ossimFilename::ext(), ossimNotify(), ossimNotifyLevel_WARN, ossimFilename::setExtension(), ossimString::size(), and theFilename.
Referenced by writeJpegWorldFile(), and writeTiffWorldFile().
|
protected |
Common world file writer method.
file | The file to write like "foo.tfw" or "foo.jpw". |
Definition at line 1633 of file ossimImageFileWriter.cpp.
References ossimConnectableObject::connectMyInputTo(), ossimMetadataFileWriter::execute(), ossimRefPtr< T >::get(), ossimIrect::hasNans(), ossimMetadataFileWriter::initialize(), ossimMetadataFileWriter::setAreaOfInterest(), ossimMetadataFileWriter::setFilename(), ossimWorldFileWriter::setLinearUnits(), ossimMetadataFileWriter::setPixelType(), ossimImageWriter::theAreaOfInterest, theInputConnection, theLinearUnits, and thePixelType.
|
protected |
Definition at line 478 of file ossimImageFileWriter.h.
|
protected |
Definition at line 456 of file ossimImageFileWriter.h.
Referenced by ossimKmlSuperOverlayWriter::generateRootKml(), ossimKmlSuperOverlayWriter::getExtension(), getFilename(), getProperty(), ossimPdfWriter::getTitle(), ossimArcInfoGridWriter::isOpen(), ossimKmlSuperOverlayWriter::isOpen(), ossimArcInfoGridWriter::open(), ossimNitf20Writer::open(), ossimNitfWriter::open(), ossimJpegWriter::open(), ossimKakaduJp2Writer::open(), ossimKakaduNitfWriter::open(), ossimGeneralRasterWriter::open(), ossimKmlSuperOverlayWriter::open(), ossimPngWriter::open(), ossimWriter::open(), ossimPdfWriter::open(), ossimGpkgWriter::open(), ossimTiffWriter::openTiff(), ossimGdalWriter::postProcessOutput(), saveState(), setFilename(), setProperty(), ossimArcInfoGridWriter::writeBinaryAigBounds(), ossimArcInfoGridWriter::writeBinaryAigHeader(), ossimArcInfoGridWriter::writeBinaryAigStats(), ossimGdalWriter::writeBlockFile(), writeEnviHeaderFile(), writeErsHeaderFile(), writeExternalGeometryFile(), writeFgdcFile(), ossimArcInfoGridWriter::writeFile(), ossimJpegWriter::writeFile(), ossimKakaduJp2Writer::writeGeotiffBox(), writeHistogramFile(), writeJpegWorldFile(), writeOverviewFile(), writeReadmeFile(), writeTiffWorldFile(), and writeWorldFile().
|
protected |
Definition at line 453 of file ossimImageFileWriter.h.
Referenced by ossimGpkgWriter::addLevels(), ossimGdalWriter::allocateGdalDriverOptions(), ossimGdalWriter::buildGdalOverviews(), changeSequencer(), ossimGdalWriter::checkColorLut(), ossimTiffWriter::checkColorLut(), connectInputEvent(), disconnectInputEvent(), execute(), getSequencer(), ossimWriter::getTiffSampleFormat(), initialize(), ossimGdalWriter::isInputDataIndexed(), ossimWriter::needsMinMax(), ossimTiffWriter::openTiff(), ossimKmlSuperOverlayWriter::propagateViewChange(), ossimGpkgWriter::reInitializeCombiners(), ossimGpkgWriter::reInitializeCutters(), setAreaOfInterest(), setTileSize(), ossimPdfWriter::setupInputChain(), ossimGpkgWriter::setView(), while(), ossimArcInfoGridWriter::writeBinaryAigBounds(), ossimArcInfoGridWriter::writeBinaryAigHeader(), ossimArcInfoGridWriter::writeBinaryAigStats(), ossimNitf20Writer::writeBlockBandSeparate(), ossimNitfWriter::writeBlockBandSeparate(), ossimNitf20Writer::writeBlockBandSequential(), ossimNitfWriter::writeBlockBandSequential(), ossimGdalWriter::writeBlockFile(), ossimGpkgWriter::writeEntry(), writeEnviHeaderFile(), writeErsHeaderFile(), writeExternalGeometryFile(), writeFgdcFile(), ossimArcInfoGridWriter::writeFile(), ossimNitf20Writer::writeFile(), ossimGeneralRasterWriter::writeFile(), ossimJpegWriter::writeFile(), ossimKmlSuperOverlayWriter::writeFile(), ossimKakaduJp2Writer::writeFile(), ossimKakaduNitfWriter::writeFile(), ossimNitfWriter::writeFile(), ossimWriter::writeFile(), ossimPngWriter::writeFile(), ossimNitfWriterBase::writeGeometry(), ossimKakaduJp2Writer::writeGeotiffBox(), ossimKakaduJp2Writer::writeGmlBox(), ossimWriter::writeMinMaxTiffTags(), ossimGdalWriter::writeProjectionInfo(), writeReadmeFile(), ossimPngWriter::writeSignificantBits(), ossimWriter::writeSMinSMaxTiffTags(), ossimGeneralRasterWriter::writeStream(), ossimWriter::writeStream(), ossimPngWriter::writeStream(), ossimWriter::writeTiffTags(), ossimTiffWriter::writeTiffTags(), ossimGpkgWriter::writeTiles(), writeWorldFile(), and ~ossimImageFileWriter().
|
protected |
If not a geographic projection this allows the user to set the linear units of the output tag to be:
meters (default) us_survey_feet feet
This will be propagated to writers that can switch types and to the associated metadata writers.
Definition at line 491 of file ossimImageFileWriter.h.
Referenced by ossimTiffWriter::getUnitType(), loadState(), and writeWorldFile().
|
protected |
Definition at line 457 of file ossimImageFileWriter.h.
Referenced by ossimGdalWriter::getExtension(), ossimWriter::getExtension(), ossimGdalWriter::getGdalOptions(), ossimGdalWriter::getGdalPropertyNames(), ossimGeneralRasterWriter::getInterleaveString(), getOutputImageType(), getOutputImageTypeString(), getProperty(), ossimTiffWriter::isTiled(), ossimWriter::isTiled(), ossimJpegWriter::loadState(), ossimGeneralRasterWriter::loadState(), ossimWriter::loadState(), ossimGdalWriter::open(), ossimWriter::open(), ossimNitf20Writer::ossimNitf20Writer(), ossimNitfWriter::ossimNitfWriter(), setOutputImageType(), ossimGdalWriter::setProperty(), ossimGeneralRasterWriter::writeFile(), ossimGeneralRasterWriter::writeStream(), ossimWriter::writeStream(), and ossimTiffWriter::writeTiffTags().
|
protected |
Definition at line 462 of file ossimImageFileWriter.h.
Referenced by getOverviewCompressType(), and setOverviewCompressType().
|
protected |
Definition at line 463 of file ossimImageFileWriter.h.
Referenced by getOverviewJpegCompressQuality(), and setOverviewJpegCompressQuality().
|
protected |
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
Definition at line 494 of file ossimImageFileWriter.h.
Referenced by getPixelType(), getPixelTypeString(), loadState(), setPixelType(), writeEnviHeaderFile(), writeErsHeaderFile(), writeExternalGeometryFile(), writeFgdcFile(), writeReadmeFile(), and writeWorldFile().
|
protected |
Definition at line 455 of file ossimImageFileWriter.h.
Referenced by addListener(), removeListener(), writeOverviewFile(), and ~ossimImageFileWriter().
|
protected |
Definition at line 461 of file ossimImageFileWriter.h.
Referenced by getScaleToEightBitFlag(), loadState(), saveState(), setProperty(), and setScaleToEightBitFlag().
|
protected |
Definition at line 454 of file ossimImageFileWriter.h.
Referenced by connectInputEvent(), and disconnectInputEvent().
|
protected |
External meta data writer flags.
Not really part of an image writer, put here for convenience. If true the writer will do the connection work for you.
Definition at line 470 of file ossimImageFileWriter.h.
Referenced by getWriteEnviHeaderFlag(), loadState(), saveState(), setProperty(), setWriteEnviHeaderFlag(), and writeMetaDataFiles().
|
protected |
Definition at line 471 of file ossimImageFileWriter.h.
Referenced by getWriteErsHeaderFlag(), loadState(), saveState(), setProperty(), setWriteErsHeaderFlag(), and writeMetaDataFiles().
|
protected |
Definition at line 472 of file ossimImageFileWriter.h.
Referenced by getWriteExternalGeometryFlag(), loadState(), saveState(), setProperty(), setWriteExternalGeometryFlag(), and writeMetaDataFiles().
|
protected |
Definition at line 473 of file ossimImageFileWriter.h.
Referenced by getWriteFgdcFlag(), loadState(), saveState(), setProperty(), and setWriteFgdcFlag().
|
protected |
Definition at line 460 of file ossimImageFileWriter.h.
Referenced by getWriteHistogramFlag(), loadState(), saveState(), setProperty(), and setWriteHistogramFlag().
|
protected |
Definition at line 458 of file ossimImageFileWriter.h.
Referenced by getWriteImageFlag(), loadState(), saveState(), setProperty(), and setWriteImageFlag().
|
protected |
Definition at line 474 of file ossimImageFileWriter.h.
Referenced by getWriteJpegWorldFileFlag(), loadState(), saveState(), setProperty(), and setWriteJpegWorldFile().
|
protected |
Definition at line 459 of file ossimImageFileWriter.h.
Referenced by getWriteOverviewFlag(), loadState(), saveState(), setProperty(), and setWriteOverviewFlag().
|
protected |
Definition at line 475 of file ossimImageFileWriter.h.
Referenced by getWriteReadmeFlag(), loadState(), saveState(), setProperty(), and setWriteReadme().
|
protected |
Definition at line 476 of file ossimImageFileWriter.h.
Referenced by getWriteTiffWorldFileFlag(), loadState(), saveState(), setProperty(), and setWriteTiffWorldFile().
|
protected |
Definition at line 477 of file ossimImageFileWriter.h.
Referenced by getWriteWorldFileFlag(), loadState(), saveState(), setProperty(), and setWriteWorldFile().