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

#include <ossimKakaduNitfWriter.h>

Inheritance diagram for ossimKakaduNitfWriter:
ossimNitfWriterBase ossimImageFileWriter ossimImageWriter ossimProcessInterface ossimConnectableObjectListener ossimOutputSource ossimListener ossimSource ossimConnectableObject ossimErrorStatusInterface ossimObject ossimListenerManager ossimPropertyInterface ossimReferenced

Public Member Functions

 ossimKakaduNitfWriter ()
 default constructor More...
 
virtual ~ossimKakaduNitfWriter ()
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () const
 
virtual ossimString getClassName () const
 
virtual void getImageTypeList (std::vector< ossimString > &imageTypeList) const
 Appends this writer image types to list "imageTypeList". More...
 
virtual bool isOpen () const
 
virtual bool open ()
 
virtual void close ()
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 saves the state of the object. More...
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 Method to the load (recreate) the state of an object from a keyword list. More...
 
virtual void setProperty (ossimRefPtr< ossimProperty > property)
 Will set the property whose name matches the argument "property->getName()". More...
 
virtual ossimRefPtr< ossimPropertygetProperty (const ossimString &name) const
 
virtual void getPropertyNames (std::vector< ossimString > &propertyNames) const
 Pushes this's names onto the list of property names. More...
 
bool hasImageType (const ossimString &imageType) const
 bool hasImageType(const ossimString& imageType) const More...
 
virtual bool writeStream ()
 Method to write the image to a stream. More...
 
virtual bool setOutputStream (std::ostream &stream)
 Sets the output stream to write to. More...
 
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...
 
- Public Member Functions inherited from ossimNitfWriterBase
 ossimNitfWriterBase ()
 default constructor More...
 
 ossimNitfWriterBase (const ossimFilename &filename, ossimImageSource *inputSource)
 Constructor that takes filename and input source. More...
 
virtual ~ossimNitfWriterBase ()
 
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 ossimObjectgetObject ()
 
virtual const ossimObjectgetObject () const
 
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 setOutputStream (ossimRefPtr< ossimOStream > stream)
 Sets the output stream to write to. 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 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 open (const ossimString &outputName)
 
virtual const ossimStringgetOutputName ()
 
- 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 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

virtual bool writeFile ()
 Writes the file to disk or a stream. More...
 
- Protected Member Functions inherited from ossimNitfWriterBase
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...
 
- 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)
 

Private Attributes

ossimKakaduCompressorm_compressor
 
std::ostream * m_outputStream
 
bool m_ownsStreamFlag
 

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
}
 
- Protected Attributes inherited from ossimNitfWriterBase
bool theEnableRpcbTagFlag
 If true user wants to set RPC00B tag. More...
 
bool theEnableBlockaTagFlag
 If true user wants to set BLOCKA tag. More...
 
bool theEnableGeolobTagFlag
 If true user wants to set GEOLOG tag. More...
 
- Protected Attributes inherited from ossimImageFileWriter
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
 

Detailed Description

Definition at line 26 of file ossimKakaduNitfWriter.h.

Constructor & Destructor Documentation

◆ ossimKakaduNitfWriter()

ossimKakaduNitfWriter::ossimKakaduNitfWriter ( )

default constructor

Definition at line 60 of file ossimKakaduNitfWriter.cpp.

63  m_outputStream(0),
64  m_ownsStreamFlag(false)
65 {
66  if (traceDebug())
67  {
69  << "ossimKakaduNitfWriter::ossimKakaduNitfWriter entered"
70  << std::endl;
71 #if OSSIM_ID_ENABLED
73  << "OSSIM_ID: "
74  << OSSIM_ID
75  << std::endl;
76 #endif
77  }
78 
79  //---
80  // Since the internal nitf tags are not very accurate, write an external
81  // geometry out as default behavior. Users can disable this via the
82  // property interface or keyword list.
83  //---
85 
86  // Set the output image type in the base class.
88 }
virtual void setOutputImageType(ossim_int32 type)
ossimKakaduCompressor * m_compressor
ossimNitfWriterBase()
default constructor
virtual void setWriteExternalGeometryFlag(bool flag)
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual ossimString getShortName() const

◆ ~ossimKakaduNitfWriter()

ossimKakaduNitfWriter::~ossimKakaduNitfWriter ( )
virtual

Definition at line 90 of file ossimKakaduNitfWriter.cpp.

References close(), and m_compressor.

91 {
92  // This will flush stream and delete it if we own it.
93  close();
94 
95  if (m_compressor)
96  {
97  delete m_compressor;
98  m_compressor = 0;
99  }
100 }
ossimKakaduCompressor * m_compressor

Member Function Documentation

◆ close()

void ossimKakaduNitfWriter::close ( )
virtual

Generic interface to allow one to close a consumer. For displays this might minimize the window and free up internal pointers for file writers it will make sure the file stream is closed and flushed.

Implements ossimOutputSource.

Definition at line 480 of file ossimKakaduNitfWriter.cpp.

References m_outputStream, and m_ownsStreamFlag.

Referenced by open(), and ~ossimKakaduNitfWriter().

481 {
482  if (m_outputStream)
483  {
484  m_outputStream->flush();
485 
486  if (m_ownsStreamFlag)
487  {
488  delete m_outputStream;
489  m_outputStream = 0;
490  m_ownsStreamFlag = false;
491  }
492  }
493 }

◆ getClassName()

ossimString ossimKakaduNitfWriter::getClassName ( ) const
virtual
Returns
"ossimKakaduNitfReader"

Reimplemented from ossimObject.

Definition at line 112 of file ossimKakaduNitfWriter.cpp.

113 {
114  return ossimString("ossimKakaduNitfWriter");
115 }

◆ getExtension()

ossimString ossimKakaduNitfWriter::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 from ossimNitfWriterBase.

Definition at line 495 of file ossimKakaduNitfWriter.cpp.

496 {
497  return ossimString("ntf");
498 }

◆ getImageTypeList()

void ossimKakaduNitfWriter::getImageTypeList ( std::vector< ossimString > &  imageTypeList) const
virtual

Appends this writer image types to list "imageTypeList".

Parameters
imageTypeListstl::vector<ossimString> list to append to.

Implements ossimImageFileWriter.

Definition at line 505 of file ossimKakaduNitfWriter.cpp.

References getShortName().

506 {
507  imageTypeList.push_back(getShortName());
508 }
virtual ossimString getShortName() const

◆ getLongName()

ossimString ossimKakaduNitfWriter::getLongName ( ) const
virtual
Returns
"ossim kakadu nitf j2k writer"

Reimplemented from ossimObject.

Definition at line 107 of file ossimKakaduNitfWriter.cpp.

108 {
109  return ossimString("ossim kakadu nitf j2k writer");
110 }

◆ getOutputHasInternalOverviews()

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

Definition at line 500 of file ossimKakaduNitfWriter.cpp.

501 {
502  return true;
503 }

◆ getProperty()

ossimRefPtr< ossimProperty > ossimKakaduNitfWriter::getProperty ( const ossimString name) const
virtual
Parameters
nameName of property to return.
Returns
A pointer to a property object which matches "name".

Reimplemented from ossimNitfWriterBase.

Definition at line 533 of file ossimKakaduNitfWriter.cpp.

References ossimNitfWriterBase::getProperty(), ossimKakaduCompressor::getProperty(), and m_compressor.

535 {
537 
538  if ( !p )
539  {
541  }
542 
543  return p;
544 }
ossimKakaduCompressor * m_compressor
ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Gets a property.

◆ getPropertyNames()

void ossimKakaduNitfWriter::getPropertyNames ( std::vector< ossimString > &  propertyNames) const
virtual

Pushes this's names onto the list of property names.

Parameters
propertyNamesarray to add this's property names to.

Reimplemented from ossimNitfWriterBase.

Definition at line 546 of file ossimKakaduNitfWriter.cpp.

References ossimNitfWriterBase::getPropertyNames(), ossimKakaduCompressor::getPropertyNames(), and m_compressor.

548 {
549  m_compressor->getPropertyNames(propertyNames);
550 
552 }
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
ossimKakaduCompressor * m_compressor
void getPropertyNames(std::vector< ossimString > &propertyNames) const
Pushes this&#39;s names onto the list of property names.

◆ getShortName()

ossimString ossimKakaduNitfWriter::getShortName ( ) const
virtual
Returns
"ossim_kakadu_nitf_j2k_writer"

Reimplemented from ossimObject.

Definition at line 102 of file ossimKakaduNitfWriter.cpp.

Referenced by getImageTypeList(), and hasImageType().

103 {
104  return ossimString("ossim_kakadu_nitf_j2k");
105 }

◆ hasImageType()

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

Definition at line 510 of file ossimKakaduNitfWriter.cpp.

References getShortName().

511 {
512  bool result = false;
513  if ( (imageType == getShortName()) ||
514  (imageType == "image/ntf") )
515  {
516  result = true;
517  }
518  return result;
519 }
virtual ossimString getShortName() const

◆ isOpen()

bool ossimKakaduNitfWriter::isOpen ( ) const
virtual

Implements ossimOutputSource.

Definition at line 440 of file ossimKakaduNitfWriter.cpp.

References m_outputStream, and true.

441 {
442  return (m_outputStream) ? true : false;
443 }

◆ loadState()

bool ossimKakaduNitfWriter::loadState ( const ossimKeywordlist kwl,
const char *  prefix = 0 
)
virtual

Method to the load (recreate) the state of an object from a keyword list.

Return true if ok or false on error.

Reimplemented from ossimNitfWriterBase.

Definition at line 432 of file ossimKakaduNitfWriter.cpp.

References ossimNitfWriterBase::loadState(), ossimKakaduCompressor::loadState(), and m_compressor.

434 {
435  m_compressor->loadState(kwl, prefix);
436 
437  return ossimNitfWriterBase::loadState(kwl, prefix);
438 }
ossimKakaduCompressor * m_compressor
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::...
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.

◆ open()

bool ossimKakaduNitfWriter::open ( )
virtual

Allows a generic interface to open a consumer for writing. If you are a display writer then you would probably show the window or init the device context for writing.

Implements ossimOutputSource.

Definition at line 445 of file ossimKakaduNitfWriter.cpp.

References ossimString::c_str(), close(), m_outputStream, m_ownsStreamFlag, ossimString::size(), and ossimImageFileWriter::theFilename.

446 {
447  bool result = false;
448 
449  close();
450 
451  // Check for empty filenames.
452  if (theFilename.size())
453  {
454  std::ofstream* os = new std::ofstream();
455  os->open(theFilename.c_str(), ios::out | ios::binary);
456  if(os->is_open())
457  {
458  m_outputStream = os;
459  m_ownsStreamFlag = true;
460  result = true;
461  }
462  else
463  {
464  delete os;
465  os = 0;
466  }
467  }
468 
469  if (traceDebug())
470  {
472  << "ossimKakaduNitfWriter::open()\n"
473  << "File " << theFilename << (result ? " opened" : " not opened")
474  << std::endl;
475  }
476 
477  return result;
478 }
std::string::size_type size() const
Definition: ossimString.h:405
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
std::basic_ofstream< char > ofstream
Class for char output file streams.
Definition: ossimIosFwd.h:47
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ saveState()

bool ossimKakaduNitfWriter::saveState ( ossimKeywordlist kwl,
const char *  prefix = 0 
) const
virtual

saves the state of the object.

Reimplemented from ossimNitfWriterBase.

Definition at line 424 of file ossimKakaduNitfWriter.cpp.

References m_compressor, ossimNitfWriterBase::saveState(), and ossimKakaduCompressor::saveState().

426 {
427  m_compressor->saveState(kwl, prefix);
428 
429  return ossimNitfWriterBase::saveState(kwl, prefix);
430 }
ossimKakaduCompressor * m_compressor
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
saves the state of the object.
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::saveStat...

◆ setOutputStream()

bool ossimKakaduNitfWriter::setOutputStream ( std::ostream &  stream)
virtual

Sets the output stream to write to.

The stream will not be closed/deleted by this object.

Parameters
outputThe stream to write to.

Reimplemented from ossimImageFileWriter.

Definition at line 554 of file ossimKakaduNitfWriter.cpp.

References m_outputStream, and m_ownsStreamFlag.

555 {
557  {
558  delete m_outputStream;
559  }
560  m_outputStream = &stream;
561  m_ownsStreamFlag = false;
562  return true;
563 }

◆ setProperty()

void ossimKakaduNitfWriter::setProperty ( ossimRefPtr< ossimProperty property)
virtual

Will set the property whose name matches the argument "property->getName()".

Parameters
propertyObject containing property to set.

Reimplemented from ossimNitfWriterBase.

Definition at line 521 of file ossimKakaduNitfWriter.cpp.

References m_compressor, ossimNitfWriterBase::setProperty(), ossimKakaduCompressor::setProperty(), and ossimRefPtr< T >::valid().

522 {
523  if ( property.valid() )
524  {
525  if ( m_compressor->setProperty(property) == false )
526  {
527  // Not a compressor property.
529  }
530  }
531 }
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Set the properties.
ossimKakaduCompressor * m_compressor
bool valid() const
Definition: ossimRefPtr.h:75
virtual bool setProperty(ossimRefPtr< ossimProperty > property)
Will set the property whose name matches the argument "property->getName()".

◆ writeFile()

bool ossimKakaduNitfWriter::writeFile ( )
protectedvirtual

Writes the file to disk or a stream.

Returns
true on success, false on error.

Implements ossimImageFileWriter.

Definition at line 117 of file ossimKakaduNitfWriter.cpp.

References ossimErrorStatusInterface::getErrorStatus(), ossimErrorCodes::OSSIM_OK, ossimImageSourceSequencer::setTileSize(), ossimImageFileWriter::theInputConnection, and ossimRefPtr< T >::valid().

118 {
119  // This method is called from ossimImageFileWriter::execute().
120 
121  bool result = false;
122 
123  if( theInputConnection.valid() &&
125  {
126  // Set the tile size for all processes.
127  theInputConnection->setTileSize( DEFAULT_TILE_SIZE );
129 
130  //---
131  // Note only the master process used for writing...
132  //---
134  {
135  if (!isOpen())
136  {
137  open();
138  }
139 
140  if ( isOpen() )
141  {
142  result = writeStream();
143  }
144  }
145  else // Slave process.
146  {
147  // This will return after all tiles for this node have been processed.
149 
150  result = true;
151  }
152  }
153 
154  return result;
155 }
static const ossimErrorCode OSSIM_OK
bool valid() const
Definition: ossimRefPtr.h:75
virtual bool writeStream()
Method to write the image to a stream.
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
virtual bool isOpen() const
virtual ossimErrorCode getErrorStatus() const
virtual void setTileSize(const ossimIpt &tileSize)

◆ writeStream()

bool ossimKakaduNitfWriter::writeStream ( )
virtual

Method to write the image to a stream.

Returns
true on success, false on error.

Reimplemented from ossimImageFileWriter.

Definition at line 157 of file ossimKakaduNitfWriter.cpp.

158 {
159  static const char MODULE[] = "ossimKakaduNitfWriter::writeStream";
160 
161  if (traceDebug())
162  {
164  << MODULE << " entered..." << endl;
165  }
166 
168  {
169  return false;
170  }
171 
175 
177  {
178  //---
179  // Someone can set this through the generic setProperty interface.
180  // Unset, currently only supported in jp2 writer.
181  // Could be used here but I think we would have to update the
182  // nitf tags.
183  //---
185  }
186 
187  // Create the compressor. Can through an exception.
188  try
189  {
191  SCALAR,
192  BANDS,
194  DEFAULT_TILE_SIZE,
195  TILES,
196  false);
197  }
198  catch (const ossimException& e)
199  {
200  ossimNotify(ossimNotifyLevel_WARN) << e.what() << std::endl;
201  return false;
202  }
203 
204  std::streampos endOfFileHdrPos;
205  std::streampos endOfImgHdrPos;
206  std::streampos endOfFilePos;
207 
208  // Container record withing NITF file header.
209  ossimNitfImageInfoRecordV2_1 imageInfoRecord;
210 
211  // NITF file header.
213 
214  // Note the sub header length and image length will be set later.
215  fHdr->addImageInfoRecord(imageInfoRecord);
216 
217  fHdr->setDate(ossimDate());
218  fHdr->setTitle(ossimString("")); // ???
219 
220  // Write to stream capturing the stream position for later.
221  fHdr->writeStream(*m_outputStream);
222  endOfFileHdrPos = m_outputStream->tellp();
223 
224  // NITF image header.
226 
227  // Set the compression type:
228  iHdr->setCompression(ossimString("C8"));
229 
230  // Set the Image Magnification (IMAG) field.
231  iHdr->setImageMagnification(ossimString("1.0"));
232 
233  // Set the pixel type (PVTYPE) field.
235 
236  // Set the actual bits per pixel (ABPP) field.
238  iHdr->setActualBitsPerPixel( abpp );
239 
240  // Set the bits per pixel (NBPP) field.
242 
243  iHdr->setNumberOfBands(BANDS);
244  iHdr->setImageMode('B'); // IMODE field to blocked.
245 
246  if( (BANDS == 3) && (SCALAR == OSSIM_UCHAR) )
247  {
248  iHdr->setRepresentation("RGB");
249  iHdr->setCategory("VIS");
250  }
251  else if(BANDS == 1)
252  {
253  iHdr->setRepresentation("MONO");
254  iHdr->setCategory("MS");
255  }
256  else
257  {
258  iHdr->setRepresentation("MULTI");
259  iHdr->setCategory("MS");
260  }
261 
262  ossimNitfImageBandV2_1 bandInfo;
263  for(ossim_uint32 band = 0; band < BANDS; ++band)
264  {
265  std::ostringstream out;
266 
267  out << std::setfill('0')
268  << std::setw(2)
269  << band;
270 
271  bandInfo.setBandRepresentation(out.str().c_str());
272  iHdr->setBandInfo(band, bandInfo);
273  }
274 
277 
278  iHdr->setBlocksPerRow(outputTilesWide);
279  iHdr->setBlocksPerCol(outputTilesHigh);
280  iHdr->setNumberOfPixelsPerBlockRow(DEFAULT_TILE_SIZE.y);
281  iHdr->setNumberOfPixelsPerBlockCol(DEFAULT_TILE_SIZE.x);
284 
285  // Write the geometry info to the image header.
287 
288  // Add the J2KLRA TRE:
290  m_compressor->initialize( j2klraTag.get(), abpp );
291  j2klraTag->setBandsO( BANDS );
292  ossimRefPtr<ossimNitfRegisteredTag> tag = j2klraTag.get();
293  ossimNitfTagInformation tagInfo( tag );
294  iHdr->addTag( tagInfo );
295 
296  // Write the image header to stream capturing the stream position.
297  iHdr->writeStream(*m_outputStream);
298  endOfImgHdrPos = m_outputStream->tellp();
299 
300  if (traceDebug())
301  {
303  << MODULE << " DEBUG:"
304  << "\noutputTilesWide: " << outputTilesWide
305  << "\noutputTilesHigh: " << outputTilesHigh
306  << "\nnumberOfTiles: " << TILES
307  << "\nimageRect: " << theInputConnection->getAreaOfInterest()
308  << std::endl;
309  }
310 
311  // Tile loop in the line direction.
313  bool result = true;
314  for(ossim_uint32 y = 0; y < outputTilesHigh; ++y)
315  {
316  // Tile loop in the sample (width) direction.
317  for(ossim_uint32 x = 0; x < outputTilesWide; ++x)
318  {
319  // Grab the resampled tile.
321  if (t.valid() && ( t->getDataObjectStatus() != OSSIM_NULL ) )
322  {
323  if ( ! m_compressor->writeTile( *(t.get()) ) )
324  {
326  << MODULE << " ERROR:"
327  << "Error returned writing tile: "
328  << tileNumber
329  << std::endl;
330  result = false;
331  }
332  }
333  else
334  {
336  << MODULE << " ERROR:"
337  << "Error returned writing tile: " << tileNumber
338  << std::endl;
339  result = false;
340  }
341  if ( !result )
342  {
343  // This will bust out of both loops.
344  x = outputTilesWide;
345  y = outputTilesHigh;
346  }
347 
348  // Increment tile number for percent complete.
349  ++tileNumber;
350 
351  } // End of tile loop in the sample (width) direction.
352 
353  if (needsAborting())
354  {
355  setPercentComplete(100.0);
356  break;
357  }
358  else
359  {
360  ossim_float64 tile = tileNumber;
361  ossim_float64 numTiles = TILES;
362  setPercentComplete(tile / numTiles * 100.0);
363  }
364 
365  } // End of tile loop in the line (height) direction.
366 
367  m_compressor->finish();
368 
369  // Get the file length.
370  endOfFilePos = m_outputStream->tellp();
371 
372  //---
373  // Seek back to set some things that were not know until now and
374  // rewrite the nitf file and image header.
375  //---
376  m_outputStream->seekp(0, std::ios_base::beg);
377 
378  // Set the file length.
379  std::streamoff length = endOfFilePos;
380  fHdr->setFileLength(static_cast<ossim_uint64>(length));
381 
382  // Set the file header length.
383  length = endOfFileHdrPos;
384  fHdr->setHeaderLength(static_cast<ossim_uint64>(length));
385  // Set the image sub header length.
386  length = endOfImgHdrPos - endOfFileHdrPos;
387 
388  imageInfoRecord.setSubheaderLength(static_cast<ossim_uint64>(length));
389 
390  // Set the image length.
391  length = endOfFilePos - endOfImgHdrPos;
392  imageInfoRecord.setImageLength(static_cast<ossim_uint64>(length));
393 
394  fHdr->replaceImageInfoRecord(0, imageInfoRecord);
395 
396  setComplexityLevel(length, fHdr.get());
397 
398  // Rewrite the header.
399  fHdr->writeStream(*m_outputStream);
400 
401  // Set the compression rate now that the image size is known.
404  BANDS,
405  SCALAR,
406  static_cast<ossim_uint64>(length));
407  iHdr->setCompressionRateCode(comrat);
408 
409  // Rewrite the image header.
410  iHdr->writeStream(*m_outputStream);
411 
412  close();
413 
414  if (traceDebug())
415  {
417  << MODULE << " exit status = " << (result?"true":"false\n")
418  << std::endl;
419  }
420 
421  return result;
422 }
ossim_uint32 x
virtual void create(ossim::ostream *os, ossimScalarType scalar, ossim_uint32 bands, const ossimIrect &imageRect, const ossimIpt &tileSize, ossim_uint32 tilesToWrite, bool jp2)
Create method.
void setPixelType(const ossimString &pixelType=ossimString("INT"))
ossimKakaduCompressor * m_compressor
virtual void setFileLength(ossim_uint64 fileLength)
Sets file length (FL) field.
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
Definition: ossimIosFwd.h:35
void setNumberOfPixelsPerBlockRow(ossim_uint32 pixels)
void setActualBitsPerPixel(ossim_uint32 bitsPerPixel)
virtual void setNumberOfBands(ossim_uint32 nbands)
ossim_uint32 tileNumber
void initialize(ossimNitfJ2klraTag *j2klraTag, ossim_uint32 actualBitsPerPixel) const
Initializes the tag.
void setDate(const ossimLocalTm &d)
Sets field FDT.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
ossim_uint32 y
bool valid() const
Definition: ossimRefPtr.h:75
virtual void finish()
Finish method.
virtual void writeStream(std::ostream &out)
void setSubheaderLength(ossim_uint32 length)
ossim_uint32 height() const
Definition: ossimIrect.h:487
virtual ossimRefPtr< ossimImageData > getNextTile(ossim_uint32 resLevel=0)
static ossimString getNitfPixelType(ossimScalarType scalarType)
Get the nitf pixel type string from scalar type.
virtual void addTag(const ossimNitfTagInformation &tag, bool unique=true)
virtual void setHeaderLength(ossim_uint64 headerLength)
Sets header length (HL) field.
virtual void replaceImageInfoRecord(int i, const ossimNitfImageInfoRecordV2_1 &recordInfo)
virtual ossimDataObjectStatus getDataObjectStatus() const
OSSIM_DLL ossim_uint32 getActualBitsPerPixel(ossimScalarType scalarType)
Get actual bits per pixel for a given scalar type.
static ossimString getCompressionRate(const ossimIrect &rect, ossim_uint32 bands, ossimScalarType scalar, ossim_uint64 lengthInBytes)
Get compression rate (COMRAT) which is bits perpixel per band.
void setTitle(const ossimString &title)
void setBitsPerPixel(ossim_uint32 bitsPerPixel)
double ossim_float64
void setBlocksPerRow(ossim_uint32 blocks)
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
virtual const char * what() const
Returns the error message.
void setCategory(const ossimString &category)
ossimRefPtr< ossimImageSourceSequencer > theInputConnection
unsigned long long ossim_uint64
void setImageLength(ossim_uint64 length)
unsigned int ossim_uint32
void setCompressionRateCode(const ossimString &value)
bool getAlphaChannelFlag() const
Retrieve the writer&#39;s setting for whether or not to add an alpha channel to the output png image...
void setNumberOfPixelsPerBlockCol(ossim_uint32 pixels)
virtual void setAlphaChannelFlag(bool flag)
Set the writer to add an alpha channel to the output.
ossim_uint32 width() const
Definition: ossimIrect.h:500
virtual void setNumberOfRows(ossim_uint32 rows)
ossimScalarType
OSSIM_DLL ossim_uint32 getBitsPerPixel(ossimScalarType scalarType)
Get bits per pixel for a given scalar type.
virtual void addImageInfoRecord(const ossimNitfImageInfoRecordV2_1 &recordInfo)
virtual bool writeTile(ossimImageData &srcTile)
Write tile method.
virtual void setNumberOfCols(ossim_uint32 cols)
ossim_int64 getNumberOfTilesHorizontal() const
void setBlocksPerCol(ossim_uint32 blocks)
void setRepresentation(const ossimString &rep)
void writeGeometry(ossimNitfImageHeaderV2_X *hdr, ossimImageSourceSequencer *seq)
Populates tags with geometry info from projection.
ossim_int32 y
Definition: ossimIpt.h:142
void setComplexityLevel(std::streamoff, ossimNitfFileHeaderV2_X *hdr)
Sets the complexity level of theFileHeader.
virtual void writeStream(ossim::ostream &out)
const ossimIrect & getAreaOfInterest() const
ossim_int32 x
Definition: ossimIpt.h:141
virtual void setBandRepresentation(const ossimString &rep)
Sets the band representation.
void setCompression(const ossimString &value)
virtual void setPercentComplete(double percentComplete)
virtual void setImageMagnification(const ossimString &value)
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossim_int64 getNumberOfTilesVertical() const
8 bit unsigned iteger
virtual void setBandInfo(ossim_uint32 idx, const ossimNitfImageBandV2_1 &info)

Member Data Documentation

◆ m_compressor

ossimKakaduCompressor* ossimKakaduNitfWriter::m_compressor
private

◆ m_outputStream

std::ostream* ossimKakaduNitfWriter::m_outputStream
private

Definition at line 139 of file ossimKakaduNitfWriter.h.

Referenced by close(), isOpen(), open(), and setOutputStream().

◆ m_ownsStreamFlag

bool ossimKakaduNitfWriter::m_ownsStreamFlag
private

Definition at line 140 of file ossimKakaduNitfWriter.h.

Referenced by close(), open(), and setOutputStream().


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