OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGeneralRasterWriter.h
Go to the documentation of this file.
1  //*******************************************************************
2 // Copyright (C) 2001 ImageLinks Inc.
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // Author: David Burken
7 //
8 // Description:
9 //
10 // Contains class declaration for ossimGeneralRasterWriter.
11 //
12 //*******************************************************************
13 // $Id: ossimGeneralRasterWriter.h 22197 2013-03-12 02:00:55Z dburken $
14 
15 #ifndef ossimGeneralRasterWriter_HEADER
16 #define ossimGeneralRasterWriter_HEADER 1
17 
20 #include <ossim/base/ossimIrect.h>
24 
26 {
27 public:
28 
31 
44  virtual void getImageTypeList(std::vector<ossimString>& imageTypeList)const;
45 
54  virtual ossimString getExtension() const;
55 
56  virtual void set_rr_level(ossim_uint32 rr) { theRlevel = rr; }
57  virtual bool isOpen()const;
58  virtual bool open();
59  virtual void close();
60 
64  virtual bool saveState(ossimKeywordlist& kwl,
65  const char* prefix=0)const;
66 
71  virtual bool loadState(const ossimKeywordlist& kwl,
72  const char* prefix=0);
73 
81  virtual bool writeStream();
82 
90  virtual bool setOutputStream(std::ostream& stream);
91 
92 protected:
93 
98  virtual bool writeFile();
99 
101  virtual ~ossimGeneralRasterWriter();
102 
103 private:
104 
110  bool writeToBip();
111 
117  bool writeToBil();
118 
123  bool writeToBsq();
124 
129  void writeHeader() const;
130 
136  void writeEnviHeader() const;
137 
141  ossimString getInterleaveString() const;
142 
147 
151  std::vector<double> theMinPerBand;
152  std::vector<double> theMaxPerBand;
153 
154 TYPE_DATA
155 };
156 
157 #endif
virtual void close()=0
Represents serializable keyword/value map.
virtual ossimString getExtension() const
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for...
virtual bool writeFile()=0
Write out the file.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Pure virtual base class for image file writers.
virtual bool setOutputStream(ossimRefPtr< ossimOStream > stream)
Sets the output stream to write to.
std::vector< double > theMaxPerBand
virtual void getImageTypeList(std::vector< ossimString > &imageTypeList) const =0
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual bool writeStream()
Method to write the image to a stream.
unsigned int ossim_uint32
ossimByteOrder
virtual bool isOpen() const =0
#define OSSIM_DLL
virtual bool open()=0
virtual void set_rr_level(ossim_uint32 rr)
std::vector< double > theMinPerBand
Populated while writting the data.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23