OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGdalOverviewBuilder.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken
6 //
7 // Description: OSSIM wrapper for building gdal overviews (tiff or hfa) from
8 // an ossim image source.
9 //
10 //----------------------------------------------------------------------------
11 // $Id: ossimGdalOverviewBuilder.h 15833 2009-10-29 01:41:53Z eshirschorn $
12 
13 #ifndef ossimGdalOverviewBuilder_HEADER
14 #define ossimGdalOverviewBuilder_HEADER
15 
16 #include <vector>
17 
20 #include <ossim/base/ossimRefPtr.h>
23 
24 class ossimImageSource;
25 class ossimGdalDataset;
26 
32  :
34 {
35 public:
36 
39  {
45  };
46 
49 
51  virtual ~ossimGdalOverviewBuilder();
52 
58  bool open(const ossimFilename& file);
59 
69  virtual bool execute();
70 
77  virtual bool setInputSource(ossimImageHandler* imageSource);
78 
84  virtual void setOutputFile(const ossimFilename& file);
85 
92  virtual ossimFilename getOutputFile() const;
93 
107  virtual bool setOverviewType(const ossimString& type);
108 
114  virtual ossimString getOverviewType() const;
115 
121  virtual void getTypeNameList(std::vector<ossimString>& typeList)const;
122 
126  virtual ossimObject* getObject();
127 
131  virtual const ossimObject* getObject() const;
132 
136  virtual bool canConnectMyInputTo(ossim_int32 index,
137  const ossimConnectableObject* obj) const;
138 
147  virtual void setProperty(ossimRefPtr<ossimProperty> property);
148 
154  virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
155 
160  virtual std::ostream& print(std::ostream& out) const;
161 
162 private:
163 
164  bool generateHfaStats() const;
165 
168 
171 
175  std::vector<ossim_int32> theLevels; // like 2, 4, 8, 16, 32
177 
179  TYPE_DATA
180 };
181 
182 #endif /* End if "#ifndef ossimGdalOverviewBuilder_HEADER" */
bool open(const ossimFilename &file)
Open that takes a file name.
virtual bool setOverviewType(const ossimString &type)
Sets the overview output type.
ossimString getExtensionFromType() const
ossimGdalOverviewType theOverviewType
std::vector< ossim_int32 > theLevels
virtual bool execute()
Builds the overviews.
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Method to set properties.
virtual bool setInputSource(ossimImageHandler *imageSource)
Sets the input to the builder.
ossimGdalOverviewBuilder Class to build overviews from the GDAL library.
virtual ~ossimGdalOverviewBuilder()
virtual destructor
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Method to populate the list of property names.
virtual std::ostream & print(std::ostream &out) const
print method.
ossimGdalOverviewType
Enumerations for the type of GDAL overviews to build.
ossimGdalOverviewBuilder()
default constructor
ossimString getGdalResamplingType() const
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual bool canConnectMyInputTo(ossim_int32 index, const ossimConnectableObject *obj) const
ossimGdalDataset This is a gdal data set that wraps an ossim image handler.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual void setOutputFile(const ossimFilename &file)
Sets the output filename.
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
Method to populate class supported types.
virtual ossimObject * getObject()
virtual ossimFilename getOutputFile() const
Returns the output.
virtual ossimString getOverviewType() const
Gets the overview type.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int ossim_int32