OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ossimImageFileWriter Class Referenceabstract

Pure virtual base class for image file writers. More...

#include <ossimImageFileWriter.h>

Inheritance diagram for ossimImageFileWriter:
ossimImageWriter ossimProcessInterface ossimConnectableObjectListener ossimOutputSource ossimListener ossimSource ossimConnectableObject ossimErrorStatusInterface ossimObject ossimListenerManager ossimPropertyInterface ossimReferenced ossimArcInfoGridWriter ossimGdalWriter ossimGeneralRasterWriter ossimGpkgWriter ossimJpegWriter ossimKakaduJp2Writer ossimKmlSuperOverlayWriter ossimNitfWriterBase ossimOpjJp2Writer ossimPdfWriter ossimPngWriter ossimTiffWriter ossimWriter

Public Member Functions

 ossimImageFileWriter (const ossimFilename &filename=ossimFilename(), ossimImageSource *inputSource=0, ossimObject *owner=0)
 The writer will own the sequencer. More...
 
virtual ~ossimImageFileWriter ()
 
virtual ossimObjectgetObject ()
 
virtual const ossimObjectgetObject () 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 ossimImageSourceSequencergetSequencer ()
 
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< ossimOStreamgetOutputStream () 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 ossimFilenamegetFilename () 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< ossimPropertygetProperty (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
 
- Public Member Functions inherited from ossimImageWriter
 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
 
- Public Member Functions inherited from ossimOutputSource
 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 ossimStringgetOutputName ()
 
virtual void close ()=0
 
- Public Member Functions inherited from ossimSource
 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...
 
- Public Member Functions inherited from ossimConnectableObject
 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 ossimIdgetId () const
 Will allow us to get this object's id. More...
 
const ossimObjectgetOwner () 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< ossimConnectableObjectdisconnectMyInput (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< ossimConnectableObjectdisconnectMyOutput (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...
 
ossimConnectableObjectgetInput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetInput (ossim_uint32 index=0) const
 returns the object at the specified index. More...
 
ossimConnectableObjectgetOutput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetOutput (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 ConnectableObjectListgetInputList () const
 
const ConnectableObjectListgetOutputList () const
 
ConnectableObjectListgetInputList ()
 
ConnectableObjectListgetOutputList ()
 
 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...
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () 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
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (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
 
- Public Member Functions inherited from ossimListenerManager
 ossimListenerManager ()
 
virtual ~ossimListenerManager ()
 
virtual void fireEvent (ossimEvent &event)
 
virtual bool findListener (ossimListener *listener)
 
- Public Member Functions inherited from ossimPropertyInterface
 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)
 
- Public Member Functions inherited from ossimErrorStatusInterface
 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
 
- Public Member Functions inherited from ossimProcessInterface
 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 ossimListenerManagergetManager ()
 
void enableEvents ()
 
void disableEvents ()
 
void setCurrentMessage (const ossimString &message)
 
virtual std::ostream & print (std::ostream &out) const
 
- Public Member Functions inherited from ossimConnectableObjectListener
 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 &)
 
- Public Member Functions inherited from ossimListener
 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...
 
- Protected Member Functions inherited from ossimSource
 ossimSource (const ossimSource &rhs)
 
const ossimSourceoperator= (const ossimSource &rhs)
 
- Protected Member Functions inherited from ossimConnectableObject
ossimConnectableObjectfindObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor)
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 
- Protected Member Functions inherited from ossimListenerManager
 ossimListenerManager (const ossimListenerManager &rhs)
 

Protected Attributes

ossimRefPtr< ossimImageSourceSequencertheInputConnection
 
ossimRefPtr< ossimViewControllertheViewController
 
ossimListenertheProgressListener
 
ossimFilename theFilename
 
ossimString theOutputImageType
 
bool theWriteImageFlag
 
bool theWriteOverviewFlag
 
bool theWriteHistogramFlag
 
bool theScaleToEightBitFlag
 
ossim_uint16 theOverviewCompressType
 
ossim_int32 theOverviewJpegCompressQuality
 
bool theWriteEnviHeaderFlag
 External meta data writer flags. More...
 
bool theWriteErsHeaderFlag
 
bool theWriteExternalGeometryFlag
 
bool theWriteFgdcFlag
 
bool theWriteJpegWorldFileFlag
 
bool theWriteReadmeFlag
 
bool theWriteTiffWorldFileFlag
 
bool theWriteWorldFileFlag
 
bool theAutoCreateDirectoryFlag
 
ossimUnitType theLinearUnits
 If not a geographic projection this allows the user to set the linear units of the output tag to be: More...
 
ossimPixelType thePixelType
 OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1. More...
 
- Protected Attributes inherited from ossimImageWriter
ossimIrect theAreaOfInterest
 
- Protected Attributes inherited from ossimOutputSource
ossimString theOutputName
 
- Protected Attributes inherited from ossimSource
bool theEnableFlag
 
bool theInitializedFlag
 
- Protected Attributes inherited from ossimConnectableObject
ossimId theId
 
ossimString theDescription
 
ossimObjecttheOwner
 
bool theInputListIsFixedFlag
 Indicates whether the theInputObjectList is fixed. More...
 
bool theOutputListIsFixedFlag
 Indicates whether the theOutputObjectList is fixed. More...
 
ConnectableObjectList theInputObjectList
 Holds a list of input objects. More...
 
ConnectableObjectList theOutputObjectList
 Holds a list of output objects. More...
 
- Protected Attributes inherited from ossimListenerManager
std::list< ossimListener * > theListenerList
 
bool theEnabledFlag
 
std::list< ossimListener * > theDelayedAdd
 
std::list< ossimListener * > theDelayedRemove
 
bool theFireEventFlag
 
- Protected Attributes inherited from ossimErrorStatusInterface
ossimErrorCode theErrorStatus
 
- Protected Attributes inherited from ossimProcessInterface
double thePercentComplete
 
ossimProcessStatus theProcessStatus
 
ossimString theMessage
 
bool theEventFlag
 
- Protected Attributes inherited from ossimListener
bool theListenerEnableFlag
 

Additional Inherited Members

- Public Types inherited from ossimConnectableObject
enum  ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 }
 
typedef std::vector< ossimRefPtr< ossimConnectableObject > > ConnectableObjectList
 
- Public Types inherited from ossimProcessInterface
enum  ossimProcessStatus {
  PROCESS_STATUS_UNKNOWN = 0, PROCESS_STATUS_EXECUTING = 1, PROCESS_STATUS_ABORTED = 2, PROCESS_STATUS_ABORT_REQUEST = 3,
  PROCESS_STATUS_NOT_EXECUTING = 4
}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ossimImageFileWriter()

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.

68  : ossimImageWriter(owner,
69  1,
70  0,
71  true,
72  false),
75  theViewController(NULL),
76  theProgressListener(NULL),
77  theFilename(file),
79  theWriteImageFlag(true),
80  theWriteOverviewFlag(false),
81  theWriteHistogramFlag(false),
86  theWriteErsHeaderFlag(false),
88  theWriteFgdcFlag(false),
90  theWriteReadmeFlag(false),
92  theWriteWorldFileFlag(false),
96 {
97  if (traceDebug())
98  {
100  << "ossimImageFileWriter::ossimImageFileWriter entered..."
101  << std::endl;
102 #ifdef OSSIM_ID_ENABLED
104  << "OSSIM_ID: " << OSSIM_ID << std::endl;
105 #endif
106  }
107 
109 
110  // now map the sequencer to the same input
111  connectMyInputTo(0, inputSource);
112  initialize();
113 
114  // make sure we listen to our input changes so we can change
115  // it for the sequencer as well.
117 
118  theInputConnection->connectMyInputTo(0, inputSource, false);
120 }
virtual bool addListener(ossimListener *listener)
ossimRefPtr< ossimViewController > theViewController
ossimUnitType theLinearUnits
If not a geographic projection this allows the user to set the linear units of the output tag to be: ...
ossimIrect theAreaOfInterest
bool theWriteEnviHeaderFlag
External meta data writer flags.
ossimImageWriter(ossimObject *owner=NULL)
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
ossim_int32 theOverviewJpegCompressQuality
ossim_uint16 theOverviewCompressType
virtual void initialize()
Initialize method.
void makeNan()
Definition: ossimIrect.h:329
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossimListener * theProgressListener

◆ ~ossimImageFileWriter()

ossimImageFileWriter::~ossimImageFileWriter ( )
virtual

Definition at line 122 of file ossimImageFileWriter.cpp.

References removeListener(), theInputConnection, and theProgressListener.

123 {
124  theInputConnection = 0;
125  theProgressListener = NULL;
127 }
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual bool removeListener(ossimListener *listener)
Overrides base "removeListener".
ossimListener * theProgressListener

Member Function Documentation

◆ addListener()

bool ossimImageFileWriter::addListener ( ossimListener listener)
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.

Parameters
listenerThe listener to add.
Returns
Currently always returns true.
Note
Callers still should call "removeListener" after the writing process is complete.
If called more than once, theProgressListener will contain the latest listener.

Reimplemented from ossimListenerManager.

Definition at line 1523 of file ossimImageFileWriter.cpp.

References ossimListenerManager::addListener(), and theProgressListener.

Referenced by ossimChipProcTool::execute(), main(), and ossimIgen::writeToFile().

1524 {
1525  theProgressListener = listener;
1526  return ossimImageWriter::addListener(listener);
1527 }
virtual bool addListener(ossimListener *listener)
ossimListener * theProgressListener

◆ canConnectMyInputTo()

bool ossimImageFileWriter::canConnectMyInputTo ( ossim_int32  myInputIndex,
const ossimConnectableObject object 
) const
virtual

required to be overriden by derived classes

Implements ossimConnectableObject.

Definition at line 1227 of file ossimImageFileWriter.cpp.

References PTR_CAST.

1229 {
1230  return (object&&
1231  ( (PTR_CAST(ossimImageSource, object)&&inputIndex == 0)||
1232  (PTR_CAST(ossimViewController, object)&&inputIndex == 1)) );
1233 }
#define PTR_CAST(T, p)
Definition: ossimRtti.h:321

◆ changeSequencer()

void ossimImageFileWriter::changeSequencer ( ossimImageSourceSequencer sequencer)
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.

Parameters
sequencerPointer to a sequencer.

Definition at line 160 of file ossimImageFileWriter.cpp.

References ossimConnectableObject::connectMyInputTo(), ossimConnectableObject::getInput(), and theInputConnection.

Referenced by ossimIgen::outputProduct().

161 {
162  if( sequencer )
163  {
164  theInputConnection = sequencer;
166  }
167 }
ossimConnectableObject * getInput(ossim_uint32 index=0)
returns the object at the specified index.
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.

◆ connectInputEvent()

void ossimImageFileWriter::connectInputEvent ( ossimConnectionEvent event)
virtual

Reimplemented from ossimConnectableObjectListener.

Definition at line 824 of file ossimImageFileWriter.cpp.

References ossimConnectableObject::connectMyInputTo(), ossimConnectableObject::getInput(), initialize(), PTR_CAST, theInputConnection, and theViewController.

825 {
827  getInput(0),
828  false);
830  initialize();
831 }
ossimRefPtr< ossimViewController > theViewController
ossimConnectableObject * getInput(ossim_uint32 index=0)
returns the object at the specified index.
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
#define PTR_CAST(T, p)
Definition: ossimRtti.h:321
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
virtual void initialize()
Initialize method.
int ossim_int32

◆ disconnectInputEvent()

void ossimImageFileWriter::disconnectInputEvent ( ossimConnectionEvent event)
virtual

Reimplemented from ossimConnectableObjectListener.

Definition at line 813 of file ossimImageFileWriter.cpp.

References ossimConnectableObject::disconnectMyInput(), ossimConnectableObject::getInput(), initialize(), PTR_CAST, theInputConnection, and theViewController.

814 {
815  if(!getInput(0))
816  {
818  }
820 
821  initialize();
822 }
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.
ossimRefPtr< ossimViewController > theViewController
ossimConnectableObject * getInput(ossim_uint32 index=0)
returns the object at the specified index.
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
#define PTR_CAST(T, p)
Definition: ossimRtti.h:321
virtual void initialize()
Initialize method.
int ossim_int32

◆ execute()

bool ossimImageFileWriter::execute ( )
virtual

Calls: writeFile() writeMetaDataFiles()

Returns
true on success, false on error.

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().

1017 {
1018  static const char MODULE[] = "ossimImageFileWriter::execute";
1019 
1020  if (!theInputConnection) // Must have a sequencer...
1021  {
1022  if (traceDebug())
1023  {
1025  << MODULE << " DEBUG:\ntheInputConnection is NULL!" << endl;
1026  }
1027  return false;
1028  }
1029 
1030  if (theFilename == "") // Must have a filename...
1031  {
1032  if (traceDebug())
1033  {
1035  << MODULE << " DEBUG:\ntheFilename is empty!" << endl;
1036  }
1037  return false;
1038  }
1039 
1040 
1041  // make sure we have a region of interest
1043  {
1046  }
1047  else
1048  {
1050  }
1051 
1052  if(theAreaOfInterest.hasNans()) // Must have an area of interest...
1053  {
1054  if (traceDebug())
1055  {
1057  << MODULE << " ERROR: Area of interest has nans!"
1058  << "Area of interest: "
1060  << "\nReturning..." << endl;
1061  }
1062 
1063  return false;
1064  }
1065 
1066  if (traceDebug())
1067  {
1069  << MODULE << " DEBUG:\n"
1070  << "Area of interest: " << theAreaOfInterest << endl;
1071  }
1072 
1073  ossimRefPtr<ossimImageSource> savedInput;
1075  {
1077  {
1078  savedInput = new ossimScalarRemapper;
1079 
1080  savedInput->connectMyInputTo(0, theInputConnection->getInput(0));
1081  theInputConnection->connectMyInputTo(0, savedInput.get());
1083  }
1084  }
1085 
1086  ossimFilename path = theFilename.path();
1087  if (!path.empty() && !path.exists() )
1088  {
1089  path.createDirectory(true);
1090  }
1092  //setPercentComplete(0.0); let writeFile set the precent complete
1093  bool wroteFile = true;
1094  bool result = true;
1095  if (theWriteImageFlag)
1096  {
1097  wroteFile = writeFile();
1098  }
1099 
1100  /*
1101  if(needsAborting())
1102  {
1103  setProcessStatus(ossimProcessInterface::PROCESS_STATUS_ABORTED);
1104  }
1105  else
1106  {
1107  setProcessStatus(ossimProcessInterface::PROCESS_STATUS_NOT_EXECUTING);
1108  }
1109  */
1111  {
1112  // Writing overviews has been mpi'd so do on all processes.
1115  {
1116  if(traceDebug())
1117  {
1119  << "Write of overview file failed!" << endl;
1120  }
1121  }
1122  }
1123 
1124  if(!needsAborting())
1125  {
1126  // Do these only on the master process. Note left to right precedence!
1127  if (getSequencer() && getSequencer()->isMaster())
1128  {
1129  if (wroteFile)
1130  {
1131  if (writeMetaDataFiles() == false)
1132  {
1133  if(traceDebug())
1134  {
1136  << "Write of metadata file failed!" << endl;
1137  }
1138  result = false;
1139  }
1140  }
1141 
1142  } // End of "if (getSequencer() && getSequencer()->isMaster()))
1143  }
1144 
1145  if(savedInput.valid())
1146  {
1148  if(obj)
1149  {
1151  }
1152  }
1153  if(!needsAborting())
1154  {
1156  }
1157  else
1158  {
1160  }
1161 
1162  savedInput = 0;
1163  return result;
1164 }
bool valid() const
Definition: ossimRefPtr.h:75
virtual bool writeFile()=0
Write out the file.
ossimIrect theAreaOfInterest
virtual void setProcessStatus(ossimProcessStatus processStatus)
virtual ossimImageSourceSequencer * getSequencer()
virtual bool writeMetaDataFiles()
Convenience method that calls meta data write methods that are flagged to be called.
ossimConnectableObject * getInput(ossim_uint32 index=0)
returns the object at the specified index.
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.
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
bool exists() const
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossim_int32 theOverviewJpegCompressQuality
ossim_uint16 theOverviewCompressType
bool empty() const
Definition: ossimString.h:411
bool hasNans() const
Definition: ossimIrect.h:337
const ossimIrect & getAreaOfInterest() const
8 bit unsigned integer
bool createDirectory(bool recurseFlag=true, int perm=0775) const
ossimFilename path() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ getExtension()

ossimString ossimImageFileWriter::getExtension ( ) const
virtual

Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions.

Parameters
imageTypestring representing image type.
Returns
the 3-letter string extension.

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.

1492 {
1493  // default unknown file extension
1494  return ossimString("ext");
1495 }

◆ getFilename()

const ossimFilename & ossimImageFileWriter::getFilename ( ) const
virtual

Definition at line 1222 of file ossimImageFileWriter.cpp.

References theFilename.

Referenced by ossimIgen::outputProduct().

1223 {
1224  return theFilename;
1225 }

◆ getImageTypeList()

virtual void ossimImageFileWriter::getImageTypeList ( std::vector< ossimString > &  imageTypeList) const
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.

Parameters
imageTypeListstl::vector<ossimString> list to append to.
Note
All writers should append to the list, not, clear it and then add their types.

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().

◆ getObject() [1/2]

ossimObject * ossimImageFileWriter::getObject ( )
virtual

Implements ossimProcessInterface.

Definition at line 982 of file ossimImageFileWriter.cpp.

983 {
984  return this;
985 }

◆ getObject() [2/2]

const ossimObject * ossimImageFileWriter::getObject ( ) const
virtual

Implements ossimProcessInterface.

Definition at line 987 of file ossimImageFileWriter.cpp.

988 {
989  return this;
990 }

◆ getOutputHasInternalOverviews()

bool ossimImageFileWriter::getOutputHasInternalOverviews ( void  ) const
virtual

Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nitf_j2k.

Returns
true if the output of the writer will have internal overviews. The default is false.

Reimplemented in ossimKakaduNitfWriter, ossimOpjJp2Writer, and ossimKakaduJp2Writer.

Definition at line 1497 of file ossimImageFileWriter.cpp.

1498 {
1499  // default value: don't assume internal overviews will
1500  // be generated by image writers.
1501  return false;
1502 }

◆ getOutputImageType()

ossim_int32 ossimImageFileWriter::getOutputImageType ( ) const
virtual

Definition at line 855 of file ossimImageFileWriter.cpp.

References ossimLookUpTable::getEntryNumber(), and theOutputImageType.

856 {
857  ossimImageTypeLut lut;
859 }
virtual ossim_int32 getEntryNumber(const char *entry_string, bool case_insensitive=true) const

◆ getOutputImageTypeString()

ossimString ossimImageFileWriter::getOutputImageTypeString ( ) const
virtual

Definition at line 849 of file ossimImageFileWriter.cpp.

References theOutputImageType.

850 {
851  return theOutputImageType;
852 
853 }

◆ getOutputStream()

ossimRefPtr< ossimOStream > ossimImageFileWriter::getOutputStream ( ) const
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.

Returns
The stream wrapped around a ref pointer.

Definition at line 1175 of file ossimImageFileWriter.cpp.

1176 {
1177  //---
1178  // Not implemented in this class. Derived classed should implement if
1179  // they can write to a stream.
1180  //---
1181  return ossimRefPtr<ossimOStream>();
1182 }

◆ getOverviewCompressType()

ossim_uint16 ossimImageFileWriter::getOverviewCompressType ( ) const
virtual

Definition at line 1235 of file ossimImageFileWriter.cpp.

References theOverviewCompressType.

1236 {
1237  return theOverviewCompressType;
1238 }
ossim_uint16 theOverviewCompressType

◆ getOverviewJpegCompressQuality()

ossim_int32 ossimImageFileWriter::getOverviewJpegCompressQuality ( ) const
virtual

Definition at line 1240 of file ossimImageFileWriter.cpp.

References theOverviewJpegCompressQuality.

1241 {
1243 }
ossim_int32 theOverviewJpegCompressQuality

◆ getPixelType()

ossimPixelType ossimImageFileWriter::getPixelType ( ) const
virtual
Returns
The pixel type as either OSSIM_PIXEL_IS_POINT or OSSIM_PIXEL_IS_AREA.

Definition at line 1557 of file ossimImageFileWriter.cpp.

References thePixelType.

Referenced by ossimKakaduJp2Writer::writeGeotiffBox().

1558 {
1559  return thePixelType;
1560 }
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.

◆ getPixelTypeString()

void ossimImageFileWriter::getPixelTypeString ( ossimString type) const
virtual
Parameters
typeossimString to initialize which will either be "point" or "area".

Definition at line 1562 of file ossimImageFileWriter.cpp.

References OSSIM_PIXEL_IS_POINT, and thePixelType.

1563 {
1565  {
1566  type = "point";
1567  }
1568  else
1569  {
1570  type = "area";
1571  }
1572 }
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.

◆ getProperty()

ossimRefPtr< ossimProperty > ossimImageFileWriter::getProperty ( const ossimString name) const
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().

1344 {
1345  if(name == ossimKeywordNames::FILENAME_KW)
1346  {
1347  ossimFilenameProperty* filenameProp =
1349 
1351 
1352  return filenameProp;
1353  }
1354  else if(name == ossimKeywordNames::IMAGE_TYPE_KW)
1355  {
1357  std::vector<ossimString> typeList;
1358  getImageTypeList(typeList);
1359  if(typeList.size() > 1)
1360  {
1361  prop->setReadOnlyFlag(false);
1362  prop->setConstraints(typeList);
1364  }
1365  else
1366  {
1367  prop->setReadOnlyFlag(true);
1368  }
1369  return prop;
1370  }
1371  else if(name == AUTO_CREATE_DIRECTORY_KW)
1372  {
1374  }
1375  else if (name == "create_envi_hdr")
1376  {
1377  return new ossimBooleanProperty(name, theWriteEnviHeaderFlag);
1378  }
1379  else if (name == "create_ers_hdr")
1380  {
1381  return new ossimBooleanProperty(name, theWriteErsHeaderFlag);
1382  }
1384  {
1386  }
1387  else if (name == "create_fgdc")
1388  {
1389  return new ossimBooleanProperty(name, theWriteFgdcFlag);
1390  }
1391  else if (name == "create_jpeg_world_file")
1392  {
1394  }
1395  else if (name == "create_readme")
1396  {
1397  return new ossimBooleanProperty(name, theWriteReadmeFlag);
1398  }
1399  else if (name == "create_tiff_world_file")
1400  {
1402  }
1403  else if (name == "create_world_file")
1404  {
1405  return new ossimBooleanProperty(name, theWriteWorldFileFlag);
1406  }
1407  else if (name == ossimKeywordNames::CREATE_IMAGE_KW)
1408  {
1409  return new ossimBooleanProperty(name, theWriteImageFlag);
1410  }
1411  else if (name == ossimKeywordNames::CREATE_OVERVIEW_KW)
1412  {
1413  return new ossimBooleanProperty(name, theWriteOverviewFlag);
1414  }
1415  else if (name == ossimKeywordNames::CREATE_HISTOGRAM_KW)
1416  {
1417  return new ossimBooleanProperty(name, theWriteHistogramFlag);
1418  }
1419  else if (name == SCALE_TO_EIGHT_BIT_KW)
1420  {
1421  return new ossimBooleanProperty(name, theScaleToEightBitFlag);
1422  }
1423  else if (name == "linear_units")
1424  {
1425  // property value
1427  getEntryString(theLinearUnits);
1428 
1429  //---
1430  // theLinearUnits is set to unknown as a default. This keys the
1431  // writer to use whatever makes sense for the given output.
1432  // Since "unknown" is a bad name to present to users, we will
1433  // use "default" if theLinearUnits is == "unknown".
1434  //---
1435  if (value == "unknown")
1436  {
1437  value = "default";
1438  }
1439 
1440  // constraint list
1441  vector<ossimString> constraintList;
1442  constraintList.push_back(ossimString("default"));
1443  constraintList.push_back(ossimString("meters"));
1444  constraintList.push_back(ossimString("feet"));
1445  constraintList.push_back(ossimString("us_survey_feet"));
1446 
1447  return new ossimStringProperty(name,
1448  value,
1449  false, // not editable
1450  constraintList);
1451  }
1452  else if (name == ossimKeywordNames::PIXEL_TYPE_KW)
1453  {
1454  ossimString value;
1455  getPixelTypeString(value);
1456  ossimStringProperty* stringProp =
1457  new ossimStringProperty(name,
1458  value,
1459  false); // editable flag
1460  stringProp->addConstraint(ossimString("point"));
1461  stringProp->addConstraint(ossimString("area"));
1462  return stringProp;
1463  }
1464 
1465  return ossimImageWriter::getProperty(name);
1466 }
static const char * CREATE_HISTOGRAM_KW
ossimUnitType theLinearUnits
If not a geographic projection this allows the user to set the linear units of the output tag to be: ...
void setChangeType(int type, bool on=true)
virtual void setReadOnlyFlag(bool flag)
void addConstraint(const ossimString &value)
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
bool theWriteEnviHeaderFlag
External meta data writer flags.
virtual void getImageTypeList(std::vector< ossimString > &imageTypeList) const =0
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
void push_back(char c)
Equivalent to insert(end(), c).
Definition: ossimString.h:905
virtual void getPixelTypeString(ossimString &type) const
static const char * CREATE_OVERVIEW_KW
static const char * CREATE_EXTERNAL_GEOMETRY_KW
static const char * CREATE_IMAGE_KW
void setIoType(ossimFilenamePropertyIoType ioType)
static const char * PIXEL_TYPE_KW
static const char * IMAGE_TYPE_KW
static ossimUnitTypeLut * instance()
Returns the static instance of an ossimUnitTypeLut object.
static const char * FILENAME_KW
void setConstraints(const std::vector< ossimString > &constraintList)

◆ getPropertyNames()

void ossimImageFileWriter::getPropertyNames ( std::vector< ossimString > &  propertyNames) const
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().

1469 {
1470  ossimImageWriter::getPropertyNames(propertyNames);
1471 
1472  propertyNames.push_back(ossimString(ossimKeywordNames::FILENAME_KW));
1473  propertyNames.push_back(ossimString("create_envi_hdr"));
1475  propertyNames.push_back(ossimString("create_fgdc"));
1476  propertyNames.push_back(ossimString("create_jpeg_world_file"));
1477  propertyNames.push_back(ossimString("create_readme"));
1478  propertyNames.push_back(ossimString("create_tiff_world_file"));
1479  propertyNames.push_back(ossimString("create_world_file"));
1480  propertyNames.push_back(ossimString(ossimKeywordNames::CREATE_IMAGE_KW));
1481  propertyNames.push_back(ossimString(ossimKeywordNames::CREATE_OVERVIEW_KW));
1482  propertyNames.push_back(ossimString(ossimKeywordNames::CREATE_HISTOGRAM_KW));
1483  propertyNames.push_back(ossimString(AUTO_CREATE_DIRECTORY_KW));
1484  propertyNames.push_back(ossimString(SCALE_TO_EIGHT_BIT_KW));
1485  propertyNames.push_back(ossimString("linear_units"));
1486  propertyNames.push_back(ossimString(ossimKeywordNames::PIXEL_TYPE_KW));
1487  propertyNames.push_back(ossimString(ossimKeywordNames::IMAGE_TYPE_KW));
1488 
1489 }
static const char * CREATE_HISTOGRAM_KW
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
static const char * CREATE_OVERVIEW_KW
static const char * CREATE_EXTERNAL_GEOMETRY_KW
static const char * CREATE_IMAGE_KW
static const char * PIXEL_TYPE_KW
static const char * IMAGE_TYPE_KW
static const char * FILENAME_KW

◆ getScaleToEightBitFlag()

bool ossimImageFileWriter::getScaleToEightBitFlag ( ) const
virtual

Definition at line 877 of file ossimImageFileWriter.cpp.

References theScaleToEightBitFlag.

878 {
879  return theScaleToEightBitFlag;
880 }

◆ getSequencer()

ossimImageSourceSequencer * ossimImageFileWriter::getSequencer ( )
virtual

Definition at line 1011 of file ossimImageFileWriter.cpp.

References ossimRefPtr< T >::get(), and theInputConnection.

Referenced by ossimGeneralRasterWriter::writeFile().

1012 {
1013  return theInputConnection.get();
1014 }
ossimRefPtr< ossimImageSourceSequencer > theInputConnection

◆ getWriteEnviHeaderFlag()

bool ossimImageFileWriter::getWriteEnviHeaderFlag ( ) const
virtual

Definition at line 882 of file ossimImageFileWriter.cpp.

References theWriteEnviHeaderFlag.

883 {
884  return theWriteEnviHeaderFlag;
885 }
bool theWriteEnviHeaderFlag
External meta data writer flags.

◆ getWriteErsHeaderFlag()

bool ossimImageFileWriter::getWriteErsHeaderFlag ( ) const
virtual

Definition at line 887 of file ossimImageFileWriter.cpp.

References theWriteErsHeaderFlag.

888 {
889  return theWriteErsHeaderFlag;
890 }

◆ getWriteExternalGeometryFlag()

bool ossimImageFileWriter::getWriteExternalGeometryFlag ( ) const
virtual

Definition at line 892 of file ossimImageFileWriter.cpp.

References theWriteExternalGeometryFlag.

893 {
895 }

◆ getWriteFgdcFlag()

bool ossimImageFileWriter::getWriteFgdcFlag ( ) const
virtual

Definition at line 897 of file ossimImageFileWriter.cpp.

References theWriteFgdcFlag.

898 {
899  return theWriteFgdcFlag;
900 }

◆ getWriteHistogramFlag()

bool ossimImageFileWriter::getWriteHistogramFlag ( ) const
virtual

Definition at line 867 of file ossimImageFileWriter.cpp.

References theWriteHistogramFlag.

868 {
869  return theWriteHistogramFlag;
870 }

◆ getWriteImageFlag()

bool ossimImageFileWriter::getWriteImageFlag ( ) const
virtual

Control flags...

Definition at line 862 of file ossimImageFileWriter.cpp.

References theWriteImageFlag.

863 {
864  return theWriteImageFlag;
865 }

◆ getWriteJpegWorldFileFlag()

bool ossimImageFileWriter::getWriteJpegWorldFileFlag ( ) const
virtual

Definition at line 902 of file ossimImageFileWriter.cpp.

References theWriteJpegWorldFileFlag.

903 {
905 }

◆ getWriteOverviewFlag()

bool ossimImageFileWriter::getWriteOverviewFlag ( ) const
virtual

Definition at line 872 of file ossimImageFileWriter.cpp.

References theWriteOverviewFlag.

873 {
874  return theWriteOverviewFlag;
875 }

◆ getWriteReadmeFlag()

bool ossimImageFileWriter::getWriteReadmeFlag ( ) const
virtual

Definition at line 907 of file ossimImageFileWriter.cpp.

References theWriteReadmeFlag.

908 {
909  return theWriteReadmeFlag;
910 }

◆ getWriteTiffWorldFileFlag()

bool ossimImageFileWriter::getWriteTiffWorldFileFlag ( ) const
virtual

Definition at line 912 of file ossimImageFileWriter.cpp.

References theWriteTiffWorldFileFlag.

913 {
915 }

◆ getWriteWorldFileFlag()

bool ossimImageFileWriter::getWriteWorldFileFlag ( ) const
virtual

Definition at line 917 of file ossimImageFileWriter.cpp.

References theWriteWorldFileFlag.

918 {
919  return theWriteWorldFileFlag;
920 }

◆ hasImageType()

bool ossimImageFileWriter::hasImageType ( const ossimString imageType) const
virtual

bool hasImageType(const ossimString& imageType) const

Parameters
imageTypestring representing image type.
Returns
true if "imageType" is supported by writer.

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().

1505 {
1506  std::vector<ossimString> imageTypeList;
1507  getImageTypeList(imageTypeList);
1508 
1509  std::vector<ossimString>::const_iterator i = imageTypeList.begin();
1510 
1511  while (i != imageTypeList.end())
1512  {
1513  if ( (*i) == imageType )
1514  {
1515  return true;
1516  }
1517  ++i;
1518  }
1519 
1520  return false; // not found...
1521 }
virtual void getImageTypeList(std::vector< ossimString > &imageTypeList) const =0
void getImageTypeList(std::vector<ossimString>& imageTypeList)const

◆ initialize()

void ossimImageFileWriter::initialize ( )
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().

130 {
132  {
134 
135  //---
136  // Area Of Interest(AOI):
137  // There are two AOIs to keep in sync.
138  // One owned by this base: ossimImageWriter::theAreaOfInterest
139  // One owned by the theInputConntion: ossimImageSourceSequencer::theAreaOfInterest
140  //---
141  if ( theAreaOfInterest.hasNans() == false )
142  {
143  //---
144  // ossimImageSourceSequencer::setAreaOfInterest does more than just set the
145  // variable, so only call if out of sync to avoid wasted cycles.
146  //---
148  {
150  }
151  }
152  else
153  {
154  // Set this AOI to bounding rect of input.
156  }
157  }
158 }
bool valid() const
Definition: ossimRefPtr.h:75
ossimIrect theAreaOfInterest
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
bool hasNans() const
Definition: ossimIrect.h:337

◆ loadState()

bool ossimImageFileWriter::loadState ( const ossimKeywordlist kwl,
const char *  prefix = 0 
)
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().

290 {
291  // Load the state of the base class.
292  bool result = ossimSource::loadState(kwl, prefix);
293 
294  // Get the filename...
295  const char* lookup = kwl.find(prefix, ossimKeywordNames::FILENAME_KW);
296  if(lookup)
297  {
298  ossimString filename = lookup;
299 
300  lookup = kwl.find(prefix, ossimKeywordNames::FILEPATH_KW);
301  if(lookup)
302  {
303  filename = ossimString(lookup) + filename;
304  }
305 
306  setFilename(filename);
307  }
308 
309  lookup = kwl.find(prefix, ossimKeywordNames::PIXEL_TYPE_KW);
310  if(lookup)
311  {
312  if(ossimString(lookup).downcase().contains("area"))
313  {
315  }
316  else
317  {
319  }
320  }
321 
322  lookup = kwl.find(prefix, "linear_units");
323  if(lookup)
324  {
326  getEntryNumber(lookup, true);
327  if ( (units == OSSIM_METERS) ||
328  (units == OSSIM_FEET) ||
329  (units == OSSIM_US_SURVEY_FEET) )
330  {
331  theLinearUnits = units;
332  }
333  }
334 
336  if(lookup)
337  {
338  ossimString s = lookup;
340  }
341 
342  lookup = kwl.find(prefix, "create_envi_hdr");
343  if(lookup)
344  {
345  ossimString s = lookup;
347  }
348 
349  lookup = kwl.find(prefix, "create_ers_hdr");
350  if(lookup)
351  {
352  ossimString s = lookup;
354  }
355 
356  lookup = kwl.find(prefix, "create_fgdc");
357  if(lookup)
358  {
359  ossimString s = lookup;
360  theWriteFgdcFlag = s.toBool();
361  }
362 
363  lookup = kwl.find(prefix, "create_jpeg_world_file");
364  if(lookup)
365  {
366  ossimString s = lookup;
368  }
369 
370  lookup = kwl.find(prefix, "create_readme");
371  if(lookup)
372  {
373  ossimString s = lookup;
375  }
376 
377  lookup = kwl.find(prefix, "create_tiff_world_file");
378  if(lookup)
379  {
380  ossimString s = lookup;
382  }
383 
384  lookup = kwl.find(prefix, "create_world_file");
385  if(lookup)
386  {
387  ossimString s = lookup;
389  }
390 
391  lookup = kwl.find(prefix, ossimKeywordNames::CREATE_IMAGE_KW);
392  if(lookup)
393  {
394  ossimString s = lookup;
396  }
397 
398  lookup = kwl.find(prefix, ossimKeywordNames::CREATE_OVERVIEW_KW);
399  if(lookup)
400  {
401  ossimString s = lookup;
403  }
404 
405  lookup = kwl.find(prefix, ossimKeywordNames::CREATE_HISTOGRAM_KW);
406  if(lookup)
407  {
408  ossimString s = lookup;
410  }
411 
412  lookup = kwl.find(prefix, SCALE_TO_EIGHT_BIT_KW);
413  if(lookup)
414  {
415  ossimString s = lookup;
417  }
418 
419  lookup = kwl.find(prefix, AUTO_CREATE_DIRECTORY_KW);
420  if(lookup)
421  {
423  }
425  if(lookup)
426  {
427  ossimString s = lookup;
428  theOverviewCompressType = static_cast<ossim_uint16>(s.toUInt32());
429  }
430 
432  if(lookup)
433  {
434  ossimString s = lookup;
436  }
437 
438  const char* outputImageType = kwl.find(prefix, ossimKeywordNames::IMAGE_TYPE_KW);
439  if(outputImageType)
440  {
441  theOutputImageType = outputImageType;
442  }
443 
444  if(theInputObjectList.size() != 2)
445  {
446  theInputObjectList.resize(2);
448  }
449 
450  theOutputListIsFixedFlag = false;
451 
452  return result;
453 }
static const char * CREATE_HISTOGRAM_KW
ossimUnitType
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Definition: ossimSource.cpp:66
const char * find(const char *key) const
ossimUnitType theLinearUnits
If not a geographic projection this allows the user to set the linear units of the output tag to be: ...
static const char * OVERVIEW_COMPRESSION_TYPE_KW
static const char * FILEPATH_KW
ossim_uint32 toUInt32() const
unsigned short ossim_uint16
bool theWriteEnviHeaderFlag
External meta data writer flags.
ossim_int32 toInt32() const
static const char * CREATE_OVERVIEW_KW
bool toBool() const
String to numeric methods.
static const char * CREATE_EXTERNAL_GEOMETRY_KW
virtual void setFilename(const ossimFilename &file)
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
ossim_int32 theOverviewJpegCompressQuality
ConnectableObjectList theInputObjectList
Holds a list of input objects.
static const char * CREATE_IMAGE_KW
ossim_uint16 theOverviewCompressType
static const char * PIXEL_TYPE_KW
bool theInputListIsFixedFlag
Indicates whether the theInputObjectList is fixed.
bool theOutputListIsFixedFlag
Indicates whether the theOutputObjectList is fixed.
static const char * IMAGE_TYPE_KW
static const char * OVERVIEW_COMPRESSION_QUALITY_KW
static ossimUnitTypeLut * instance()
Returns the static instance of an ossimUnitTypeLut object.
static const char * FILENAME_KW

◆ propertyEvent()

void ossimImageFileWriter::propertyEvent ( ossimPropertyEvent event)
virtual

Reimplemented from ossimConnectableObjectListener.

Definition at line 833 of file ossimImageFileWriter.cpp.

References initialize().

834 {
835  initialize();
836 }
virtual void initialize()
Initialize method.

◆ removeListener()

bool ossimImageFileWriter::removeListener ( ossimListener listener)
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.

Parameters
listenerThe listener to remove.
Returns
Currently always returns true.

Reimplemented from ossimListenerManager.

Definition at line 1529 of file ossimImageFileWriter.cpp.

References ossimListenerManager::removeListener(), and theProgressListener.

Referenced by ossimChipProcTool::execute(), main(), and ~ossimImageFileWriter().

1530 {
1531  if (listener == theProgressListener)
1532  {
1533  theProgressListener = NULL;
1534  }
1535  return ossimImageWriter::removeListener(listener);
1536 }
ossimListener * theProgressListener
virtual bool removeListener(ossimListener *listener)

◆ saveState()

bool ossimImageFileWriter::saveState ( ossimKeywordlist kwl,
const char *  prefix = 0 
) const
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().

171 {
172  kwl.add(prefix,
174  getClassName(),
175  true);
176 
177  kwl.add(prefix,
179  theFilename.c_str(),
180  true);
181 
182  kwl.add(prefix,
183  "create_envi_hdr",
185  true);
186 
187  kwl.add(prefix,
188  "create_ers_hdr",
190  true);
191 
192  kwl.add(prefix,
195  true);
196 
197  kwl.add(prefix,
198  "create_fgdc",
200  true);
201 
202  kwl.add(prefix,
203  "create_jpeg_world_file",
205  true);
206 
207  kwl.add(prefix,
208  "create_readme",
210  true);
211 
212  kwl.add(prefix,
213  "create_tiff_world_file",
215  true);
216 
217  kwl.add(prefix,
218  "create_world_file",
220  true);
221 
222  kwl.add(prefix,
225  true);
226 
227  kwl.add(prefix,
230  true);
231 
232  kwl.add(prefix,
235  true);
236 
237  kwl.add(prefix,
238  SCALE_TO_EIGHT_BIT_KW,
240  true);
241  kwl.add(prefix,
242  AUTO_CREATE_DIRECTORY_KW,
244  true);
245  kwl.add(prefix,
248  true);
249 
250  kwl.add(prefix,
253  true);
254 
255  ossimImageTypeLut lut;
256  kwl.add(prefix,
259  true);
260 
261  //---
262  // When "theLinearUnits" == "unknown" that is a key to the writer to just
263  // use whatever units makes sense for the projection. Since "unknown"
264  // doesn't look good to the average user in a spec file, change to
265  // "default" if "unknown". When read back in by the lookup table since
266  // "default" is not a valid "string" theLinearUnits will remain "unknown".
267  // Kind of a hack but it works:) (drb)
268  //---
270  getEntryString(theLinearUnits);
271  if (os == "unknown")
272  {
273  os = "default"; // Avoid saving as unknown for user readability.
274  }
275  kwl.add(prefix, "linear_units", os, true);
276 
277  // Set the pixel type.
278  ossimString pixelType;
279  getPixelTypeString(pixelType);
280  kwl.add(prefix,
282  pixelType.c_str(),
283  true);
284 
285  return ossimSource::saveState(kwl, prefix);
286 }
static const char * CREATE_HISTOGRAM_KW
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Definition: ossimSource.cpp:55
ossimUnitType theLinearUnits
If not a geographic projection this allows the user to set the linear units of the output tag to be: ...
static const char * OVERVIEW_COMPRESSION_TYPE_KW
virtual ossimString getClassName() const
Definition: ossimObject.cpp:64
static const char * TYPE_KW
bool theWriteEnviHeaderFlag
External meta data writer flags.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
virtual void getPixelTypeString(ossimString &type) const
static const char * CREATE_OVERVIEW_KW
unsigned int ossim_uint32
static const char * CREATE_EXTERNAL_GEOMETRY_KW
ossim_int32 theOverviewJpegCompressQuality
static const char * CREATE_IMAGE_KW
ossim_uint16 theOverviewCompressType
static const char * PIXEL_TYPE_KW
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
static const char * IMAGE_TYPE_KW
static const char * OVERVIEW_COMPRESSION_QUALITY_KW
static ossimUnitTypeLut * instance()
Returns the static instance of an ossimUnitTypeLut object.
static const char * FILENAME_KW

◆ setAreaOfInterest()

void ossimImageFileWriter::setAreaOfInterest ( const ossimIrect inputRect)
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().

993 {
994  // This sets "theAreaOfInterest".
996 
997  if( theInputConnection.valid() )
998  {
999  //---
1000  // ossimImageSourceSequencer::setAreaOfInterest does more than just set the
1001  // variable, so only call if out of sync to avoid wasted cycles.
1002  //---
1004  {
1005  // Set the sequencer area of interest.
1007  }
1008  }
1009 }
bool valid() const
Definition: ossimRefPtr.h:75
ossimIrect theAreaOfInterest
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
virtual void setAreaOfInterest(const ossimIrect &inputAreaOfInterest)

◆ setFilename()

void ossimImageFileWriter::setFilename ( const ossimFilename file)
virtual

◆ setOutputImageType() [1/2]

void ossimImageFileWriter::setOutputImageType ( ossim_int32  type)
virtual

◆ setOutputImageType() [2/2]

void ossimImageFileWriter::setOutputImageType ( const ossimString type)
virtual

Reimplemented in ossimGdalWriter.

Definition at line 838 of file ossimImageFileWriter.cpp.

References theOutputImageType.

839 {
840  theOutputImageType = type;
841 }

◆ setOutputName()

void ossimImageFileWriter::setOutputName ( const ossimString outputName)
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().

1212 {
1213  ossimImageWriter::setOutputName(outputName);
1214  setFilename(ossimFilename(outputName));
1215 }
virtual void setOutputName(const ossimString &outputName)
virtual void setFilename(const ossimFilename &file)

◆ setOutputStream() [1/2]

bool ossimImageFileWriter::setOutputStream ( ossimRefPtr< ossimOStream stream)
virtual

Sets the output stream to write to.

This implementation in this class does nothing and returns false. Derived classed should implement as needed.

Parameters
streamThe stream to write to.
Returns
true if object can write to stream, false if not.

Definition at line 1184 of file ossimImageFileWriter.cpp.

Referenced by ossimIgen::outputProduct().

1186 {
1187  //---
1188  // Not implemented in this class. Derived classed should implement if
1189  // they can write to a stream.
1190  //---
1191  return false;
1192 }

◆ setOutputStream() [2/2]

bool ossimImageFileWriter::setOutputStream ( std::ostream &  str)
virtual

tmp drb

Reimplemented in ossimPngWriter, ossimPdfWriter, ossimOpjJp2Writer, ossimKakaduJp2Writer, ossimKakaduNitfWriter, ossimWriter, and ossimGeneralRasterWriter.

Definition at line 1194 of file ossimImageFileWriter.cpp.

1195 {
1196  //---
1197  // Not implemented in this class. Derived classed should implement if
1198  // they can write to a stream.
1199  //---
1200  return false;
1201 }

◆ setOverviewCompressType()

void ossimImageFileWriter::setOverviewCompressType ( ossim_uint16  type)
virtual

Definition at line 1245 of file ossimImageFileWriter.cpp.

References theOverviewCompressType.

1246 {
1247  theOverviewCompressType = type;
1248 }
ossim_uint16 theOverviewCompressType

◆ setOverviewJpegCompressQuality()

void ossimImageFileWriter::setOverviewJpegCompressQuality ( ossim_int32  quality)
virtual

Definition at line 1250 of file ossimImageFileWriter.cpp.

References theOverviewJpegCompressQuality.

1251 {
1253 }
ossim_int32 theOverviewJpegCompressQuality

◆ setPercentComplete()

void ossimImageFileWriter::setPercentComplete ( double  percentComplete)
virtual

◆ setPixelType() [1/2]

void ossimImageFileWriter::setPixelType ( ossimPixelType  type)
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

Parameters
typeOSSIM_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().

1539 {
1540  thePixelType = type;
1541 }
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.

◆ setPixelType() [2/2]

void ossimImageFileWriter::setPixelType ( const ossimString type)
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

Parameters
type"point" = center of pixel "area" = upper left corner of pixel
Note
If the downcased "type" is not equal to "point" or "area" pixel type will remain unchanged.

Definition at line 1543 of file ossimImageFileWriter.cpp.

References ossimString::downcase(), OSSIM_PIXEL_IS_AREA, OSSIM_PIXEL_IS_POINT, and setPixelType().

1544 {
1545  ossimString s = type;
1546  s.downcase();
1547  if (s == "point")
1548  {
1550  }
1551  else if (s == "area")
1552  {
1554  }
1555 }
virtual void setPixelType(ossimPixelType type)
If "point" the coordinate tie points are relative to the center of the pixel.
static ossimString downcase(const ossimString &aString)
Definition: ossimString.cpp:48

◆ setProperty()

void ossimImageFileWriter::setProperty ( ossimRefPtr< ossimProperty property)
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().

1256 {
1257  if(!property) return;
1258 
1259  if(property->getName() == ossimKeywordNames::FILENAME_KW)
1260  {
1261  theFilename = property->valueToString();
1262  }
1263  else if (property->getName() == "create_envi_hdr")
1264  {
1265  theWriteEnviHeaderFlag = property->valueToString().toBool();
1266  }
1267  else if (property->getName() == "create_ers_hdr")
1268  {
1269  theWriteErsHeaderFlag = property->valueToString().toBool();
1270  }
1271  else if (property->getName() ==
1273  {
1274  theWriteExternalGeometryFlag = property->valueToString().toBool();
1275  }
1276  else if (property->getName() == "create_fgdc")
1277  {
1278  theWriteFgdcFlag = property->valueToString().toBool();
1279  }
1280  else if (property->getName() == "create_jpeg_world_file")
1281  {
1282  theWriteJpegWorldFileFlag = property->valueToString().toBool();
1283  }
1284  else if (property->getName() == "create_readme")
1285  {
1286  theWriteReadmeFlag = property->valueToString().toBool();
1287  }
1288  else if (property->getName() == "create_tiff_world_file")
1289  {
1290  theWriteTiffWorldFileFlag = property->valueToString().toBool();
1291  }
1292  else if (property->getName() == "create_world_file")
1293  {
1294  theWriteWorldFileFlag = property->valueToString().toBool();
1295  }
1296  else if (property->getName() == ossimKeywordNames::CREATE_IMAGE_KW)
1297  {
1298  theWriteImageFlag = property->valueToString().toBool();
1299  }
1300  else if (property->getName() == ossimKeywordNames::CREATE_OVERVIEW_KW)
1301  {
1302  theWriteOverviewFlag = property->valueToString().toBool();
1303  }
1304  else if (property->getName() == ossimKeywordNames::CREATE_HISTOGRAM_KW)
1305  {
1306  theWriteHistogramFlag = property->valueToString().toBool();
1307  }
1308  else if (property->getName() == SCALE_TO_EIGHT_BIT_KW)
1309  {
1310  theScaleToEightBitFlag = property->valueToString().toBool();
1311  }
1312  else if(property->getName() == AUTO_CREATE_DIRECTORY_KW)
1313  {
1314  theAutoCreateDirectoryFlag = property->valueToString().toBool();
1315  }
1316  else if (property->getName() == "linear_units")
1317  {
1320  getEntryNumber(property->valueToString()));
1321  }
1322  else if(property->getName() == ossimKeywordNames::IMAGE_TYPE_KW)
1323  {
1324  setOutputImageType(property->valueToString());
1325  }
1326  else if(property->getName() == ossimKeywordNames::PIXEL_TYPE_KW)
1327  {
1329  property.get());
1330  if (stringProperty)
1331  {
1332  ossimString s;
1333  stringProperty->valueToString(s);
1334  setPixelType(s);
1335  }
1336  }
1337  else
1338  {
1340  }
1341 }
virtual void valueToString(ossimString &valueResult) const =0
virtual void setOutputImageType(ossim_int32 type)
virtual void setProperty(ossimRefPtr< ossimProperty > property)
static const char * CREATE_HISTOGRAM_KW
ossimUnitType
virtual void setPixelType(ossimPixelType type)
If "point" the coordinate tie points are relative to the center of the pixel.
ossimUnitType theLinearUnits
If not a geographic projection this allows the user to set the linear units of the output tag to be: ...
bool theWriteEnviHeaderFlag
External meta data writer flags.
static const char * CREATE_OVERVIEW_KW
#define PTR_CAST(T, p)
Definition: ossimRtti.h:321
static const char * CREATE_EXTERNAL_GEOMETRY_KW
static const char * CREATE_IMAGE_KW
static const char * PIXEL_TYPE_KW
static const char * IMAGE_TYPE_KW
static ossimUnitTypeLut * instance()
Returns the static instance of an ossimUnitTypeLut object.
static const char * FILENAME_KW
const ossimString & getName() const
virtual void valueToString(ossimString &valueResult) const

◆ setScaleToEightBitFlag()

void ossimImageFileWriter::setScaleToEightBitFlag ( bool  flag)
virtual

Definition at line 937 of file ossimImageFileWriter.cpp.

References theScaleToEightBitFlag.

938 {
939  theScaleToEightBitFlag = flag;
940 }

◆ setTileSize()

void ossimImageFileWriter::setTileSize ( const ossimIpt tileSize)
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().

1575 {
1576  if (theInputConnection.valid())
1577  {
1578  theInputConnection->setTileSize(tileSize);
1579  }
1580 }
bool valid() const
Definition: ossimRefPtr.h:75
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual void setTileSize(const ossimIpt &tileSize)

◆ setWriteEnviHeaderFlag()

void ossimImageFileWriter::setWriteEnviHeaderFlag ( bool  flag)
virtual

Definition at line 942 of file ossimImageFileWriter.cpp.

References theWriteEnviHeaderFlag.

943 {
944  theWriteEnviHeaderFlag = flag;
945 }
bool theWriteEnviHeaderFlag
External meta data writer flags.

◆ setWriteErsHeaderFlag()

void ossimImageFileWriter::setWriteErsHeaderFlag ( bool  flag)
virtual

Definition at line 947 of file ossimImageFileWriter.cpp.

References theWriteErsHeaderFlag.

948 {
949  theWriteErsHeaderFlag = flag;
950 }

◆ setWriteExternalGeometryFlag()

void ossimImageFileWriter::setWriteExternalGeometryFlag ( bool  flag)
virtual

◆ setWriteFgdcFlag()

void ossimImageFileWriter::setWriteFgdcFlag ( bool  flag)
virtual

Definition at line 957 of file ossimImageFileWriter.cpp.

References theWriteFgdcFlag.

958 {
959  theWriteFgdcFlag = flag;
960 }

◆ setWriteHistogramFlag()

void ossimImageFileWriter::setWriteHistogramFlag ( bool  flag)
virtual

Definition at line 932 of file ossimImageFileWriter.cpp.

References theWriteHistogramFlag.

933 {
934  theWriteHistogramFlag = flag;
935 }

◆ setWriteImageFlag()

void ossimImageFileWriter::setWriteImageFlag ( bool  flag)
virtual

Definition at line 927 of file ossimImageFileWriter.cpp.

References theWriteImageFlag.

928 {
929  theWriteImageFlag = flag;
930 }

◆ setWriteJpegWorldFile()

void ossimImageFileWriter::setWriteJpegWorldFile ( bool  flag)
virtual

Definition at line 962 of file ossimImageFileWriter.cpp.

References theWriteJpegWorldFileFlag.

963 {
965 }

◆ setWriteOverviewFlag()

void ossimImageFileWriter::setWriteOverviewFlag ( bool  flag)
virtual

Definition at line 922 of file ossimImageFileWriter.cpp.

References theWriteOverviewFlag.

923 {
924  theWriteOverviewFlag = flag;
925 }

◆ setWriteReadme()

void ossimImageFileWriter::setWriteReadme ( bool  flag)
virtual

Definition at line 967 of file ossimImageFileWriter.cpp.

References theWriteReadmeFlag.

968 {
969  theWriteReadmeFlag = flag;
970 }

◆ setWriteTiffWorldFile()

void ossimImageFileWriter::setWriteTiffWorldFile ( bool  flag)
virtual

Definition at line 972 of file ossimImageFileWriter.cpp.

References theWriteTiffWorldFileFlag.

973 {
975 }

◆ setWriteWorldFile()

void ossimImageFileWriter::setWriteWorldFile ( bool  flag)
virtual

Definition at line 977 of file ossimImageFileWriter.cpp.

References theWriteWorldFileFlag.

978 {
979  theWriteWorldFileFlag = flag;
980 }

◆ writeEnviHeaderFile()

bool ossimImageFileWriter::writeEnviHeaderFile ( )
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().

501 {
502  if( (theFilename == "") || !theInputConnection ||
504  {
505  return false;
506  }
507 
508  // Make the file name.
509  ossimFilename outputFile = theFilename;
510  outputFile.setExtension(ossimString("hdr"));
511 
512  // Make the writer.
515 
516  // Set things up.
518  writer->initialize();
519  writer->setFilename(outputFile);
520  writer->setPixelType(thePixelType);
522 
523  // Write it to disk.
524  return writer->execute();
525 }
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
Sets the area of interest to write the meta data for.
ossimIrect theAreaOfInterest
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
virtual void setPixelType(ossimPixelType pixelType)
Ossim uses a concept of "pixel is point" internally.
virtual void setFilename(const ossimFilename &file)
bool hasNans() const
Definition: ossimIrect.h:337
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
Class for writing a "ENVI" style header.

◆ writeErsHeaderFile()

bool ossimImageFileWriter::writeErsHeaderFile ( )
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().

528 {
529  if( (theFilename == "") || !theInputConnection ||
531  {
532  return false;
533  }
534 
535  // Make the file name.
536  ossimFilename outputFile = theFilename;
537  outputFile.setExtension(ossimString("ers"));
538 
539  // Make the writer.
541  new ossimERSFileWriter();
542 
543  // Set things up.
545  writer->initialize();
546  writer->setFilename(outputFile);
547  writer->setPixelType(thePixelType);
549 
550  // Write it to disk.
551  return writer->execute();
552 }
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
Sets the area of interest to write the meta data for.
ossimIrect theAreaOfInterest
Class for writing a "ERS" style header.
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
virtual void setPixelType(ossimPixelType pixelType)
Ossim uses a concept of "pixel is point" internally.
virtual void setFilename(const ossimFilename &file)
bool hasNans() const
Definition: ossimIrect.h:337
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.

◆ writeExternalGeometryFile()

bool ossimImageFileWriter::writeExternalGeometryFile ( )
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().

555 {
556  if( (theFilename == "") || !theInputConnection ||
558  {
559  return false;
560  }
561 
562  // Make the file name.
563  ossimFilename geomFile = theFilename;
564  geomFile.setExtension(ossimString("geom"));
565 
566  // Make the writer.
568 
569  // Set things up.
570 // writer->connectMyInputTo(0, theInputConnection.get());
572  writer->setFilename(geomFile);
573  writer->initialize();
574  writer->setPixelType(thePixelType);
576 
577  // Write it to disk.
578  return writer->execute();
579 }
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
Sets the area of interest to write the meta data for.
ossimIrect theAreaOfInterest
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
virtual void setPixelType(ossimPixelType pixelType)
Ossim uses a concept of "pixel is point" internally.
virtual void setFilename(const ossimFilename &file)
bool hasNans() const
Definition: ossimIrect.h:337
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
ossimGeomFileWriter

◆ writeFgdcFile()

bool ossimImageFileWriter::writeFgdcFile ( )
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.

582 {
583  if( (theFilename == "") || !theInputConnection ||
585  {
586  return false;
587  }
588 
589  // Make the file name.
590  ossimFilename outputFile = theFilename;
591  outputFile.setExtension(ossimString("xml"));
592 
593  // Make the writer.
595 
596  // Set things up.
598  writer->initialize();
599  writer->setFilename(outputFile);
600  writer->setPixelType(thePixelType);
602 
603  // Write it to disk.
604  return writer->execute();
605 }
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
Sets the area of interest to write the meta data for.
Class to write out meta data in a Federal Geographic Data Committe (FGDC) format. ...
ossimIrect theAreaOfInterest
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
virtual void setPixelType(ossimPixelType pixelType)
Ossim uses a concept of "pixel is point" internally.
virtual void setFilename(const ossimFilename &file)
bool hasNans() const
Definition: ossimIrect.h:337
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.

◆ writeFile()

virtual bool ossimImageFileWriter::writeFile ( )
protectedpure virtual

◆ writeHistogramFile()

bool ossimImageFileWriter::writeHistogramFile ( )
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.

781 {
782  if(needsAborting()) return false;
783  if(theFilename == "") return false;
784 
785  ossimFilename histogram_file = theFilename;
786  histogram_file.setExtension(ossimString("his"));
787 
789  open(theFilename);
790 
791  if (!handler)
792  {
793  return false;
794  }
795 
797 
799  histoSource->setMaxNumberOfRLevels(1); // Only compute for r0.
800  histoSource->connectMyInputTo(0, handler.get());
801  histoSource->enableSource();
802  writer->connectMyInputTo(0, histoSource.get());
803  writer->setFilename(histogram_file);
804  writer->addListener(&theStdOutProgress);
805  writer->execute();
806  writer->disconnect();
807  histoSource->disconnect();
808  handler->disconnect();
809  writer = 0; histoSource = 0; handler = 0;
810  return true;
811 }
virtual bool addListener(ossimListener *listener)
virtual void disconnect(ossimConnectableObject *object=0)
Will disconnect the object passed in.
OSSIM_DLL ossimStdOutProgress theStdOutProgress
virtual void enableSource()
Definition: ossimSource.cpp:84
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
virtual bool open()=0
virtual void setMaxNumberOfRLevels(ossim_uint32 number)
static ossimImageHandlerRegistry * instance()
virtual void setFilename(const ossimFilename &filename)
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.

◆ writeJpegWorldFile()

bool ossimImageFileWriter::writeJpegWorldFile ( )
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().

608 {
609  if(theFilename == "")
610  {
611  return false;
612  }
613 
614  // Make the file name.
615  ossimFilename file = theFilename;
616  file.setExtension(ossimString("jpw")); // jpw???
617 
618  return writeWorldFile(file);
619 }
virtual bool writeWorldFile()
Will write a world file.
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.

◆ writeMetaDataFiles()

bool ossimImageFileWriter::writeMetaDataFiles ( )
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

Returns
true if all files flagged are written, false if not.

Definition at line 663 of file ossimImageFileWriter.cpp.

References ossimProcessInterface::needsAborting(), ossimNotify(), ossimNotifyLevel_WARN, status, theWriteEnviHeaderFlag, theWriteErsHeaderFlag, theWriteExternalGeometryFlag, writeEnviHeaderFile(), writeErsHeaderFile(), and writeExternalGeometryFile().

664 {
665  bool status = true;
666 
668  {
669  if(writeEnviHeaderFile() == false)
670  {
671  status = false;
672 
674  << "Write of envi header file failed!" << endl;
675  }
676  }
677 
679  {
680  if(writeErsHeaderFile() == false)
681  {
682  status = false;
683 
685  << "Write of ers header file failed!" << endl;
686  }
687  }
688 
690  {
691  if( writeExternalGeometryFile() == false)
692  {
693  status = false;
694  if(traceDebug())
695  {
697  << "Write of geometry file failed!" << endl;
698  }
699  }
700  }
702  {
703  if(writeFgdcFile() == false)
704  {
705  status = false;
706  if(traceDebug())
707  {
709  << "Write of fgdc file failed!" << endl;
710  }
711  }
712  }
714  {
715  if(writeJpegWorldFile() == false)
716  {
717  status = false;
718  if(traceDebug())
719  {
721  << "Write of jpeg world file failed!" << endl;
722  }
723  }
724  }
726  {
727  if(writeReadmeFile() == false)
728  {
729  status = false;
730 
731  if(traceDebug())
732  {
734  << "Write of readme file failed!" << endl;
735  }
736  }
737  }
739  {
740  if(writeTiffWorldFile() == false)
741  {
742  status = false;
743  if(traceDebug())
744  {
746  << "Write of tiff world file failed!" << endl;
747  }
748  }
749  }
750 
752  {
753  if(writeWorldFile() == false)
754  {
755  status = false;
756  if(traceDebug())
757  {
759  << "Write of world file failed!" << endl;
760  }
761  }
762  }
763 
765  {
766  if (!writeHistogramFile())
767  {
768  status = false;
769  if(traceDebug())
770  {
772  << "Write of histogram file failed!" << endl;
773  }
774  }
775  }
776 
777  return status;
778 }
virtual bool writeHistogramFile()
Returns true on success, false on error.
virtual bool writeErsHeaderFile()
Will write an ER Mapper header file.
virtual bool writeWorldFile()
Will write a world file.
virtual bool writeReadmeFile()
Will write a readme file.
virtual bool writeTiffWorldFile()
Will write a world file.
bool theWriteEnviHeaderFlag
External meta data writer flags.
return status
virtual bool writeFgdcFile()
Will write an fgdc file.
virtual bool writeExternalGeometryFile()
Will write an external geometry file.
virtual bool writeJpegWorldFile()
Will write a jpeg world file.
virtual bool writeEnviHeaderFile()
Will write an envi header file.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ writeOverviewFile()

bool ossimImageFileWriter::writeOverviewFile ( ossim_uint16  tiff_compress_type = 1,
ossim_int32  jpeg_compress_quality = 75,
bool  includeR0 = false 
)
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.

Parameters
source_fileThe file to create overview from.
tiff_compress_typevalid types:
  • COMPRESSION_JPEG
  • COMPRESSION_DEFLATE
  • COMPRESSION_PACKBITS
  • COMPRESSION_NONE=1 (default)
jpeg_compress_qualityCompression quality. Only valid with COMPRESSION_JPEG. Range 1 to 100 with 100 being the best. default = 75
Returns
true on success, false on error.

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().

458 {
459  if(theFilename == "") return false;
460 
461  // Get an image handler for the source file.
464 
465  if (ih.valid() == false)
466  {
467  // Set the error...
468  return false;
469  }
470 
472 
473  if ( ob->setInputSource(ih.get()) )
474  {
475  // Give the listener to the overview builder if set.
477  {
479  }
480 
481  // Build a new file name for the overview.
482  ossimFilename overview_file = theFilename;
483  overview_file.setExtension(ossimString("ovr"));
484  ob->setCompressionType(tiff_compress_type);
485  ob->setJpegCompressionQuality(jpeg_compress_quality);
486  ob->setOutputFile(overview_file);
487  ob->setCopyAllFlag(includeR0);
488  ob->execute();
489 
490  // Remove the listener from the overview builder.
492  {
494  }
495  }
496 
497  return true;
498 }
virtual bool addListener(ossimListener *listener)
virtual bool execute()
Calls buildOverview.
virtual ossimImageHandler * open(const ossimFilename &fileName, bool trySuffixFirst=true, bool openOverview=true) const
open that takes a filename.
bool valid() const
Definition: ossimRefPtr.h:75
void setCopyAllFlag(bool flag)
Sets theCopyAllFlag.
void setJpegCompressionQuality(ossim_int32 quality)
Sets the compression quality for use when using a compression type of COMPRESSION_JPEG.
virtual bool setInputSource(ossimImageHandler *imageSource)
Sets the input to the builder.
void setCompressionType(ossim_uint16 compression_type)
Sets the compression type to use when building overviews.
virtual void setOutputFile(const ossimFilename &file)
Sets the output filename.
static ossimImageHandlerRegistry * instance()
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
ossimListener * theProgressListener
virtual bool removeListener(ossimListener *listener)

◆ writeReadmeFile()

bool ossimImageFileWriter::writeReadmeFile ( )
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.

622 {
623  if( (theFilename == "") || !theInputConnection ||
625  {
626  return false;
627  }
628 
629  // Make the file name.
630  ossimFilename outputFile = theFilename.noExtension();
631 
632  outputFile += "_readme.txt";
633 
634  // Make the writer.
636  new ossimReadmeFileWriter();
637 
638  // Set things up.
640  writer->initialize();
641  writer->setFilename(outputFile);
642  writer->setPixelType(thePixelType);
644 
645  // Write it to disk.
646  return writer->execute();
647 }
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
Sets the area of interest to write the meta data for.
ossimFilename noExtension() const
ossimIrect theAreaOfInterest
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimReadmeFileWriter
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
virtual void setPixelType(ossimPixelType pixelType)
Ossim uses a concept of "pixel is point" internally.
virtual void setFilename(const ossimFilename &file)
bool hasNans() const
Definition: ossimIrect.h:337

◆ writeStream()

bool ossimImageFileWriter::writeStream ( )
virtual

Method to write the image to a stream.

This implementation does nothing and returns false. Derived classed should implement as needed.

Returns
true on success, false on error.

Reimplemented in ossimPngWriter, ossimPdfWriter, ossimOpjJp2Writer, ossimKmlSuperOverlayWriter, ossimKakaduJp2Writer, ossimKakaduNitfWriter, ossimWriter, and ossimGeneralRasterWriter.

Definition at line 1166 of file ossimImageFileWriter.cpp.

1167 {
1168  //---
1169  // Not implemented in this class. Derived classed should implement if
1170  // they can write to a stream.
1171  //---
1172  return false;
1173 }

◆ writeTiffWorldFile()

bool ossimImageFileWriter::writeTiffWorldFile ( )
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().

650 {
651  if(theFilename == "")
652  {
653  return false;
654  }
655 
656  // Make the file name.
657  ossimFilename file = theFilename;
658  file.setExtension(ossimString("tfw"));
659 
660  return writeWorldFile(file);
661 }
virtual bool writeWorldFile()
Will write a world file.
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.

◆ writeWorldFile() [1/2]

bool ossimImageFileWriter::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.

Returns
true on success false on error.

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().

1583 {
1584  bool result = false;
1585 
1586  if( theFilename.size() )
1587  {
1588  // Make the file name.
1589  ossimFilename file = theFilename;
1590  ossimString ext = file.ext().downcase();
1591 
1592  ossimString wfExt = ""; // World file extension.
1593 
1594  if ( ( ext == "tif" ) || ( ext == "tiff" ) )
1595  {
1596  wfExt = "tfw";
1597  }
1598  else if ( ( ext == "jpg" ) || ( ext == "jpeg" ) )
1599  {
1600  wfExt = "jpw";
1601  }
1602  else if ( ext == "png" )
1603  {
1604  wfExt = "pgw";
1605  }
1606  else if ( ext == "sid" )
1607  {
1608  wfExt = "sdw";
1609  }
1610 
1611  if ( ext.size() )
1612  {
1613  file.setExtension(wfExt);
1614 
1615  result = writeWorldFile(file);
1616  }
1617  else
1618  {
1620  << "Could not derive world file extension for: " << theFilename << "\n";
1621  }
1622  }
1623 
1624  if ( !result )
1625  {
1627  << "Write of world file failed!\n";
1628  }
1629 
1630  return result;
1631 }
virtual bool writeWorldFile()
Will write a world file.
std::string::size_type size() const
Definition: ossimString.h:405
static ossimString downcase(const ossimString &aString)
Definition: ossimString.cpp:48
ossimString ext() const
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ writeWorldFile() [2/2]

bool ossimImageFileWriter::writeWorldFile ( const ossimFilename file)
protected

Common world file writer method.

Parameters
fileThe file to write like "foo.tfw" or "foo.jpw".
Returns
true on success, false on error.

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.

1634 {
1636  {
1637  return false;
1638  }
1639 
1640  // Make the writer.
1642 
1643  // Set things up.
1644  writer->connectMyInputTo(0, theInputConnection.get());
1645  writer->initialize();
1646  writer->setFilename(file);
1648  writer->setLinearUnits(theLinearUnits);
1649  writer->setPixelType(thePixelType);
1650 
1651  // Write it to disk.
1652  return writer->execute();
1653 }
virtual void setAreaOfInterest(const ossimIrect &areaOfInterest)
Sets the area of interest to write the meta data for.
ossimUnitType theLinearUnits
If not a geographic projection this allows the user to set the linear units of the output tag to be: ...
ossimIrect theAreaOfInterest
ossimWorldFileWriter
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimPixelType thePixelType
OSSIM_PIXEL_IS_POINT = 0, OSSIM_PIXEL_IS_AREA = 1.
void setLinearUnits(ossimUnitType units)
Sets the linear units of the output file to either feet, us_survey_feet, or meters.
virtual void setPixelType(ossimPixelType pixelType)
Ossim uses a concept of "pixel is point" internally.
virtual void setFilename(const ossimFilename &file)
bool hasNans() const
Definition: ossimIrect.h:337

Member Data Documentation

◆ theAutoCreateDirectoryFlag

bool ossimImageFileWriter::theAutoCreateDirectoryFlag
protected

Definition at line 478 of file ossimImageFileWriter.h.

◆ theFilename

ossimFilename ossimImageFileWriter::theFilename
protected

◆ theInputConnection

ossimRefPtr<ossimImageSourceSequencer> ossimImageFileWriter::theInputConnection
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().

◆ theLinearUnits

ossimUnitType ossimImageFileWriter::theLinearUnits
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().

◆ theOutputImageType

ossimString ossimImageFileWriter::theOutputImageType
protected

◆ theOverviewCompressType

ossim_uint16 ossimImageFileWriter::theOverviewCompressType
protected

Definition at line 462 of file ossimImageFileWriter.h.

Referenced by getOverviewCompressType(), and setOverviewCompressType().

◆ theOverviewJpegCompressQuality

ossim_int32 ossimImageFileWriter::theOverviewJpegCompressQuality
protected

◆ thePixelType

ossimPixelType ossimImageFileWriter::thePixelType
protected

◆ theProgressListener

ossimListener* ossimImageFileWriter::theProgressListener
protected

◆ theScaleToEightBitFlag

bool ossimImageFileWriter::theScaleToEightBitFlag
protected

◆ theViewController

ossimRefPtr<ossimViewController> ossimImageFileWriter::theViewController
protected

Definition at line 454 of file ossimImageFileWriter.h.

Referenced by connectInputEvent(), and disconnectInputEvent().

◆ theWriteEnviHeaderFlag

bool ossimImageFileWriter::theWriteEnviHeaderFlag
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().

◆ theWriteErsHeaderFlag

bool ossimImageFileWriter::theWriteErsHeaderFlag
protected

◆ theWriteExternalGeometryFlag

bool ossimImageFileWriter::theWriteExternalGeometryFlag
protected

◆ theWriteFgdcFlag

bool ossimImageFileWriter::theWriteFgdcFlag
protected

◆ theWriteHistogramFlag

bool ossimImageFileWriter::theWriteHistogramFlag
protected

◆ theWriteImageFlag

bool ossimImageFileWriter::theWriteImageFlag
protected

◆ theWriteJpegWorldFileFlag

bool ossimImageFileWriter::theWriteJpegWorldFileFlag
protected

◆ theWriteOverviewFlag

bool ossimImageFileWriter::theWriteOverviewFlag
protected

◆ theWriteReadmeFlag

bool ossimImageFileWriter::theWriteReadmeFlag
protected

◆ theWriteTiffWorldFileFlag

bool ossimImageFileWriter::theWriteTiffWorldFileFlag
protected

◆ theWriteWorldFileFlag

bool ossimImageFileWriter::theWriteWorldFileFlag
protected

The documentation for this class was generated from the following files: