OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimPngWriter.h>
Public Member Functions | |
ossimPngWriter () | |
virtual | ~ossimPngWriter () |
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 |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const More... | |
virtual bool | isOpen () const |
virtual bool | open () |
virtual void | close () |
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... | |
bool | hasImageType (const ossimString &imageType) const |
bool hasImageType(const ossimString& imageType) const More... | |
void | setLut (const ossimNBandLutDataObject &lut) |
ossimString | getCompressionLevel () const |
Get the png compression level as a string. More... | |
bool | setCompressionLevel (const ossimString &level) |
Set the png compression level from a string. More... | |
bool | getAlphaChannelFlag (void) const |
Retrieve the writer's setting for whether or not to add an alpha channel to the output png image. More... | |
void | setAlphaChannelFlag (bool flag) |
Set the writer to add an alpha channel to the output png image. More... | |
virtual bool | writeStream () |
Method to write the image to a stream. More... | |
virtual bool | setOutputStream (std::ostream &stream) |
Sets the output stream to write to. 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 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 | 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 |
Private Member Functions | |
virtual bool | writeFile () |
Writes the file to disk or a stream. More... | |
bool | doSwap (ossimScalarType outputScalar) const |
bool | isLutEnabled () const |
void | writeOptionalChunks (png_structp pp, png_infop info) |
writes optionial chunks. More... | |
void | writeTransparentColorChunk (png_structp pp, png_infop info) |
Write transparent color chunk (tRNS) Location: Multiple: More... | |
void | writeGammaChunk (png_structp pp, png_infop info) |
Write gamm chunk (gAMMA) Location: Before PLTE, before first IDAT. More... | |
void | writeBackgroundColorChunk (png_structp pp, png_infop info) |
Write background color chunk (bKGD) Location: After PLTE, before first IDAT. More... | |
void | writeTimeStampChunk (png_structp pp, png_infop info) |
Write time stamp chunk (tIME). More... | |
void | writeLatinTextChunk (png_structp pp, png_infop info) |
Write any text (tEXt, zTXt). More... | |
void | writeInternationalTextChunk (png_structp pp, png_infop info) |
Write any text (iTXt). More... | |
void | writeHistogram (png_structp pp, png_infop info) |
Write histogram (hIST) Location: after PLTE, before first IDAT Multiple: no. More... | |
void | writeSuggestedPalette (png_structp pp, png_infop info) |
Write suggested palette (sPLT) Location: before first IDAT Multiple: yes. More... | |
void | writeSignificantBits (png_structp pp, png_infop info) |
Write significant bits (sBIT) Location: before PLTE and first IDAT Multiple: no. More... | |
void | writePhysicalPixelDimensions (png_structp pp, png_infop info) |
Write physical pixel dimensions (pHYs) Location: before first IDAT Multiple: no. More... | |
void | writePhysicalScale (png_structp pp, png_infop info) |
Write physical scale (sCAL) Location: before first IDAT Multiple: no. More... | |
void | writeImageOffset (png_structp pp, png_infop info) |
Write image offset (oFFs) Location: before first IDAT Multiple: no. More... | |
void | writePixelCalibration (png_structp pp, png_infop info) |
Write pixel calibration (pCAL) Location: after PLTE, before first IDAT Multiple: no. More... | |
void | writeFractalParameters (png_structp pp, png_infop info) |
Write fractal parameters (fRAc) Location: anywhere Multiple: yes. More... | |
ossim_int32 | getColorType (ossim_int32 bands) const |
Get the png color type. More... | |
ossim_int32 | getBitDepth (ossimScalarType outputScalar) const |
Static Private Member Functions | |
static void | pngWriteData (png_structp png_ptr, png_bytep data, png_size_t length) |
Callback method for writing to stream. More... | |
static void | pngFlush (png_structp png_ptr) |
Callback method for a flush. More... | |
Private Attributes | |
std::ostream * | theOutputStream |
bool | theOwnsStreamFlag |
ossim_int32 | theCompressionLevel |
Compression level from zlib.h: Z_NO_COMPRESSION 0 Z_BEST_SPEED 1 Z_BEST_COMPRESSION 9 Z_DEFAULT_COMPRESSION (-1) More... | |
ossim_int32 | theInterlaceSupport |
Interlace support: PNG_INTERLACE_ADAM7 PNG_INTERLACE_NONE. More... | |
ossim_int32 | theCompressionStratagy |
Z_FILTERED 1 Z_HUFFMAN_ONLY 2 Z_RLE 3 Z_FIXED 4 Z_DEFAULT_STRATEGY 0. More... | |
ossim_int32 | thePngFilter |
PNG_NO_FILTERS 0x00 PNG_FILTER_NONE 0x08 PNG_FILTER_SUB 0x10 PNG_FILTER_UP 0x20 PNG_FILTER_AVG 0x40 PNG_FILTER_PAETH 0x80. More... | |
bool | theGammaFlag |
For gamma support. More... | |
ossim_float64 | theGamma |
bool | theTimeFlag |
Time support, either on or off. More... | |
bool | theAlphaChannelFlag |
For alpha channel support. More... | |
bool | theBackgroundFlag |
For background support. More... | |
ossim_uint16 | theBackgroundRed |
ossim_uint16 | theBackgroundGreen |
ossim_uint16 | theBackgroundBlue |
ossim_uint16 | theBackgroundGray |
bool | theTransparentFlag |
For transparent color support. More... | |
ossim_uint16 | theTransparentRed |
ossim_uint16 | theTransparentGreen |
ossim_uint16 | theTransparentBlue |
ossim_uint16 | theTransparentGray |
Definition at line 23 of file ossimPngWriter.h.
ossimPngWriter::ossimPngWriter | ( | ) |
Definition at line 52 of file ossimPngWriter.cpp.
|
virtual |
|
virtual |
Generic interface to allow one to close a consumer. For displays this might minimize the window and free up internal pointers for file writers it will make sure the file stream is closed and flushed.
Implements ossimOutputSource.
Definition at line 547 of file ossimPngWriter.cpp.
References theOutputStream, and theOwnsStreamFlag.
Referenced by open(), and ~ossimPngWriter().
|
private |
Definition at line 633 of file ossimPngWriter.cpp.
References ossim::byteOrder(), OSSIM_LITTLE_ENDIAN, and OSSIM_UINT8.
bool ossimPngWriter::getAlphaChannelFlag | ( | void | ) | const |
Retrieve the writer's setting for whether or not to add an alpha channel to the output png image.
Definition at line 995 of file ossimPngWriter.cpp.
References theAlphaChannelFlag.
|
private |
Definition at line 908 of file ossimPngWriter.cpp.
References OSSIM_SINT16, OSSIM_UINT16, OSSIM_UINT8, and OSSIM_USHORT11.
|
virtual |
Reimplemented from ossimObject.
Definition at line 110 of file ossimPngWriter.cpp.
|
private |
Get the png color type.
Definition at line 879 of file ossimPngWriter.cpp.
References theAlphaChannelFlag.
ossimString ossimPngWriter::getCompressionLevel | ( | ) | const |
Get the png compression level as a string.
Definition at line 930 of file ossimPngWriter.cpp.
References theCompressionLevel.
|
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 567 of file ossimPngWriter.cpp.
|
virtual |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
Appends this writer image types to list "imageTypeList".
This writer only has one type "png".
imageTypeList | stl::vector<ossimString> list to append to. |
Implements ossimImageFileWriter.
Definition at line 562 of file ossimPngWriter.cpp.
Referenced by ossimPngWriterFactory::getImageTypeList().
|
virtual |
Reimplemented from ossimObject.
Definition at line 105 of file ossimPngWriter.cpp.
|
virtual |
name | Name of property to return. |
Reimplemented from ossimImageFileWriter.
Definition at line 604 of file ossimPngWriter.cpp.
|
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 626 of file ossimPngWriter.cpp.
|
virtual |
Reimplemented from ossimObject.
Definition at line 100 of file ossimPngWriter.cpp.
|
virtual |
bool hasImageType(const ossimString& imageType) const
imageType | string representing image type. |
Reimplemented from ossimImageFileWriter.
Definition at line 572 of file ossimPngWriter.cpp.
|
private |
Definition at line 646 of file ossimPngWriter.cpp.
|
virtual |
Implements ossimOutputSource.
Definition at line 513 of file ossimPngWriter.cpp.
References theOutputStream.
Referenced by writeFile().
|
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 497 of file ossimPngWriter.cpp.
References ossimKeywordlist::find().
|
virtual |
Allows a generic interface to open a consumer for writing. If you are a display writer then you would probably show the window or init the device context for writing.
Implements ossimOutputSource.
Definition at line 522 of file ossimPngWriter.cpp.
References ossimString::c_str(), close(), ossimString::empty(), ossimImageFileWriter::theFilename, theOutputStream, and theOwnsStreamFlag.
Referenced by writeFile().
|
staticprivate |
Callback method for a flush.
This is a required method for png_set_write_fn.
Definition at line 480 of file ossimPngWriter.cpp.
|
staticprivate |
Callback method for writing to stream.
This allows us to choose the stream; hence, writing to a file or memory. This will be passed to libpng's png_set_write_fn.
Definition at line 471 of file ossimPngWriter.cpp.
|
virtual |
saves the state of the object.
Reimplemented from ossimImageFileWriter.
Definition at line 486 of file ossimPngWriter.cpp.
References ossimKeywordlist::add().
void ossimPngWriter::setAlphaChannelFlag | ( | bool | flag | ) |
Set the writer to add an alpha channel to the output png image.
flag | true to create an alpha channel. |
Definition at line 1000 of file ossimPngWriter.cpp.
References theAlphaChannelFlag.
bool ossimPngWriter::setCompressionLevel | ( | const ossimString & | level | ) |
Set the png compression level from a string.
level | Should be one of: z_no_compression z_best_speed z_best_compression z_default_compression |
Definition at line 954 of file ossimPngWriter.cpp.
References ossimString::downcase(), status, and theCompressionLevel.
void ossimPngWriter::setLut | ( | const ossimNBandLutDataObject & | lut | ) |
|
virtual |
Sets the output stream to write to.
The stream will not be closed/deleted by this object.
output | The stream to write to. |
Reimplemented from ossimImageFileWriter.
Definition at line 1005 of file ossimPngWriter.cpp.
References theOutputStream, and theOwnsStreamFlag.
|
virtual |
Will set the property whose name matches the argument "property->getName()".
property | Object containing property to set. |
Reimplemented from ossimImageFileWriter.
Definition at line 582 of file ossimPngWriter.cpp.
References ossimProperty::getName().
|
private |
Write background color chunk (bKGD) Location: After PLTE, before first IDAT.
Multiple: no
Definition at line 778 of file ossimPngWriter.cpp.
References theBackgroundBlue, theBackgroundFlag, theBackgroundGray, theBackgroundGreen, and theBackgroundRed.
Referenced by writeOptionalChunks().
|
privatevirtual |
Writes the file to disk or a stream.
Implements ossimImageFileWriter.
Definition at line 115 of file ossimPngWriter.cpp.
References ossimErrorStatusInterface::getErrorStatus(), ossimImageSourceSequencer::isMaster(), isOpen(), open(), ossimErrorCodes::OSSIM_OK, ossimImageFileWriter::theInputConnection, and writeStream().
|
private |
Write fractal parameters (fRAc) Location: anywhere Multiple: yes.
Definition at line 875 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write gamm chunk (gAMMA) Location: Before PLTE, before first IDAT.
Multiple: no
Definition at line 791 of file ossimPngWriter.cpp.
References theGamma, and theGammaFlag.
Referenced by writeOptionalChunks().
|
private |
Write histogram (hIST) Location: after PLTE, before first IDAT Multiple: no.
Definition at line 820 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write image offset (oFFs) Location: before first IDAT Multiple: no.
Definition at line 867 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write any text (iTXt).
Location: anywhere Multiple: yes
Definition at line 816 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write any text (tEXt, zTXt).
Location: anywhere Multiple: yes
Definition at line 812 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
writes optionial chunks.
Definition at line 652 of file ossimPngWriter.cpp.
References writeBackgroundColorChunk(), writeFractalParameters(), writeGammaChunk(), writeHistogram(), writeImageOffset(), writeInternationalTextChunk(), writeLatinTextChunk(), writePhysicalPixelDimensions(), writePhysicalScale(), writePixelCalibration(), writeSignificantBits(), writeSuggestedPalette(), writeTimeStampChunk(), and writeTransparentColorChunk().
|
private |
Write physical pixel dimensions (pHYs) Location: before first IDAT Multiple: no.
Definition at line 859 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write physical scale (sCAL) Location: before first IDAT Multiple: no.
Definition at line 863 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write pixel calibration (pCAL) Location: after PLTE, before first IDAT Multiple: no.
Definition at line 871 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write significant bits (sBIT) Location: before PLTE and first IDAT Multiple: no.
Definition at line 824 of file ossimPngWriter.cpp.
References ossimImageSourceSequencer::getMaxPixelValue(), ossimImageSourceSequencer::getOutputScalarType(), max, OSSIM_UINT8, and ossimImageFileWriter::theInputConnection.
Referenced by writeOptionalChunks().
|
virtual |
Method to write the image to a stream.
Reimplemented from ossimImageFileWriter.
Definition at line 137 of file ossimPngWriter.cpp.
References ossimImageFileWriter::theInputConnection.
Referenced by writeFile().
|
private |
Write suggested palette (sPLT) Location: before first IDAT Multiple: yes.
Definition at line 855 of file ossimPngWriter.cpp.
Referenced by writeOptionalChunks().
|
private |
Write time stamp chunk (tIME).
Location: anywhere Multiple: no
Definition at line 799 of file ossimPngWriter.cpp.
References theTimeFlag.
Referenced by writeOptionalChunks().
|
private |
Write transparent color chunk (tRNS) Location:
Multiple:
Definition at line 765 of file ossimPngWriter.cpp.
References theTransparentBlue, theTransparentFlag, theTransparentGray, theTransparentGreen, and theTransparentRed.
Referenced by writeOptionalChunks().
|
private |
For alpha channel support.
Definition at line 375 of file ossimPngWriter.h.
Referenced by getAlphaChannelFlag(), getColorType(), and setAlphaChannelFlag().
|
private |
Definition at line 381 of file ossimPngWriter.h.
Referenced by writeBackgroundColorChunk().
|
private |
For background support.
Definition at line 378 of file ossimPngWriter.h.
Referenced by writeBackgroundColorChunk().
|
private |
Definition at line 382 of file ossimPngWriter.h.
Referenced by writeBackgroundColorChunk().
|
private |
Definition at line 380 of file ossimPngWriter.h.
Referenced by writeBackgroundColorChunk().
|
private |
Definition at line 379 of file ossimPngWriter.h.
Referenced by writeBackgroundColorChunk().
|
private |
Compression level from zlib.h: Z_NO_COMPRESSION 0 Z_BEST_SPEED 1 Z_BEST_COMPRESSION 9 Z_DEFAULT_COMPRESSION (-1)
Defaulted to Z_BEST_COMPRESSION
Definition at line 323 of file ossimPngWriter.h.
Referenced by getCompressionLevel(), and setCompressionLevel().
|
private |
Z_FILTERED 1 Z_HUFFMAN_ONLY 2 Z_RLE 3 Z_FIXED 4 Z_DEFAULT_STRATEGY 0.
Default to Z_FILTERED if not palette image, Z_DEFAULT_STRATEGY if palette.
Definition at line 344 of file ossimPngWriter.h.
|
private |
Definition at line 369 of file ossimPngWriter.h.
Referenced by writeGammaChunk().
|
private |
For gamma support.
gamma multiplied by 100,000 and rounded to the nearest integer. So if gamma is 1/2.2 (or 0.45454545...), the value in the gAMA chunk is 45,455.
There can be only one gAMA chunk, and it must appear before any IDATs and also before the PLTE chunk, if one is present.
Definition at line 368 of file ossimPngWriter.h.
Referenced by writeGammaChunk().
|
private |
Interlace support: PNG_INTERLACE_ADAM7 PNG_INTERLACE_NONE.
Defaulted to PNG_INTERLACE_NONE
Definition at line 332 of file ossimPngWriter.h.
|
private |
Definition at line 311 of file ossimPngWriter.h.
Referenced by close(), isOpen(), open(), and setOutputStream().
|
private |
Definition at line 312 of file ossimPngWriter.h.
Referenced by close(), open(), and setOutputStream().
|
private |
PNG_NO_FILTERS 0x00 PNG_FILTER_NONE 0x08 PNG_FILTER_SUB 0x10 PNG_FILTER_UP 0x20 PNG_FILTER_AVG 0x40 PNG_FILTER_PAETH 0x80.
Defaulted to PNG_FILTER_NONE if palette; If not palette this is left up to zlib to decide unless the user overrides it.
Definition at line 357 of file ossimPngWriter.h.
|
private |
Time support, either on or off.
Default = on.
Definition at line 372 of file ossimPngWriter.h.
Referenced by writeTimeStampChunk().
|
private |
Definition at line 388 of file ossimPngWriter.h.
Referenced by writeTransparentColorChunk().
|
private |
For transparent color support.
Definition at line 385 of file ossimPngWriter.h.
Referenced by writeTransparentColorChunk().
|
private |
Definition at line 389 of file ossimPngWriter.h.
Referenced by writeTransparentColorChunk().
|
private |
Definition at line 387 of file ossimPngWriter.h.
Referenced by writeTransparentColorChunk().
|
private |
Definition at line 386 of file ossimPngWriter.h.
Referenced by writeTransparentColorChunk().