OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimKakaduJp2Writer.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: LGPL
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Description: OSSIM Kakadu based jp2 writer class declaration.
8 //
9 //----------------------------------------------------------------------------
10 // $Id: ossimKakaduJp2Writer.h 19904 2011-08-05 17:50:32Z dburken $
11 
12 #ifndef ossimKakaduJp2Writer_HEADER
13 #define ossimKakaduJp2Writer_HEADER 1
14 
16 #include <ossim/base/ossimRefPtr.h>
17 #include <ossim/base/ossimString.h>
18 #include <iosfwd>
19 #include <vector>
20 
22 class ossimKeywordlist;
23 
25 {
26 public:
27 
30 
31  /* @brief virtual destructor */
32  virtual ~ossimKakaduJp2Writer();
33 
35  virtual ossimString getShortName() const;
36 
38  virtual ossimString getLongName() const;
39 
41  virtual ossimString getClassName() const;
42 
47  virtual void getImageTypeList(std::vector<ossimString>& imageTypeList)const;
48 
49  virtual bool isOpen()const;
50 
51  virtual bool open();
52 
53  virtual void close();
54 
58  virtual bool saveState(ossimKeywordlist& kwl,
59  const char* prefix=0)const;
60 
65  virtual bool loadState(const ossimKeywordlist& kwl,
66  const char* prefix=0);
67 
74  virtual void setProperty(ossimRefPtr<ossimProperty> property);
75 
82  const ossimString& name)const;
83 
89  virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
90 
99  virtual ossimString getExtension() const;
100 
108  virtual bool getOutputHasInternalOverviews( void ) const;
109 
110  bool hasImageType(const ossimString& imageType) const;
111 
117  virtual bool writeStream();
118 
126  virtual bool setOutputStream(std::ostream& stream);
127 
128 protected:
133  virtual bool writeFile();
134 
135 private:
136 
142  bool writeGeotiffBox(ossimKakaduCompressor* compressor);
143 
149  bool writeGmlBox(ossimKakaduCompressor* compressor);
150 
154 
155  TYPE_DATA
156 
157 };
158 
159 #endif /* #ifndef ossimKakaduJp2Writer_HEADER */
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual ossimString getLongName() const
virtual ossimString getShortName() const
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Pushes this&#39;s names onto the list of property names.
Represents serializable keyword/value map.
ossimKakaduJp2Writer()
default constructor
virtual bool writeStream()
Method to write the image to a stream.
virtual ossimString getExtension() const
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for...
Pure virtual base class for image file writers.
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Will set the property whose name matches the argument "property->getName()".
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
saves the state of the object.
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual bool setOutputStream(std::ostream &stream)
Sets the output stream to write to.
virtual ossimString getClassName() const
virtual bool isOpen() const
virtual void getImageTypeList(std::vector< ossimString > &imageTypeList) const
Appends this writer image types to list "imageTypeList".
bool writeGeotiffBox(ossimKakaduCompressor *compressor)
Writes geotiff box if input has good geometry.
bool hasImageType(const ossimString &imageType) const
bool hasImageType(const ossimString& imageType) const
virtual bool writeFile()
Writes the file to disk or a stream.
bool writeGmlBox(ossimKakaduCompressor *compressor)
Writes GML box if input has good geometry.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
ossimKakaduCompressor * m_compressor
virtual bool getOutputHasInternalOverviews(void) const
Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nit...