|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
OSSIM nitf writer base class to hold methods common to all nitf writers. More...
#include <ossimNitfWriterBase.h>
Public Member Functions | |
| ossimNitfWriterBase () | |
| default constructor More... | |
| ossimNitfWriterBase (const ossimFilename &filename, ossimImageSource *inputSource) | |
| Constructor that takes filename and input source. More... | |
| virtual | ~ossimNitfWriterBase () |
| virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
| Set the properties. More... | |
| virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
| Gets a property. More... | |
| virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| Saves the state of the writer to kwl with prefix then calls base class ossimImageFileWriter::saveState. More... | |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| Initializes the state of the writer from kwl with prefix then calls base class ossimImageFileWriter::loadState. 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 void | addRegisteredTag (ossimRefPtr< ossimNitfRegisteredTag > registeredTag) |
| virtual void | addRegisteredTag (ossimRefPtr< ossimNitfRegisteredTag > registeredTag, bool unique) |
| virtual void | addRegisteredTag (ossimRefPtr< ossimNitfRegisteredTag > registeredTag, bool unique, const ossim_uint32 &ownerIndex, const ossimString &tagType) |
| virtual void | setFileHeaderV2_1 (ossimRefPtr< ossimNitfFileHeaderV2_1 >, bool preferSource=false) |
| virtual void | setImageHeaderV2_1 (ossimRefPtr< ossimNitfImageHeaderV2_1 >, bool preferSource=false) |
Public Member Functions inherited from ossimImageFileWriter | |
| ossimImageFileWriter (const ossimFilename &filename=ossimFilename(), ossimImageSource *inputSource=0, ossimObject *owner=0) | |
| The writer will own the sequencer. More... | |
| virtual | ~ossimImageFileWriter () |
| virtual ossimObject * | getObject () |
| virtual const ossimObject * | getObject () const |
| virtual void | getImageTypeList (std::vector< ossimString > &imageTypeList) const =0 |
| void getImageTypeList(std::vector<ossimString>& imageTypeList)const More... | |
| virtual bool | getOutputHasInternalOverviews (void) const |
| Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nitf_j2k. More... | |
| virtual bool | hasImageType (const ossimString &imageType) const |
| bool hasImageType(const ossimString& imageType) const More... | |
| virtual void | setTileSize (const ossimIpt &tileSize) |
| Sets the output image tiling size if supported by the writer. More... | |
| virtual bool | writeEnviHeaderFile () |
| Will write an envi header file. More... | |
| virtual bool | writeErsHeaderFile () |
| Will write an ER Mapper header file. More... | |
| virtual bool | writeExternalGeometryFile () |
| Will write an external geometry file. More... | |
| virtual bool | writeFgdcFile () |
| Will write an fgdc file. More... | |
| virtual bool | writeHistogramFile () |
| Returns true on success, false on error. More... | |
| virtual bool | writeJpegWorldFile () |
| Will write a jpeg world file. More... | |
| virtual bool | writeOverviewFile (ossim_uint16 tiff_compress_type=1, ossim_int32 jpeg_compress_quality=75, bool includeR0=false) |
| Write out an ossim overview file from the source_file. More... | |
| virtual bool | writeReadmeFile () |
| Will write a readme file. More... | |
| virtual bool | writeTiffWorldFile () |
| Will write a world file. More... | |
| virtual bool | writeWorldFile () |
| Will write a world file. More... | |
| virtual bool | writeMetaDataFiles () |
| Convenience method that calls meta data write methods that are flagged to be called. More... | |
| virtual void | setAreaOfInterest (const ossimIrect &inputRect) |
| virtual void | changeSequencer (ossimImageSourceSequencer *sequencer) |
| Sets the sequencer and connects it to the input of this. More... | |
| virtual ossimImageSourceSequencer * | getSequencer () |
| virtual void | initialize () |
| Initialize method. More... | |
| virtual bool | execute () |
| Calls: writeFile() writeMetaDataFiles() More... | |
| virtual bool | writeStream () |
| Method to write the image to a stream. More... | |
| virtual bool | setOutputStream (ossimRefPtr< ossimOStream > stream) |
| Sets the output stream to write to. More... | |
| virtual bool | setOutputStream (std::ostream &str) |
| tmp drb More... | |
| virtual ossimRefPtr< ossimOStream > | getOutputStream () const |
| Method to return the stream attached to output. More... | |
| virtual void | setPercentComplete (double percentComplete) |
| virtual void | setOutputImageType (ossim_int32 type) |
| virtual void | setOutputImageType (const ossimString &type) |
| virtual ossim_int32 | getOutputImageType () const |
| virtual ossimString | getOutputImageTypeString () const |
| virtual void | setOutputName (const ossimString &outputName) |
| virtual void | setFilename (const ossimFilename &file) |
| virtual const ossimFilename & | getFilename () const |
| virtual bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
| required to be overriden by derived classes More... | |
| virtual void | disconnectInputEvent (ossimConnectionEvent &event) |
| virtual void | connectInputEvent (ossimConnectionEvent &event) |
| virtual void | propertyEvent (ossimPropertyEvent &event) |
| virtual bool | getWriteImageFlag () const |
| Control flags... More... | |
| virtual bool | getWriteHistogramFlag () const |
| virtual bool | getWriteOverviewFlag () const |
| virtual bool | getScaleToEightBitFlag () const |
| virtual bool | getWriteEnviHeaderFlag () const |
| virtual bool | getWriteErsHeaderFlag () const |
| virtual bool | getWriteExternalGeometryFlag () const |
| virtual bool | getWriteFgdcFlag () const |
| virtual bool | getWriteJpegWorldFileFlag () const |
| virtual bool | getWriteReadmeFlag () const |
| virtual bool | getWriteTiffWorldFileFlag () const |
| virtual bool | getWriteWorldFileFlag () const |
| virtual void | setWriteImageFlag (bool flag) |
| virtual void | setWriteOverviewFlag (bool flag) |
| virtual void | setWriteHistogramFlag (bool flag) |
| virtual void | setScaleToEightBitFlag (bool flag) |
| virtual void | setWriteEnviHeaderFlag (bool flag) |
| virtual void | setWriteErsHeaderFlag (bool flag) |
| virtual void | setWriteExternalGeometryFlag (bool flag) |
| virtual void | setWriteFgdcFlag (bool flag) |
| virtual void | setWriteJpegWorldFile (bool flag) |
| virtual void | setWriteReadme (bool flag) |
| virtual void | setWriteTiffWorldFile (bool flag) |
| virtual void | setWriteWorldFile (bool flag) |
| virtual ossim_uint16 | getOverviewCompressType () const |
| virtual ossim_int32 | getOverviewJpegCompressQuality () const |
| virtual void | setOverviewCompressType (ossim_uint16 type) |
| virtual void | setOverviewJpegCompressQuality (ossim_int32 quality) |
| virtual bool | addListener (ossimListener *listener) |
| Overrides base "addListener" this will capture the pointer and then call the base class "addListener". More... | |
| virtual bool | removeListener (ossimListener *listener) |
| Overrides base "removeListener". More... | |
| virtual void | setPixelType (ossimPixelType type) |
| If "point" the coordinate tie points are relative to the center of the pixel. More... | |
| virtual void | setPixelType (const ossimString &type) |
| If "point" the coordinate tie points are relative to the center of the pixel. More... | |
| virtual ossimPixelType | getPixelType () const |
| virtual void | getPixelTypeString (ossimString &type) const |
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 ossimString & | getOutputName () |
| 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 ossimId & | getId () const |
| Will allow us to get this object's id. More... | |
| const ossimObject * | getOwner () const |
| Fetches the current owner, most likely a container but not limited to one. More... | |
| virtual void | changeOwner (ossimObject *owner) |
| Permits changing the object's owner. More... | |
| virtual void | setDescription (const ossimString &description) |
| virtual ossimString | getDescription () const |
| virtual bool | isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const |
| will check the direction specified to see if all slots are full. More... | |
| OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id)) | |
| OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
| OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
| OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className)) | |
| virtual ossim_int32 | findInputIndex (const ossimConnectableObject *object) |
| Return a valid index of the input list if the passed in object is found else return -1. More... | |
| virtual ossim_int32 | findInputIndex (const ossimId &id) |
| Return a valid index of the input list if the passed id is found else return -1. More... | |
| virtual ossim_int32 | findOutputIndex (const ossimConnectableObject *object) |
| Return a valid index of the output list if the passed in object is found else return -1. More... | |
| virtual ossim_int32 | findOutputIndex (const ossimId &id) |
| Return a valid index of the output list if the passed in object is found else return -1. More... | |
| virtual ossim_int32 | getMyInputIndexToConnectTo (ossimConnectableObject *object) const |
| Should return the first available index to connect to. More... | |
| virtual ossim_int32 | getMyOutputIndexToConnectTo (ossimConnectableObject *object) const |
| Should return the first available index to connect to. More... | |
| virtual bool | canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const |
| default implementation is to allow anyone to connect to us. More... | |
| virtual void | disconnect (ossimConnectableObject *object=0) |
| Will disconnect the object passed in. More... | |
| virtual void | disconnect (const ossimId &id) |
| Will disconnect the object passed in. More... | |
| virtual ossimRefPtr< ossimConnectableObject > | disconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true) |
| Will disconnect the object at the given input index and generate a connection event. More... | |
| virtual void | disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true) |
| Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More... | |
| virtual void | disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
| virtual ossimRefPtr< ossimConnectableObject > | disconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true) |
| Will disconnect the object at the given output index and generate a connection event. More... | |
| virtual void | disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true) |
| Will disconnect the output object. More... | |
| virtual void | disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
| virtual void | disconnectAllInputs () |
| Will disconnect all of the input objects. More... | |
| virtual void | disconnectAllOutputs () |
| Will disconnect all of the output objects. More... | |
| virtual ossim_int32 | connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
| Will try to connect this objects input to the passed in object. More... | |
| virtual ossim_int32 | connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
| Will connect the specified input to the passed in object. More... | |
| virtual bool | connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true) |
| virtual ossim_int32 | connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true) |
| Will try to connect this objects output to the passed in object. More... | |
| virtual bool | connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true) |
| virtual bool | connectInputList (ConnectableObjectList &inputList) |
| Will disconnect itself from all inputs and reset to the passed in input list. More... | |
| virtual bool | connectOutputList (ConnectableObjectList &outputList) |
| Will disconnect itself from all outputs and reset to the passed in output list. More... | |
| virtual ossim_uint32 | getNumberOfInputs () const |
| Returns the number of input objects. More... | |
| virtual ossim_uint32 | getNumberOfOutputs () const |
| Return the number of output objects. More... | |
| ossimConnectableObject * | getInput (ossim_uint32 index=0) |
| returns the object at the specified index. More... | |
| const ossimConnectableObject * | getInput (ossim_uint32 index=0) const |
| returns the object at the specified index. More... | |
| ossimConnectableObject * | getOutput (ossim_uint32 index=0) |
| returns the object at the specified index. More... | |
| const ossimConnectableObject * | getOutput (ossim_uint32 index=0) const |
| returns the object at the specified index. More... | |
| virtual void | setNumberOfInputs (ossim_int32 numberOfInputs) |
| Will set the number of inputs. More... | |
| virtual bool | getInputListIsFixedFlag () const |
| virtual bool | getOutputListIsFixedFlag () const |
| virtual void | setNumberOfOutputs (ossim_int32 numberOfInputs) |
| Will set the number of outputs. More... | |
| const ConnectableObjectList & | getInputList () const |
| const ConnectableObjectList & | getOutputList () const |
| ConnectableObjectList & | getInputList () |
| ConnectableObjectList & | getOutputList () |
| OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true)) | |
| OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true)) | |
| virtual void | propagateEventToOutputs (ossimEvent &event) |
| virtual void | propagateEventToInputs (ossimEvent &event) |
| virtual void | setProperty (const ossimString &name, const ossimString &value) |
| virtual ossim_uint32 | saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const |
| Save the state of all inputs to a keyword list. More... | |
| virtual bool | fillContainer (ossimConnectableContainer &container) |
| Inserts this object and all of its children and inputs into the container provided. More... | |
| bool | moveInputUp (const ossimId &id) |
| Moves the input connection matching id up one in the connection list. More... | |
| bool | moveInputDown (const ossimId &id) |
| Moves the input connection matching id down one in the connection list. More... | |
| bool | moveInputToTop (const ossimId &id) |
| Moves the input connection matching id to the top of the connection list. More... | |
| bool | moveInputToBottom (const ossimId &id) |
| Moves the input connection matching id to the bottom of the connection list. More... | |
| virtual void | accept (ossimVisitor &visitor) |
| We will add a visitor interface for all connectable objects. More... | |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimObject * | dup () const |
| virtual ossimString | getShortName () const |
| virtual ossimString | getLongName () const |
| virtual ossimString | getClassName () const |
| virtual RTTItypeid | getType () const |
| virtual bool | canCastTo (ossimObject *obj) const |
| virtual bool | canCastTo (const RTTItypeid &id) const |
| virtual bool | canCastTo (const ossimString &parentClassName) const |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
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 ossimListenerManager * | getManager () |
| 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 | |
| void | writeGeometry (ossimNitfImageHeaderV2_X *hdr, ossimImageSourceSequencer *seq) |
| Populates tags with geometry info from projection. More... | |
| void | addBlockaTag (ossimMapProjectionInfo &mapInfo, ossimNitfImageHeaderV2_X *hdr) |
| Adds the BLOCKA tag. More... | |
| void | addGeolobTag (const ossimMapProjection *mapProj, ossimNitfImageHeaderV2_X *hdr) |
| Adds the GEOLOB tag. More... | |
| void | addRpcbTag (const ossimIrect &rect, ossimProjection *proj, ossimNitfImageHeaderV2_X *hdr) |
| Adds the RPC00B tag. More... | |
| void | setComplexityLevel (std::streamoff, ossimNitfFileHeaderV2_X *hdr) |
| Sets the complexity level of theFileHeader. More... | |
| void | setComplexityLevel (ossimNitfFileHeaderV2_X *hdr, ossim_uint64 width=0, ossim_uint64 height=0) |
| virtual void | initializeDefaultsFromConfigFile (ossimNitfFileHeaderV2_X *fileHdr, ossimNitfImageHeaderV2_X *imgHdr) |
| Sets file header and image header defaults from config file if found in preferences. More... | |
Protected Member Functions inherited from ossimImageFileWriter | |
| 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 ossimSource & | operator= (const ossimSource &rhs) |
Protected Member Functions inherited from ossimConnectableObject | |
| ossimConnectableObject * | findObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor) |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Member Functions inherited from ossimListenerManager | |
| ossimListenerManager (const ossimListenerManager &rhs) | |
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 } |
OSSIM nitf writer base class to hold methods common to all nitf writers.
Definition at line 31 of file ossimNitfWriterBase.h.
| ossimNitfWriterBase::ossimNitfWriterBase | ( | ) |
default constructor
Definition at line 46 of file ossimNitfWriterBase.cpp.
| ossimNitfWriterBase::ossimNitfWriterBase | ( | const ossimFilename & | filename, |
| ossimImageSource * | inputSource | ||
| ) |
Constructor that takes filename and input source.
| filename | The output file name. |
| inputSource | The input source to write to file. |
Definition at line 54 of file ossimNitfWriterBase.cpp.
|
virtual |
Definition at line 63 of file ossimNitfWriterBase.cpp.
|
protected |
Adds the BLOCKA tag.
| mapInfo | ossimMapProjectionInfo to use to set tag with. |
| hdr | The header to write to. |
Definition at line 250 of file ossimNitfWriterBase.cpp.
References ossimMapProjectionInfo::getPixelType(), ossimMapProjectionInfo::linesPerImage(), ossimMapProjectionInfo::llGroundPt(), ossimMapProjectionInfo::lrGroundPt(), OSSIM_PIXEL_IS_AREA, ossimNitfBlockaTag::setBlockInstance(), ossimNitfBlockaTag::setFrfcLoc(), ossimNitfBlockaTag::setFrlcLoc(), ossimNitfBlockaTag::setLLines(), ossimNitfBlockaTag::setLrfcLoc(), ossimNitfBlockaTag::setLrlcLoc(), ossimMapProjectionInfo::setPixelType(), ossimMapProjectionInfo::ulGroundPt(), and ossimMapProjectionInfo::urGroundPt().
Referenced by writeGeometry().
|
protected |
Adds the GEOLOB tag.
This will only be added if projection is geographic.
| mapInfo | ossimMapProjectionInfo to use to set tag with. |
| hdr | The header to write to. |
Definition at line 301 of file ossimNitfWriterBase.cpp.
References ossimNitfImageHeader::addTag(), ossimRefPtr< T >::get(), ossimMapProjection::getDecimalDegreesPerPixel(), ossimMapProjection::getUlGpt(), ossimDpt::hasNans(), ossimGpt::hasNans(), ossimMapProjection::isGeographic(), ossimGpt::lat, ossimGpt::lon, ossimNitfGeolobTag::setDegreesPerPixelLat(), ossimNitfGeolobTag::setDegreesPerPixelLon(), ossimNitfGeolobTag::setLso(), ossimNitfGeolobTag::setPso(), true, ossimDpt::x, and ossimDpt::y.
Referenced by writeGeometry().
|
virtual |
Reimplemented in ossimNitf20Writer.
Definition at line 442 of file ossimNitfWriterBase.cpp.
|
virtual |
Reimplemented in ossimNitfWriter.
Definition at line 446 of file ossimNitfWriterBase.cpp.
|
virtual |
Reimplemented in ossimNitfWriter.
Definition at line 450 of file ossimNitfWriterBase.cpp.
|
protected |
Adds the RPC00B tag.
| rect | Requested rectangle of image to write. |
| proj | The output projection. |
Definition at line 347 of file ossimNitfWriterBase.cpp.
References ossimNitfImageHeader::addTag(), ossimRpcSolver::getNitfRpcBTag(), PTR_CAST, and ossimRpcSolver::solveCoefficients().
Referenced by writeGeometry().
|
virtual |
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions.
| imageType | string representing image type. |
Reimplemented from ossimImageFileWriter.
Reimplemented in ossimKakaduNitfWriter.
Definition at line 437 of file ossimNitfWriterBase.cpp.
|
virtual |
Gets a property.
| The | name of the property to get. |
Reimplemented from ossimImageFileWriter.
Reimplemented in ossimKakaduNitfWriter, ossimNitfWriter, and ossimNitf20Writer.
Definition at line 92 of file ossimNitfWriterBase.cpp.
Referenced by ossimNitfWriter::getProperty(), and ossimKakaduNitfWriter::getProperty().
|
virtual |
| propertyNames | Array to populate with property names. |
Reimplemented from ossimImageFileWriter.
Reimplemented in ossimKakaduNitfWriter, ossimNitfWriter, and ossimNitf20Writer.
Definition at line 117 of file ossimNitfWriterBase.cpp.
References ossimImageFileWriter::getPropertyNames().
Referenced by ossimNitfWriter::getPropertyNames(), and ossimKakaduNitfWriter::getPropertyNames().
|
protectedvirtual |
Sets file header and image header defaults from config file if found in preferences.
Definition at line 462 of file ossimNitfWriterBase.cpp.
References ossimKeywordlist::addFile(), ossimPreferences::instance(), ossimNitfFileHeaderV2_X::loadState(), and ossimNitfImageHeaderV2_X::loadState().
Referenced by ossimNitf20Writer::ossimNitf20Writer(), and ossimNitfWriter::ossimNitfWriter().
|
virtual |
Initializes the state of the writer from kwl with prefix then calls base class ossimImageFileWriter::loadState.
| kwl | Keyword list to initialize from. |
| prefix | Usually something like: "object2." |
Keywords picked up by loadState:
enable_rpcb_tag: true
enable_blocka_tag: true
Reimplemented from ossimImageFileWriter.
Reimplemented in ossimNitfWriter, ossimNitf20Writer, and ossimKakaduNitfWriter.
Definition at line 138 of file ossimNitfWriterBase.cpp.
References ossimKeywordlist::find().
Referenced by ossimKakaduNitfWriter::loadState(), ossimNitf20Writer::loadState(), and ossimNitfWriter::loadState().
|
virtual |
Saves the state of the writer to kwl with prefix then calls base class ossimImageFileWriter::saveState.
| kwl | Keyword list to save to. |
| prefix | Usually something like: "object2." |
Keywords saved by saveState:
enable_rpcb_tag: true
enable_blocka_tag: true
Reimplemented from ossimImageFileWriter.
Reimplemented in ossimNitfWriter, ossimNitf20Writer, and ossimKakaduNitfWriter.
Definition at line 128 of file ossimNitfWriterBase.cpp.
References ossimKeywordlist::add().
Referenced by ossimKakaduNitfWriter::saveState(), ossimNitf20Writer::saveState(), and ossimNitfWriter::saveState().
|
protected |
Sets the complexity level of theFileHeader.
| endPosition | This should be the end seek position of the file. |
Definition at line 388 of file ossimNitfWriterBase.cpp.
Referenced by ossimNitf20Writer::writeBlockBandSeparate(), ossimNitfWriter::writeBlockBandSeparate(), ossimNitf20Writer::writeBlockBandSequential(), and ossimNitfWriter::writeBlockBandSequential().
|
protected |
Definition at line 423 of file ossimNitfWriterBase.cpp.
References max, and ossimNitfFileHeaderV2_X::setComplexityLevel().
|
virtual |
Definition at line 454 of file ossimNitfWriterBase.cpp.
|
virtual |
Definition at line 458 of file ossimNitfWriterBase.cpp.
|
virtual |
Set the properties.
| property | The property to set. |
Reimplemented from ossimImageFileWriter.
Reimplemented in ossimKakaduNitfWriter, ossimNitfWriter, and ossimNitf20Writer.
Definition at line 67 of file ossimNitfWriterBase.cpp.
References ossimRefPtr< T >::valid().
Referenced by ossimNitfWriter::setProperty(), and ossimKakaduNitfWriter::setProperty().
|
protected |
Populates tags with geometry info from projection.
Will write an rpcb tag if theEnableRpcbTagFlag if set to true.
| hdr | The header to write to. |
| seq | The input connection or image source. |
Definition at line 170 of file ossimNitfWriterBase.cpp.
References addBlockaTag(), addGeolobTag(), addRpcbTag(), ossimImageSourceSequencer::getBoundingRect(), ossimImageGeometry::getCornerGpts(), ossimUtmProjection::getHemisphere(), ossimImageSource::getImageGeometry(), ossimImageGeometry::getProjection(), ossimUtmProjection::getZone(), ossimImageGeometry::hasProjection(), ossimMapProjectionInfo::llEastingNorthingPt(), ossimMapProjectionInfo::llGroundPt(), ossimMapProjectionInfo::lrEastingNorthingPt(), ossimMapProjectionInfo::lrGroundPt(), OSSIM_PIXEL_IS_AREA, PTR_CAST, ossimNitfImageHeaderV2_X::setGeographicLocationDms(), ossimMapProjectionInfo::setPixelType(), ossimNitfImageHeaderV2_X::setUtmNorth(), ossimNitfImageHeaderV2_X::setUtmSouth(), status, theEnableBlockaTagFlag, theEnableGeolobTagFlag, theEnableRpcbTagFlag, ossimImageFileWriter::theInputConnection, ossimMapProjectionInfo::ulEastingNorthingPt(), ossimMapProjectionInfo::ulGroundPt(), ossimMapProjectionInfo::urEastingNorthingPt(), ossimMapProjectionInfo::urGroundPt(), and ossimRefPtr< T >::valid().
|
protected |
If true user wants to set BLOCKA tag.
(DEFAULT = true) Currently only valid for map projected images.
Definition at line 197 of file ossimNitfWriterBase.h.
Referenced by writeGeometry().
|
protected |
If true user wants to set GEOLOG tag.
(DEFAULT = true) This will only be set if a geographic projection.
Definition at line 203 of file ossimNitfWriterBase.h.
Referenced by writeGeometry().
|
protected |
If true user wants to set RPC00B tag.
(DEFAULT = false)
Definition at line 191 of file ossimNitfWriterBase.h.
Referenced by writeGeometry().
1.8.14