OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
ossimWriter - Generic image writer. More...
#include <ossimWriter.h>
Public Member Functions | |
ossimWriter () | |
default constructor More... | |
virtual | ~ossimWriter () |
virtual destructor More... | |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getClassName () const |
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 void | getImageTypeList (std::vector< ossimString > &imageTypeList) const |
getImageTypeList method. More... | |
virtual bool | isOpen () const |
isOpen More... | |
virtual bool | open () |
open More... | |
virtual void | close () |
close Flushes and deletes stream if we own it. More... | |
bool | hasImageType (const ossimString &imageType) const |
bool hasImageType(const ossimString& imageType) const More... | |
virtual bool | writeStream () |
Method to write the image to a stream. More... | |
virtual bool | setOutputStream (std::ostream &str) |
Sets the output stream to write to. More... | |
virtual void | setTileSize (const ossimIpt &tileSize) |
Sets the output tile size for tiled formats. More... | |
virtual const ossimIpt & | getOutputTileSize () const |
Gets the tile size. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
Saves the state of the object. 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 void | setProperty (ossimRefPtr< ossimProperty > property) |
Will set the property whose name matches the argument "property->getName()". More... | |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
Pushes this's names onto the list of property names. More... | |
![]() | |
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 bool | getOutputHasInternalOverviews (void) const |
Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nitf_j2k. 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 | setOutputStream (ossimRefPtr< ossimOStream > stream) |
Sets the output stream to write to. 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 | 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 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 | open (const ossimString &outputName) |
virtual const ossimString & | getOutputName () |
![]() | |
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 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 | |
virtual bool | writeFile () |
Write out the file. More... | |
![]() | |
bool | writeWorldFile (const ossimFilename &file) |
Common world file writer method. More... | |
![]() | |
ossimSource (const ossimSource &rhs) | |
const ossimSource & | operator= (const ossimSource &rhs) |
![]() | |
ossimConnectableObject * | findObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor) |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimListenerManager (const ossimListenerManager &rhs) | |
Private Member Functions | |
bool | writeStreamTtbs () |
Writes a tiled tiff band separate to stream. More... | |
bool | writeTiffHdr () |
Writes tiff header to stream. More... | |
bool | writeTiffTags (const std::vector< ossim_uint64 > &tile_offsets, const std::vector< ossim_uint64 > &tile_byte_counts, const std::vector< ossim_float64 > &minBands, const std::vector< ossim_float64 > &maxBands) |
Writes tags to image file directory(IFD). More... | |
bool | writeMinMaxTiffTags (std::streamoff &arrayWritePos) |
Writes tags TIFFTAG_MINSAMPLEVALUE(280) and TIFFTAG_MAXSAMPLEVALUE(281). More... | |
bool | writeSMinSMaxTiffTags (const std::vector< ossim_float64 > &minBands, const std::vector< ossim_float64 > &maxBands, std::streamoff &arrayWritePos) |
Writes tags TIFFTAG_SMINSAMPLEVALUE(340) and TIFFTAG_SMAXSAMPLEVALUE(341). More... | |
template<class T > | |
void | writeTiffTag (ossim_uint16 tag, ossim_uint16 type, ossim_uint64 count, const T *value, std::streamoff &arrayWritePos) |
Writes tiff tag to image file directory(IFD). More... | |
bool | writeTiffTilesBandSeparate (std::vector< ossim_uint64 > &tile_offsets, std::vector< ossim_uint64 > &tile_byte_counts, std::vector< ossim_float64 > &minBands, std::vector< ossim_float64 > &maxBands) |
Writes image data to stream. More... | |
ossim_uint16 | getTiffSampleFormat () const |
Gets the tiff sample format based on scalar type. More... | |
bool | isTiled () const |
bool | getAlignTilesFlag () const |
ossim_int64 | getBlockSize () const |
bool | getFlushTilesFlag () const |
bool | getWriteBlanksFlag () const |
bool | needsMinMax () const |
Private Attributes | |
std::ostream * | m_str |
bool | m_ownsStreamFlag |
ossimRefPtr< ossimKeywordlist > | m_kwl |
Hold all options. More... | |
ossimIpt | m_outputTileSize |
ossimWriter - Generic image writer.
Please do NOT add any external library dependencies. drb - 26 May 2016
Definition at line 28 of file ossimWriter.h.
ossimWriter::ossimWriter | ( | ) |
default constructor
Definition at line 37 of file ossimWriter.cpp.
References ossimKeywordlist::addPair(), ossim::defaultTileSize(), m_kwl, and m_outputTileSize.
|
virtual |
virtual destructor
Definition at line 54 of file ossimWriter.cpp.
References close(), and m_kwl.
|
virtual |
close Flushes and deletes stream if we own it.
Implements ossimOutputSource.
Definition at line 62 of file ossimWriter.cpp.
References m_ownsStreamFlag, and m_str.
Referenced by open(), writeFile(), and ~ossimWriter().
|
private |
Definition at line 1219 of file ossimWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Definition at line 1230 of file ossimWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
virtual |
|
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 from ossimImageFileWriter.
Definition at line 92 of file ossimWriter.cpp.
References ossimImageFileWriter::theOutputImageType.
|
private |
Definition at line 1252 of file ossimWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
virtual |
getImageTypeList method.
Satisfies ossimImageFileWriter::getImageTypeList pure virtual.
Appends the writers image types to the "imageTypeList".
Current write type: ossim_ttbs - tiled tiff band separate, big tiff format.
imageTypeList | list to append to. |
Implements ossimImageFileWriter.
Definition at line 102 of file ossimWriter.cpp.
|
virtual |
Reimplemented from ossimObject.
Definition at line 82 of file ossimWriter.cpp.
|
virtual |
Gets the tile size.
Definition at line 1008 of file ossimWriter.cpp.
References m_outputTileSize.
|
virtual |
name | Name of property to return. |
Reimplemented from ossimImageFileWriter.
Definition at line 1113 of file ossimWriter.cpp.
References ossimString::string().
|
virtual |
Pushes this's names onto the list of property names.
propertyNames | array to add this's property names to. |
Reimplemented from ossimImageFileWriter.
Definition at line 1170 of file ossimWriter.cpp.
|
virtual |
Reimplemented from ossimObject.
Definition at line 77 of file ossimWriter.cpp.
|
private |
Gets the tiff sample format based on scalar type.
E.g SAMPLEFORMAT_UINT, SAMPLEFORMAT_INT or SAMPLEFORMAT_IEEEFP.
Definition at line 1180 of file ossimWriter.cpp.
References ossimImageSourceSequencer::getOutputScalarType(), ossim::OSAMPLEFORMAT_IEEEFP, ossim::OSAMPLEFORMAT_INT, ossim::OSAMPLEFORMAT_UINT, OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SINT16, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, and ossimImageFileWriter::theInputConnection.
Referenced by writeTiffTags().
|
private |
Definition at line 1263 of file ossimWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
virtual |
bool hasImageType(const ossimString& imageType) const
imageType | string representing image type. |
Reimplemented from ossimImageFileWriter.
Definition at line 139 of file ossimWriter.cpp.
Referenced by open().
|
virtual |
isOpen
Implements ossimOutputSource.
Definition at line 108 of file ossimWriter.cpp.
References m_str.
Referenced by writeFile(), and writeStream().
|
private |
Definition at line 1214 of file ossimWriter.cpp.
References ossimImageFileWriter::theOutputImageType.
Referenced by writeTiffTags().
|
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 ossimImageFileWriter.
Definition at line 1020 of file ossimWriter.cpp.
References ossimKeywordlist::findKey(), ossimImageFileWriter::loadState(), and ossimImageFileWriter::theOutputImageType.
|
private |
Definition at line 1274 of file ossimWriter.cpp.
References ossimImageSourceSequencer::getOutputScalarType(), OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SINT16, OSSIM_UINT32, and ossimImageFileWriter::theInputConnection.
|
virtual |
open
Implements ossimOutputSource.
Definition at line 113 of file ossimWriter.cpp.
References ossimString::c_str(), close(), hasImageType(), m_ownsStreamFlag, m_str, ossimString::size(), status, ossimImageFileWriter::theFilename, and ossimImageFileWriter::theOutputImageType.
Referenced by writeFile().
|
virtual |
Saves the state of the object.
Reimplemented from ossimImageFileWriter.
Definition at line 1013 of file ossimWriter.cpp.
References ossimKeywordlist::add(), ossimRefPtr< T >::get(), m_kwl, and ossimImageFileWriter::saveState().
|
virtual |
Sets the output stream to write to.
This sets the stream and sets m_ownsStreamFlag to false. So destructor will not delete the stream if this method is used.
stream | The stream to write to. |
Reimplemented from ossimImageFileWriter.
Definition at line 975 of file ossimWriter.cpp.
References m_ownsStreamFlag, and m_str.
|
virtual |
Will set the property whose name matches the argument "property->getName()".
property | Object containing property to set. |
Reimplemented from ossimImageFileWriter.
Definition at line 1068 of file ossimWriter.cpp.
References ossimRefPtr< T >::valid().
|
virtual |
Sets the output tile size for tiled formats.
tileSize | Must be a multiple of 16. |
Reimplemented from ossimImageFileWriter.
Definition at line 986 of file ossimWriter.cpp.
References ossimIpt::x, and ossimIpt::y.
|
protectedvirtual |
Write out the file.
Implements ossimImageFileWriter.
Definition at line 149 of file ossimWriter.cpp.
References close(), ossimErrorStatusInterface::getErrorStatus(), ossimImageSourceSequencer::isMaster(), isOpen(), open(), ossimErrorCodes::OSSIM_OK, status, ossimImageFileWriter::theInputConnection, ossimRefPtr< T >::valid(), and writeStream().
|
private |
Writes tags TIFFTAG_MINSAMPLEVALUE(280) and TIFFTAG_MAXSAMPLEVALUE(281).
Only written if scalar type is an unsigned byte or short.
Definition at line 632 of file ossimWriter.cpp.
References ossimImageSourceSequencer::getOutputScalarType(), OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, ossim::OTIFF_SHORT, ossim::OTIFFTAG_MAXSAMPLEVALUE, ossim::OTIFFTAG_MINSAMPLEVALUE, status, and ossimImageFileWriter::theInputConnection.
Referenced by writeTiffTags().
|
private |
Writes tags TIFFTAG_SMINSAMPLEVALUE(340) and TIFFTAG_SMAXSAMPLEVALUE(341).
Only written if scalar type is not an unsigned byte or short.
minBands | Array of min values from image write. |
maxBands | Array of max values from image write. |
Definition at line 693 of file ossimWriter.cpp.
References ossimImageSourceSequencer::getOutputScalarType(), OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SINT16, OSSIM_UINT32, ossim::OTIFF_FLOAT, ossim::OTIFFTAG_SMAXSAMPLEVALUE, ossim::OTIFFTAG_SMINSAMPLEVALUE, status, and ossimImageFileWriter::theInputConnection.
Referenced by writeTiffTags().
|
virtual |
Method to write the image to a stream.
Reimplemented from ossimImageFileWriter.
Definition at line 180 of file ossimWriter.cpp.
References ossimImageSourceSequencer::getTileHeight(), ossimImageSourceSequencer::getTileWidth(), isOpen(), m_outputTileSize, ossimImageSourceSequencer::setTileSize(), status, ossimImageFileWriter::theInputConnection, ossimImageFileWriter::theOutputImageType, ossimRefPtr< T >::valid(), writeStreamTtbs(), ossimIpt::x, and ossimIpt::y.
Referenced by writeFile().
|
private |
Writes a tiled tiff band separate to stream.
Definition at line 211 of file ossimWriter.cpp.
References status, writeTiffHdr(), writeTiffTags(), and writeTiffTilesBandSeparate().
Referenced by writeStream().
|
private |
Writes tiff header to stream.
Definition at line 239 of file ossimWriter.cpp.
References ossim::byteOrder(), m_str, and OSSIM_LITTLE_ENDIAN.
Referenced by writeStreamTtbs().
|
private |
Writes tiff tag to image file directory(IFD).
tag | |
type | |
count | |
value(s) | or offset to array. |
arrayWritePos | Position to write array to. This will be updated if array is written with new offset. |
Definition at line 734 of file ossimWriter.cpp.
References m_str.
|
private |
Writes tags to image file directory(IFD).
tile_offsets | |
tile_byte_counts | |
minBands | |
maxBands |
Definition at line 275 of file ossimWriter.cpp.
References ossimEllipsoid::a(), ossimEllipsoid::b(), ossim::COMPRESSION_NONE, ossimDatum::ellipsoid(), ossimDatum::epsgCode(), ossimRefPtr< T >::get(), ossim::getBitsPerPixel(), ossimMapProjection::getDatum(), ossimMapProjection::getDecimalDegreesPerPixel(), ossimEllipsoid::getEpsgCode(), ossimImageSource::getImageGeometry(), ossimMapProjection::getMetersPerPixel(), ossimImageSource::getNumberOfOutputBands(), ossimImageSourceSequencer::getOutputScalarType(), ossimMapProjection::getPcsCode(), ossimImageGeometry::getProjection(), getTiffSampleFormat(), ossimIrect::height(), ossimMapProjection::isGeographic(), isTiled(), ossimGpt::lat, ossimMapProjection::lineSampleToEastingNorthing(), ossimMapProjection::lineSampleToWorld(), ossimGpt::lon, m_outputTileSize, m_str, ossim::OANGULAR_DEGREE, ossim::OGEO_DOUBLE_PARAMS_TAG, ossim::OGEO_KEY_DIRECTORY_TAG, ossim::OGEOG_ANGULAR_UNITS_GEO_KEY, ossim::OGEOG_ELLIPSOID_GEO_KEY, ossim::OGEOG_GEODETIC_DATUM_GEO_KEY, ossim::OGEOG_SEMI_MAJOR_AXIS, ossim::OGEOG_SEMI_MINOR_AXIS, ossim::OGEOGRAPHIC_TYPE_GEO_KEY, ossim::OGT_MODEL_TYPE_GEO_KEY, ossim::OGT_RASTER_TYPE_GEO_KEY, ossim::OLINEAR_METER, ossim::OMODEL_PIXEL_SCALE_TAG, ossim::OMODEL_TIE_POINT_TAG, ossim::OMODEL_TYPE_GEOGRAPHIC, ossim::OMODEL_TYPE_PROJECTED, ossim::OPHOTO_MINISBLACK, ossim::OPHOTO_RGB, ossim::OPIXEL_IS_POINT, ossim::OPROJ_LINEAR_UNITS_GEO_KEY, ossim::OPROJECTED_CS_TYPE_GEO_KEY, ossim::OPROJECTION_GEO_KEY, OSSIM_DEFAULT_MAX_PIX_UINT16, ossim::OTIFF_DOUBLE, ossim::OTIFF_LONG, ossim::OTIFF_LONG8, ossim::OTIFF_SHORT, ossim::OTIFFTAG_BITSPERSAMPLE, ossim::OTIFFTAG_COMPRESSION, ossim::OTIFFTAG_IMAGELENGTH, ossim::OTIFFTAG_IMAGEWIDTH, ossim::OTIFFTAG_PHOTOMETRIC, ossim::OTIFFTAG_PLANARCONFIG, ossim::OTIFFTAG_PLANARCONFIG_SEPARATE, ossim::OTIFFTAG_SAMPLEFORMAT, ossim::OTIFFTAG_SAMPLESPERPIXEL, ossim::OTIFFTAG_TILEBYTECOUNTS, ossim::OTIFFTAG_TILELENGTH, ossim::OTIFFTAG_TILEOFFSETS, ossim::OTIFFTAG_TILEWIDTH, status, ossimImageWriter::theAreaOfInterest, ossimImageFileWriter::theInputConnection, true, ossimIrect::ul(), ossimRefPtr< T >::valid(), ossimIrect::width(), writeMinMaxTiffTags(), writeSMinSMaxTiffTags(), ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
Referenced by writeStreamTtbs().
|
private |
Writes image data to stream.
Data is in a band separate tile layout(PLANARCONFIG_SEPARATE), i.e. all the red tiles, all the green tiles, all the blue tiles.
tile_offsets | Initialized by this with offset for each tile. |
tile_byte_counts | Initialized by this with the byte count of each tile. |
minBands | Initialized by this with the min values for each band. |
maxBands | Initialized by this with the max values for each band. |
Definition at line 776 of file ossimWriter.cpp.
Referenced by writeStreamTtbs().
|
private |
Hold all options.
Definition at line 293 of file ossimWriter.h.
Referenced by getAlignTilesFlag(), getBlockSize(), getFlushTilesFlag(), getWriteBlanksFlag(), ossimWriter(), saveState(), and ~ossimWriter().
|
private |
Definition at line 295 of file ossimWriter.h.
Referenced by getOutputTileSize(), ossimWriter(), writeStream(), and writeTiffTags().
|
private |
Definition at line 290 of file ossimWriter.h.
Referenced by close(), open(), and setOutputStream().
|
private |
Definition at line 289 of file ossimWriter.h.
Referenced by close(), isOpen(), open(), setOutputStream(), writeTiffHdr(), writeTiffTag(), and writeTiffTags().