OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
References: More...
#include <ossimPdfWriter.h>
Public Types | |
enum | ossimPdfImageType { UNKNOWN = 0, JPEG = 1, RAW = 2 } |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
![]() | |
enum | ossimProcessStatus { PROCESS_STATUS_UNKNOWN = 0, PROCESS_STATUS_EXECUTING = 1, PROCESS_STATUS_ABORTED = 2, PROCESS_STATUS_ABORT_REQUEST = 3, PROCESS_STATUS_NOT_EXECUTING = 4 } |
Public Member Functions | |
ossimPdfWriter () | |
default constructor More... | |
virtual | ~ossimPdfWriter () |
virtual destructor More... | |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getClassName () const |
virtual ossimString | getExtension () const |
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions. More... | |
virtual void | getImageTypeList (std::vector< ossimString > &imageTypeList) const |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const More... | |
virtual bool | isOpen () const |
virtual bool | open () |
Open method. More... | |
virtual void | close () |
Closes file. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
saves the state of the object. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Method to the load (recreate) the state of an object from a keyword list. More... | |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
Will set the property whose name matches the argument "property->getName()". More... | |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
Gets property for name. More... | |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
Pushes this's names onto the list of property names. More... | |
virtual 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... | |
![]() | |
ossimImageFileWriter (const ossimFilename &filename=ossimFilename(), ossimImageSource *inputSource=0, ossimObject *owner=0) | |
The writer will own the sequencer. More... | |
virtual | ~ossimImageFileWriter () |
virtual ossimObject * | getObject () |
virtual const ossimObject * | getObject () const |
virtual bool | getOutputHasInternalOverviews (void) const |
Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nitf_j2k. More... | |
virtual void | setTileSize (const ossimIpt &tileSize) |
Sets the output image tiling size if supported by the writer. More... | |
virtual bool | writeEnviHeaderFile () |
Will write an envi header file. More... | |
virtual bool | writeErsHeaderFile () |
Will write an ER Mapper header file. More... | |
virtual bool | writeExternalGeometryFile () |
Will write an external geometry file. More... | |
virtual bool | writeFgdcFile () |
Will write an fgdc file. More... | |
virtual bool | writeHistogramFile () |
Returns true on success, false on error. More... | |
virtual bool | writeJpegWorldFile () |
Will write a jpeg world file. More... | |
virtual bool | writeOverviewFile (ossim_uint16 tiff_compress_type=1, ossim_int32 jpeg_compress_quality=75, bool includeR0=false) |
Write out an ossim overview file from the source_file. More... | |
virtual bool | writeReadmeFile () |
Will write a readme file. More... | |
virtual bool | writeTiffWorldFile () |
Will write a world file. More... | |
virtual bool | writeWorldFile () |
Will write a world file. More... | |
virtual bool | writeMetaDataFiles () |
Convenience method that calls meta data write methods that are flagged to be called. More... | |
virtual void | setAreaOfInterest (const ossimIrect &inputRect) |
virtual void | changeSequencer (ossimImageSourceSequencer *sequencer) |
Sets the sequencer and connects it to the input of this. More... | |
virtual ossimImageSourceSequencer * | getSequencer () |
virtual void | initialize () |
Initialize method. More... | |
virtual bool | execute () |
Calls: writeFile() writeMetaDataFiles() More... | |
virtual bool | setOutputStream (ossimRefPtr< ossimOStream > stream) |
Sets the output stream to write to. More... | |
virtual ossimRefPtr< ossimOStream > | getOutputStream () const |
Method to return the stream attached to output. More... | |
virtual void | setPercentComplete (double percentComplete) |
virtual void | setOutputImageType (ossim_int32 type) |
virtual void | setOutputImageType (const ossimString &type) |
virtual ossim_int32 | getOutputImageType () const |
virtual ossimString | getOutputImageTypeString () const |
virtual void | setOutputName (const ossimString &outputName) |
virtual void | setFilename (const ossimFilename &file) |
virtual const ossimFilename & | getFilename () const |
virtual bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
required to be overriden by derived classes More... | |
virtual void | disconnectInputEvent (ossimConnectionEvent &event) |
virtual void | connectInputEvent (ossimConnectionEvent &event) |
virtual void | propertyEvent (ossimPropertyEvent &event) |
virtual bool | getWriteImageFlag () const |
Control flags... More... | |
virtual bool | getWriteHistogramFlag () const |
virtual bool | getWriteOverviewFlag () const |
virtual bool | getScaleToEightBitFlag () const |
virtual bool | getWriteEnviHeaderFlag () const |
virtual bool | getWriteErsHeaderFlag () const |
virtual bool | getWriteExternalGeometryFlag () const |
virtual bool | getWriteFgdcFlag () const |
virtual bool | getWriteJpegWorldFileFlag () const |
virtual bool | getWriteReadmeFlag () const |
virtual bool | getWriteTiffWorldFileFlag () const |
virtual bool | getWriteWorldFileFlag () const |
virtual void | setWriteImageFlag (bool flag) |
virtual void | setWriteOverviewFlag (bool flag) |
virtual void | setWriteHistogramFlag (bool flag) |
virtual void | setScaleToEightBitFlag (bool flag) |
virtual void | setWriteEnviHeaderFlag (bool flag) |
virtual void | setWriteErsHeaderFlag (bool flag) |
virtual void | setWriteExternalGeometryFlag (bool flag) |
virtual void | setWriteFgdcFlag (bool flag) |
virtual void | setWriteJpegWorldFile (bool flag) |
virtual void | setWriteReadme (bool flag) |
virtual void | setWriteTiffWorldFile (bool flag) |
virtual void | setWriteWorldFile (bool flag) |
virtual ossim_uint16 | getOverviewCompressType () const |
virtual ossim_int32 | getOverviewJpegCompressQuality () const |
virtual void | setOverviewCompressType (ossim_uint16 type) |
virtual void | setOverviewJpegCompressQuality (ossim_int32 quality) |
virtual bool | addListener (ossimListener *listener) |
Overrides base "addListener" this will capture the pointer and then call the base class "addListener". More... | |
virtual bool | removeListener (ossimListener *listener) |
Overrides base "removeListener". More... | |
virtual void | setPixelType (ossimPixelType type) |
If "point" the coordinate tie points are relative to the center of the pixel. More... | |
virtual void | setPixelType (const ossimString &type) |
If "point" the coordinate tie points are relative to the center of the pixel. More... | |
virtual ossimPixelType | getPixelType () const |
virtual void | getPixelTypeString (ossimString &type) const |
![]() | |
ossimImageWriter (ossimObject *owner=NULL) | |
ossimImageWriter (ossimObject *owner, ossim_uint32 numberOfInputs, ossim_uint32 numberOfOutputs, bool inputListIsFixed, bool outputListIsFixed) | |
virtual | ~ossimImageWriter () |
virtual bool | setViewingRect (const ossimIrect &aRect) |
virtual ossimIrect | getAreaOfInterest () const |
![]() | |
ossimOutputSource (ossimObject *owner=NULL) | |
ossimOutputSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimOutputSource () |
virtual bool | open (const ossimString &outputName) |
virtual const ossimString & | getOutputName () |
![]() | |
ossimSource (ossimObject *owner=0) | |
ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimSource () |
virtual bool | isSourceEnabled () const |
virtual void | enableSource () |
virtual void | disableSource () |
virtual bool | getEnableFlag () const |
virtual void | setEnableFlag (bool flag) |
virtual bool | isInitialized () const |
virtual void | setInitializedFlag (bool flag) |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
![]() | |
ossimConnectableObject (ossimObject *owner=0) | |
Base constructor of this object. More... | |
ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimConnectableObject () |
void | setId (const ossimId &id) |
All connectable objects will have id's. More... | |
const ossimId & | getId () const |
Will allow us to get this object's id. More... | |
const ossimObject * | getOwner () const |
Fetches the current owner, most likely a container but not limited to one. More... | |
virtual void | changeOwner (ossimObject *owner) |
Permits changing the object's owner. More... | |
virtual void | setDescription (const ossimString &description) |
virtual ossimString | getDescription () const |
virtual bool | isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const |
will check the direction specified to see if all slots are full. More... | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className)) | |
virtual ossim_int32 | findInputIndex (const ossimConnectableObject *object) |
Return a valid index of the input list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findInputIndex (const ossimId &id) |
Return a valid index of the input list if the passed id is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimConnectableObject *object) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimId &id) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | getMyInputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual ossim_int32 | getMyOutputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual bool | canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const |
default implementation is to allow anyone to connect to us. More... | |
virtual void | disconnect (ossimConnectableObject *object=0) |
Will disconnect the object passed in. More... | |
virtual void | disconnect (const ossimId &id) |
Will disconnect the object passed in. More... | |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given input index and generate a connection event. More... | |
virtual void | disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More... | |
virtual void | disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given output index and generate a connection event. More... | |
virtual void | disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the output object. More... | |
virtual void | disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual void | disconnectAllInputs () |
Will disconnect all of the input objects. More... | |
virtual void | disconnectAllOutputs () |
Will disconnect all of the output objects. More... | |
virtual ossim_int32 | connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will try to connect this objects input to the passed in object. More... | |
virtual ossim_int32 | connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will connect the specified input to the passed in object. More... | |
virtual bool | connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true) |
virtual ossim_int32 | connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true) |
Will try to connect this objects output to the passed in object. More... | |
virtual bool | connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true) |
virtual bool | connectInputList (ConnectableObjectList &inputList) |
Will disconnect itself from all inputs and reset to the passed in input list. More... | |
virtual bool | connectOutputList (ConnectableObjectList &outputList) |
Will disconnect itself from all outputs and reset to the passed in output list. More... | |
virtual ossim_uint32 | getNumberOfInputs () const |
Returns the number of input objects. More... | |
virtual ossim_uint32 | getNumberOfOutputs () const |
Return the number of output objects. More... | |
ossimConnectableObject * | getInput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getInput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
ossimConnectableObject * | getOutput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getOutput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
virtual void | setNumberOfInputs (ossim_int32 numberOfInputs) |
Will set the number of inputs. More... | |
virtual bool | getInputListIsFixedFlag () const |
virtual bool | getOutputListIsFixedFlag () const |
virtual void | setNumberOfOutputs (ossim_int32 numberOfInputs) |
Will set the number of outputs. More... | |
const ConnectableObjectList & | getInputList () const |
const ConnectableObjectList & | getOutputList () const |
ConnectableObjectList & | getInputList () |
ConnectableObjectList & | getOutputList () |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true)) | |
virtual void | propagateEventToOutputs (ossimEvent &event) |
virtual void | propagateEventToInputs (ossimEvent &event) |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossim_uint32 | saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const |
Save the state of all inputs to a keyword list. More... | |
virtual bool | fillContainer (ossimConnectableContainer &container) |
Inserts this object and all of its children and inputs into the container provided. More... | |
bool | moveInputUp (const ossimId &id) |
Moves the input connection matching id up one in the connection list. More... | |
bool | moveInputDown (const ossimId &id) |
Moves the input connection matching id down one in the connection list. More... | |
bool | moveInputToTop (const ossimId &id) |
Moves the input connection matching id to the top of the connection list. More... | |
bool | moveInputToBottom (const ossimId &id) |
Moves the input connection matching id to the bottom of the connection list. More... | |
virtual void | accept (ossimVisitor &visitor) |
We will add a visitor interface for all connectable objects. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimListenerManager () | |
virtual | ~ossimListenerManager () |
virtual void | fireEvent (ossimEvent &event) |
virtual bool | findListener (ossimListener *listener) |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
![]() | |
ossimProcessInterface () | |
virtual | ~ossimProcessInterface () |
virtual void | abort () |
bool | needsAborting () const |
bool | isAbortRequested () const |
bool | isAborted () const |
bool | isExecuting () const |
ossimProcessStatus | getProcessStatus () const |
virtual void | setProcessStatus (ossimProcessStatus processStatus) |
virtual double | getPercentComplete () const |
virtual ossimListenerManager * | getManager () |
void | enableEvents () |
void | disableEvents () |
void | setCurrentMessage (const ossimString &message) |
virtual std::ostream & | print (std::ostream &out) const |
![]() | |
ossimConnectableObjectListener () | |
virtual | ~ossimConnectableObjectListener () |
virtual void | processEvent (ossimEvent &event) |
ProcessEvent. More... | |
virtual void | objectDestructingEvent (ossimObjectDestructingEvent &) |
virtual void | connectionEvent (ossimConnectionEvent &) |
virtual void | disconnectOutputEvent (ossimConnectionEvent &) |
virtual void | connectOutputEvent (ossimConnectionEvent &) |
virtual void | addObjectEvent (ossimContainerEvent &) |
virtual void | removeObjectEvent (ossimContainerEvent &) |
virtual void | containerEvent (ossimContainerEvent &) |
virtual void | refreshEvent (ossimRefreshEvent &) |
![]() | |
ossimListener () | |
virtual | ~ossimListener () |
void | enableListener () |
void | disableListener () |
void | setListenerEnableFlag (bool flag) |
bool | isListenerEnabled () const |
bool | getListenerEnableFlag () const |
Private Member Functions | |
virtual bool | writeFile () |
Writes the file to disk or a stream. More... | |
void | writeHeader (std::ostream *str) |
Writes header. More... | |
void | writeCatalog (std::ostream *str, std::vector< std::streamoff > &xref) |
Writes Catalog object. More... | |
void | writePages (std::ostream *str, std::vector< std::streamoff > &xref) |
Writes Outlines object. More... | |
void | writeInfo (std::ostream *str, std::vector< std::streamoff > &xref) |
Writes document infomation dictionary. More... | |
bool | writeImage (std::ostream *str) |
Writes the image dictionary and associated objects. More... | |
void | writeJpegTile (std::ostream *str, std::vector< std::streamoff > &xref, ossimImageData *id, const ossimIrect &aoi, ossimIrect &outputTileRect) |
Write a JPEG-compresses the raster tile buffer to the output stream provided. More... | |
void | writeRawTile (std::ostream *str, std::vector< std::streamoff > &xref, ossimImageData *id, const ossimIrect &aoi, ossimIrect &outputTileRect) |
Write raw raster tile buffer to the output stream provided. More... | |
void | writeXref (std::ostream *str, const std::vector< std::streamoff > &xref) |
Writes Cross Reference(xref) section. More... | |
void | writeTrailer (std::ostream *str, ossim_uint32 entrySize, std::streamoff xrefOffset) |
Writes trailer. More... | |
void | setupInputChain () |
Writes "dummy" or blank object just to keep object references in line. More... | |
ossimPdfImageType | getImageType () const |
Gets the enumerated value of IMAGE_TYPE_KW lookup. More... | |
void | getImageType (std::string &type) const |
Initializes image type from IMAGE_TYPE_KW lookup. More... | |
void | addOption (const std::string &key, const std::string &value) |
Adds option to m_kwl with mutex lock. More... | |
void | getLowerLeftPageOffset (const ossimIrect &aoi, ossimIpt &offset) const |
Gets the page size. More... | |
void | getLgiDict (ossimImageGeometry *geom, const ossimIrect &aoi, std::string &s) const |
Get the LGIDict string. More... | |
void | getLgiDictProjection (ossimImageGeometry *geom, std::string &s) const |
Gets projection part of LGIDict string. More... | |
void | getLgiDictCtm (ossimImageGeometry *geom, const ossimIrect &aoi, std::string &s) const |
Gets Coordinate Transformation Matrix(CTM) part of LGIDict string from geom. More... | |
void | getLgiDictDatum (ossimImageGeometry *geom, std::string &s) const |
Gets datum part of LGIDict string from geom. More... | |
void | getLgiDictDescription (ossimImageGeometry *geom, std::string &s) const |
Gets description part of LGIDict string from geom. More... | |
void | getLgiDictProjectionType (ossimImageGeometry *geom, std::string &s) const |
Gets neatline part of LGIDict string from geom. More... | |
ossim_uint32 | getEpsgCode (const ossimImageGeometry *geom) const |
Gets the EPSG/PCS code from geometry. More... | |
void | getTitle (std::string &s) const |
Gets the Title. More... | |
void | getAuthor (std::string &s) const |
Gets the Author. More... | |
void | getSubject (std::string &s) const |
Gets the Subject. More... | |
void | getKeywords (std::string &s) const |
Gets the Keywords. More... | |
void | getCreator (std::string &s) const |
Gets the Creator. More... | |
void | getProducer (std::string &s) const |
Gets the Producer. More... | |
void | getCreationDate (std::string &s) const |
Gets the Producer. More... | |
void | getModDate (std::string &s) const |
Gets the Producer. More... | |
void | getGmtDate (std::string &s) const |
Get's the date in format of: (D:YYYYMMDDHHmmSSZ00'00') More... | |
void | getTileSize (std::string &s) const |
Gets tiles size as string. More... | |
void | getTileSize (ossimIpt &tileSize) const |
Gets Tile size as integer point. More... | |
std::string | getTileString (ossim_uint32 x, ossim_uint32 y) const |
Private Attributes | |
std::ostream * | m_str |
bool | m_ownsStream |
ossimRefPtr< ossimConnectableObject > | m_savedInput |
Holds the origin end of the chain connected to theInputConnection. More... | |
ossimRefPtr< ossimKeywordlist > | m_kwl |
Holds all options in key, value pair map. More... | |
std::mutex | m_mutex |
References:
Adobe PDF Reference sixth edition, Version 1.7 November 2006 pdf_reference_1-7.pdf
PDF Georegistration Encoding Best Practice Version (2.2 OGC 08-139r3) 08-139r3_PDF_Geo-registration_Encoding_Best_Practice_Version_2.2.pdf
Definition at line 45 of file ossimPdfWriter.h.
Enumerator | |
---|---|
UNKNOWN | |
JPEG | |
RAW |
Definition at line 49 of file ossimPdfWriter.h.
ossimPdfWriter::ossimPdfWriter | ( | ) |
default constructor
|
virtual |
virtual destructor
|
private |
Adds option to m_kwl with mutex lock.
key | |
value |
Definition at line 1405 of file ossimPdfWriter.cpp.
References ossimKeywordlist::addPair(), m_kwl, m_mutex, and ossimRefPtr< T >::valid().
Referenced by setProperty().
|
virtual |
Closes file.
Implements ossimOutputSource.
Definition at line 1082 of file ossimPdfWriter.cpp.
References m_ownsStream, and m_str.
Referenced by open().
|
private |
Gets the Author.
Looks in m_kwl for options keyword: "Author"
Defaults to "ossim" if not found.
s | Initialed by this. |
Definition at line 1761 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by getProperty().
|
virtual |
Reimplemented from ossimObject.
|
private |
Gets the Producer.
Looks in m_kwl for options keyword: "CreationDate"
Defaults to current time if not found.
s | Initialed by this. |
NOTE: This is a formatted string in the form of: D:YYYYMMDDHHmmSSOHH'mm'
Definition at line 1806 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), getGmtDate(), and m_kwl.
Referenced by getProperty().
|
private |
Gets the Creator.
Looks in m_kwl for options keyword: "Creator"
Defaults to "ossim" if not found.
s | Initialed by this. |
Definition at line 1784 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by getProperty().
|
private |
Gets the EPSG/PCS code from geometry.
geom | Image geometry. |
Definition at line 1703 of file ossimPdfWriter.cpp.
References ossimRefPtr< T >::get(), ossimMapProjection::getPcsCode(), ossimImageGeometry::getProjection(), and ossimRefPtr< T >::valid().
|
virtual |
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions.
imageType | string representing image type. |
Reimplemented from ossimImageFileWriter.
Definition at line 1102 of file ossimPdfWriter.cpp.
|
private |
Get's the date in format of: (D:YYYYMMDDHHmmSSZ00'00')
s | Initialed by this. |
NOTE: Date code is NOT thread safe.
Definition at line 1828 of file ossimPdfWriter.cpp.
Referenced by getCreationDate(), and getModDate().
|
private |
Gets the enumerated value of IMAGE_TYPE_KW lookup.
This is the image type of the stream embedded in the pdf. Default "raw" if not found.
Definition at line 1369 of file ossimPdfWriter.cpp.
References ossimString::downcase(), JPEG, ossimNotify(), ossimNotifyLevel_WARN, RAW, ossimString::string(), and UNKNOWN.
Referenced by getProperty(), and while().
|
private |
Initializes image type from IMAGE_TYPE_KW lookup.
This is the image type of the stream embedded in the pdf. Default "raw" if not found.
type | Initialized by this. |
Definition at line 1396 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), ossimKeywordNames::IMAGE_TYPE_KW, and m_kwl.
|
virtual |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
Appends this writer image types to list "imageTypeList".
This writer only has one type "pdf".
imageTypeList | stl::vector<ossimString> list to append to. |
Implements ossimImageFileWriter.
Definition at line 1097 of file ossimPdfWriter.cpp.
|
private |
Gets the Keywords.
Looks in m_kwl for options keyword: "Keywords"
Default: No default, empty string if not found.
s | Initialed by this. |
Definition at line 1778 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by getProperty().
|
private |
Get the LGIDict string.
geom | Image geometry. |
aoi | Area of interest. |
s | Initialized by this. |
Definition at line 1451 of file ossimPdfWriter.cpp.
References getLgiDictCtm(), getLgiDictDescription(), getLgiDictProjection(), and ossimIrect::hasNans().
|
private |
Gets Coordinate Transformation Matrix(CTM) part of LGIDict string from geom.
geom | Image geometry. |
aoi | Area of interest. |
s | Initialized by this or cleared on error. |
Definition at line 1605 of file ossimPdfWriter.cpp.
References ossimRefPtr< T >::get(), ossimImageGeometry::getDegreesPerPixel(), ossimImageGeometry::getProjection(), ossimDpt::hasNans(), ossimMapProjection::isGeographic(), ossim::isnan(), ossimGpt::lat, ossimIrect::ll(), ossimImageGeometry::localToWorld(), ossimGpt::lon, ossimDpt::makeNan(), ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by getLgiDict().
|
private |
Gets datum part of LGIDict string from geom.
geom | Image geometry. |
s | Initialized by this or cleared on error. |
Definition at line 1506 of file ossimPdfWriter.cpp.
References ossimDatum::code(), ossimImageGeometry::getAsMapProjection(), ossimMapProjection::getDatum(), ossimString::string(), and ossimRefPtr< T >::valid().
Referenced by getLgiDictProjection().
|
private |
Gets description part of LGIDict string from geom.
geom | Image geometry. |
s | Initialized by this or cleared on error. |
Definition at line 1527 of file ossimPdfWriter.cpp.
References ossimDatum::code(), ossimImageGeometry::getAsMapProjection(), ossimMapProjection::getDatum(), ossimString::string(), and ossimRefPtr< T >::valid().
Referenced by getLgiDict(), and getLgiDictProjection().
|
private |
Gets projection part of LGIDict string.
geom | Image geometry. |
s | Initialized by this. |
Definition at line 1569 of file ossimPdfWriter.cpp.
References getLgiDictDatum(), getLgiDictDescription(), and getLgiDictProjectionType().
Referenced by getLgiDict().
|
private |
Gets neatline part of LGIDict string from geom.
geom | Image geometry. |
s | Initialized by this or cleared on error. Gets projection type part of LGIDict string from geom. |
geom | Image geometry. |
s | Initialized by this or cleared on error. |
Definition at line 1663 of file ossimPdfWriter.cpp.
References ossimRefPtr< T >::get(), ossimImageGeometry::getAsMapProjection(), ossimUtmProjection::getHemisphere(), ossimUtmProjection::getZone(), ossimMapProjection::isGeographic(), and ossimRefPtr< T >::valid().
Referenced by getLgiDictProjection().
|
virtual |
Reimplemented from ossimObject.
|
private |
Gets the page size.
Takes into account image width, height, and annotations.
width | Width of image. |
height | Height of image. |
size | Initialized by this. Gets page offset for image from lower left corner of media box. |
aoi | Area of interest. |
offset | Initialized by this. |
Definition at line 1432 of file ossimPdfWriter.cpp.
References ossimIrect::hasNans(), ossimIpt::x, and ossimIpt::y.
Referenced by if().
|
private |
Gets the Producer.
Looks in m_kwl for options keyword: "ModDate"
Defaults to current time if not found.
s | Initialed by this. |
NOTE: This is a formatted string in the form of: D:YYYYMMDDHHmmSSOHH'mm'
Definition at line 1817 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), getGmtDate(), and m_kwl.
Referenced by getProperty().
|
private |
Gets the Producer.
Looks in m_kwl for options keyword: "Producer"
Defaults to "ossim" if not found.
s | Initialed by this. |
Definition at line 1795 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
virtual |
Gets property for name.
name | Name of property to return. |
Reimplemented from ossimImageFileWriter.
Definition at line 1146 of file ossimPdfWriter.cpp.
References ossimRefPtr< T >::get(), getAuthor(), getCreationDate(), getCreator(), getImageType(), getKeywords(), getModDate(), ossimImageFileWriter::getProperty(), getSubject(), getTileSize(), ossimKeywordNames::IMAGE_TYPE_KW, ossimKeywordNames::OUTPUT_TILE_SIZE_KW, ossimString::size(), and ossimString::string().
|
virtual |
Pushes this's names onto the list of property names.
propertyNames | array to add this's property names to. |
Reimplemented from ossimImageFileWriter.
Definition at line 1249 of file ossimPdfWriter.cpp.
References ossimImageFileWriter::getPropertyNames(), ossimKeywordNames::IMAGE_TYPE_KW, and ossimKeywordNames::OUTPUT_TILE_SIZE_KW.
|
virtual |
Reimplemented from ossimObject.
|
private |
Gets the Subject.
Looks in m_kwl for options keyword: "Subject"
Default: No default, empty string if not found.
s | Initialed by this. |
Definition at line 1772 of file ossimPdfWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by getProperty().
|
private |
Gets tiles size as string.
Looks in m_kwl for options keyword: "output_tile_size"
Defaults to 1024 if not found.
s | Initialized by this. |
Definition at line 1850 of file ossimPdfWriter.cpp.
References ossim::defaultTileSize(), ossimKeywordlist::findKey(), m_kwl, ossimKeywordNames::OUTPUT_TILE_SIZE_KW, ossimString::string(), ossimString::toString(), and ossimIpt::x.
Referenced by getProperty(), and getTileSize().
|
private |
Gets Tile size as integer point.
Defaults to 1024x1024 if not found.
tileSize | Initialized by this. |
Definition at line 1862 of file ossimPdfWriter.cpp.
References getTileSize(), ossimString::toInt32(), ossimIpt::x, and ossimIpt::y.
|
private |
Definition at line 1877 of file ossimPdfWriter.cpp.
Referenced by for(), and if().
|
private |
Gets the Title.
Looks in m_kwl for options keyword: "Title"
Defaults to basename of output file if not found.
s | Initialed by this. |
Definition at line 1746 of file ossimPdfWriter.cpp.
References ossimFilename::file(), ossimKeywordlist::findKey(), m_kwl, ossimString::size(), ossimString::string(), and ossimImageFileWriter::theFilename.
|
virtual |
bool hasImageType(const ossimString& imageType) const
imageType | string representing image type. |
Reimplemented from ossimImageFileWriter.
Definition at line 1107 of file ossimPdfWriter.cpp.
|
virtual |
Implements ossimOutputSource.
Definition at line 1036 of file ossimPdfWriter.cpp.
References m_str.
|
virtual |
Method to the load (recreate) the state of an object from a keyword list.
Reimplemented from ossimImageFileWriter.
Definition at line 1030 of file ossimPdfWriter.cpp.
References ossimImageFileWriter::loadState().
|
virtual |
Open method.
Implements ossimOutputSource.
Definition at line 1056 of file ossimPdfWriter.cpp.
References ossimString::c_str(), close(), m_ownsStream, m_str, ossimString::size(), and ossimImageFileWriter::theFilename.
|
virtual |
saves the state of the object.
Reimplemented from ossimImageFileWriter.
Definition at line 1024 of file ossimPdfWriter.cpp.
References ossimImageFileWriter::saveState().
|
virtual |
Sets the output stream to write to.
The stream will not be closed/deleted by this object.
output | The stream to write to. |
Reimplemented from ossimImageFileWriter.
Definition at line 1265 of file ossimPdfWriter.cpp.
References m_ownsStream, and m_str.
|
virtual |
Will set the property whose name matches the argument "property->getName()".
property | Object containing property to set. |
Reimplemented from ossimImageFileWriter.
Definition at line 1117 of file ossimPdfWriter.cpp.
References addOption(), ossimKeywordNames::IMAGE_TYPE_KW, ossimKeywordNames::OUTPUT_TILE_SIZE_KW, ossimImageFileWriter::setProperty(), ossimRefPtr< T >::valid(), and ossimProperty::valueToString().
|
private |
Writes "dummy" or blank object just to keep object references in line.
str | Stream to write to. |
xref | To capture object positions. Sets up input image source. This sets up the chain fed to theInputConnection which is an image source sequencer. This will remap input to eight bit if not already and make input one or three band depending on number of bands. Also sets m_saveInput for reconnection at the end of write. |
Definition at line 1276 of file ossimPdfWriter.cpp.
References ossimRefPtr< T >::get(), ossimConnectableObject::getInput(), ossimImageSource::getNumberOfOutputBands(), ossimImageSourceSequencer::getOutputScalarType(), m_savedInput, OSSIM_UINT8, and ossimImageFileWriter::theInputConnection.
|
private |
Writes Catalog object.
str | Stream to write to. |
xref | To capture object positions. |
|
privatevirtual |
Writes the file to disk or a stream.
Implements ossimImageFileWriter.
|
private |
Writes header.
str | Stream to write to. |
|
private |
Writes the image dictionary and associated objects.
str | Stream to write to. |
|
private |
Writes document infomation dictionary.
str | Stream to write to. |
xrefOffset | Offset to cross reference(xref) table. |
|
private |
Write a JPEG-compresses the raster tile buffer to the output stream provided.
str | Stream to write to. |
xref | To capture object positions. |
id | Pointer to tile data. |
aoi | Area of interest. |
outputTileRect | Initialized by this with output tile rect clamped to aoi. |
Definition at line 721 of file ossimPdfWriter.cpp.
References ossimImageData::getHeight(), ossimImageData::getImageRectangle(), ossimImageData::getOrigin(), ossimImageData::getUcharBuf(), ossimImageData::getWidth(), ossimImageData::initialize(), jpeg_cpp_stream_dest(), ossimIrect::lr(), OSSIM_BIP, OSSIM_UINT8, ossimImageData::setOrigin(), TRUE, ossimIpt::x, and ossimIpt::y.
Referenced by while().
|
private |
Writes Outlines object.
str | Stream to write to. |
xref | To capture object positions. Writes Pages object. |
str | Stream to write to. |
xref | To capture object positions. |
|
private |
Write raw raster tile buffer to the output stream provided.
str | Stream to write to. |
xref | To capture object positions. |
id | Pointer to tile data. |
aoi | Area of interest. |
outputTileRect | Initialized by this with output tile rect clamped to aoi. |
Definition at line 862 of file ossimPdfWriter.cpp.
References ossimImageData::getHeight(), ossimImageData::getImageRectangle(), ossimImageData::getOrigin(), ossimImageData::getSizeInBytes(), ossimImageData::getUcharBuf(), ossimImageData::getWidth(), ossimImageData::initialize(), ossimIrect::lr(), OSSIM_BIP, OSSIM_UINT8, ossimImageData::setOrigin(), ossimIpt::x, and ossimIpt::y.
Referenced by while().
|
virtual |
Method to write the image to a stream.
Reimplemented from ossimImageFileWriter.
|
private |
Writes trailer.
str | Stream to write to. |
entrySize | Number of entries, one plus object count. |
xrefOffset | Offset to cross reference(xref) table. |
Definition at line 974 of file ossimPdfWriter.cpp.
|
private |
Writes Cross Reference(xref) section.
str | Stream to write to. |
xref | Array of object offsets. |
Definition at line 942 of file ossimPdfWriter.cpp.
|
private |
Holds all options in key, value pair map.
Definition at line 547 of file ossimPdfWriter.h.
Referenced by addOption(), getAuthor(), getCreationDate(), getCreator(), getImageType(), getKeywords(), getModDate(), getProducer(), getSubject(), getTileSize(), and getTitle().
|
private |
Definition at line 549 of file ossimPdfWriter.h.
Referenced by addOption().
|
private |
Definition at line 539 of file ossimPdfWriter.h.
Referenced by close(), open(), and setOutputStream().
|
private |
Holds the origin end of the chain connected to theInputConnection.
Definition at line 544 of file ossimPdfWriter.h.
Referenced by setupInputChain().
|
private |
Definition at line 538 of file ossimPdfWriter.h.
Referenced by close(), isOpen(), open(), and setOutputStream().