OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimUsgsDemTileSource.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: MIT
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Description:
8 //
9 // Contains class declaration of ossimUsgsDemTileSource.
10 // The ossimUsgsDemTileSource class is derived from ossimImageHandler and
11 // is intended to be an image handler for USGS dem files.
12 //
13 //********************************************************************
14 // $Id: ossimUsgsDemTileSource.h 19640 2011-05-25 15:58:00Z oscarkramer $
15 
16 #ifndef ossimUsgsDemTileSource_HEADER
17 #define ossimUsgsDemTileSource_HEADER
18 
20 
21 class ossimImageData;
22 class ossimDemGrid;
23 
25 {
26 public:
27 
29 
30  virtual ossimString getShortName() const;
31  virtual ossimString getLongName() const;
32 
42  virtual bool open();
43 
44  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tile_rect,
45  ossim_uint32 resLevel=0);
46 
59  virtual bool getTile(ossimImageData* result, ossim_uint32 resLevel=0);
60 
65  virtual ossim_uint32 getNumberOfInputBands() const;
66  virtual ossim_uint32 getNumberOfOutputBands() const;
67 
72  virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level = 0) const;
73 
78  virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level = 0) const;
79 
80  virtual double getNullPixelValue(ossim_uint32 band=0)const;
81  virtual double getMinPixelValue(ossim_uint32 band=0)const;
82  virtual double getMaxPixelValue(ossim_uint32 band=0)const;
83 
88  virtual ossimIrect getImageRectangle(ossim_uint32 reduced_res_level = 0) const;
89 
94  virtual bool saveState(ossimKeywordlist& kwl,
95  const char* prefix=0)const;
96 
107  virtual bool loadState(const ossimKeywordlist& kwl,
108  const char* prefix=0);
109 
110 
114  virtual ossimScalarType getOutputScalarType() const;
115 
119  virtual ossim_uint32 getTileWidth() const;
120 
124  virtual ossim_uint32 getTileHeight() const;
125 
132  virtual ossim_uint32 getImageTileWidth() const;
133 
140  virtual ossim_uint32 getImageTileHeight() const;
141 
142  virtual bool isOpen()const;
143 
148 
149 protected:
150 
161 
162  virtual ~ossimUsgsDemTileSource();
163  // Disallow operator= and copy constrution...
166 
170  template <class T> bool fillBuffer(T, // dummy template variable
171  const ossimIrect& tile_rect,
172  const ossimIrect& clip_rect,
173  ossimImageData* tile);
174 
175  void gatherStatistics();
176 
182  bool theFeetFlag; // elevation units = feet
184 
190 
191 TYPE_DATA
192 };
193 
194 #endif // #ifndef ossimUsgsDemTileSource_HEADER
virtual bool open()=0
Pure virtual open.
ossimScalarType theScalarType
This can be either OSSIM_SINT16 or OSSIM_FLOAT32.
Represents serializable keyword/value map.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
ossimRefPtr< ossimImageData > theTile
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 ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
const ossimImageSource & operator=(const ossimImageSource &)
virtual ossim_uint32 getTileHeight() const
Returns the default processing tile height.
virtual ossimString getShortName() const
Definition: ossimObject.cpp:48
virtual ossim_uint32 getTileWidth() const
Returns the default processing tile width.
virtual bool isOpen() const =0
Derived classes must implement this method to be concrete.
virtual double getMinPixelValue(ossim_uint32 band=0) const
Retuns the min pixel value.
double ossim_float64
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual ossim_uint32 getImageTileHeight() const =0
Returns the tile width of the image or 0 if the image is not tiled.
unsigned int ossim_uint32
virtual ossimString getLongName() const
Definition: ossimObject.cpp:53
virtual ossimIrect getImageRectangle(ossim_uint32 resLevel=0) const
Returns zero-based bounding rectangle of the image.
virtual ossimRefPtr< ossimImageGeometry > getInternalImageGeometry() const
ossimScalarType
virtual ossim_uint32 getImageTileWidth() const =0
Returns the tile width of the image or 0 if the image is not tiled.
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
#define OSSIM_DLL
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
virtual ossim_uint32 getNumberOfInputBands() const =0
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)