OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVpfTileSource.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // Copyright (C) 2004 Garrett Potts, all rights reserved.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 // $Id: ossimVpfTileSource.h 17932 2010-08-19 20:34:35Z dburken $
11 //----------------------------------------------------------------------------
12 #ifndef ossimVpfTileSource_HEADER
13 #define ossimVpfTileSource_HEADER
14 
17 #include <ossim/base/ossimRefPtr.h>
19 
20 
22  public ossimViewInterface
23 {
24 public:
25 
27 
28  virtual void close();
29 
38  virtual bool open();
39 
45  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
46  ossim_uint32 resLevel=0);
47 
52  virtual ossim_uint32 getNumberOfInputBands() const;
53 
59  virtual ossim_uint32 getNumberOfOutputBands() const;
60 
65  virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level = 0) const;
66 
71  virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level = 0) const;
72 
79 
84  virtual ossimIrect getImageRectangle(ossim_uint32 reduced_res_level = 0) const;
85 
90  virtual bool saveState(ossimKeywordlist& kwl,
91  const char* prefix=0)const;
92 
97  virtual bool loadState(const ossimKeywordlist& kwl,
98  const char* prefix);
99 
102 
106  virtual ossimScalarType getOutputScalarType() const;
107 
111  virtual ossim_uint32 getTileWidth() const;
112 
116  virtual ossim_uint32 getTileHeight() const;
117 
124  virtual ossim_uint32 getImageTileWidth() const;
125 
132  virtual ossim_uint32 getImageTileHeight() const;
133 
134  virtual bool isOpen()const;
135 
136  virtual double getNullPixelValue(ossim_uint32 band=0)const;
137 
138  virtual double getMinPixelValue(ossim_uint32 band=0)const;
139 
140  virtual double getMaxPixelValue(ossim_uint32 band=0)const;
141 
142  virtual ossimObject* getView();
143 
144  virtual const ossimObject* getView()const;
145 
146  virtual bool setView(ossimObject* baseObject);
147 
148  void getAllFeatures(std::vector<ossimVpfAnnotationFeatureInfo*>& featureList);
149 
150  void setAllFeatures(std::vector<ossimVpfAnnotationFeatureInfo*>& featureList);
151 
152  void transformObjects();
153 
154  void computeBoundingRect();
155 
156 protected:
157  virtual ~ossimVpfTileSource();
159 
160 
161 TYPE_DATA
162 };
163 
164 #endif
virtual bool open()=0
Pure virtual open.
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
ossimRefPtr< ossimVpfAnnotationSource > m_AnnotationSource
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.
virtual ossim_uint32 getTileHeight() const
Returns the default processing tile height.
virtual ossim_uint32 getTileWidth() const
Returns the default processing tile width.
virtual ossim_uint32 getNumberOfDecimationLevels() const
This returns the total number of decimation levels.
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.
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 void close()
Deletes the overview and clears the valid image vertices.
virtual ossimIrect getImageRectangle(ossim_uint32 resLevel=0) const
Returns zero-based bounding rectangle of the image.
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...
virtual bool setView(ossimObject *baseObject)=0
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
virtual ossimObject * getView()=0
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)