OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRangeDomeTileSource.h
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM (http://trac.osgeo.org/ossim/)
4 //
5 // License: MIT -- See LICENSE.txt file in the top level directory for more details.
6 //
7 //**************************************************************************************************
8 // $Id: ossimRangeDomeTileSource.h 23464 2015-08-07 18:39:47Z okramer $
9 
10 #ifndef ossimRangeDomeTileSource_HEADER
11 #define ossimRangeDomeTileSource_HEADER 1
12 
14 #include <ossim/base/ossimString.h>
16 #include <ossim/base/ossimRefPtr.h>
17 #include <ossim/base/ossimGrect.h>
18 #include <vector>
19 
20 class ossimImageData;
21 
23 {
25  {
35  };
36 
37  ossimRangeDome(std::vector<ossimString>& tokens);
38  ossimGrect boundingRect() const;
39 
40  bool valid;
44  double radiusMeters;
47  double startAz;
48  double endAz;
50 };
51 
52 
72 {
73 public:
75  virtual ~ossimRangeDomeTileSource();
76 
78  virtual bool open();
79 
80  virtual bool isOpen() const;
81 
82  virtual void close();
83 
84  virtual void initialize();
85 
86  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& rect, ossim_uint32 resLevel=0);
87  virtual bool getTile(ossimImageData* result, ossim_uint32 resLevel=0);
88 
89  virtual ossim_uint32 getNumberOfInputBands() const;
90  virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel = 0) const;
91  virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel = 0) const;
92  virtual ossim_uint32 getImageTileWidth() const { return 0; }
93  virtual ossim_uint32 getImageTileHeight() const { return 0; }
94  virtual ossimScalarType getOutputScalarType() const { return OSSIM_UINT8; }
95 
96 
98 
99  virtual bool saveState(ossimKeywordlist& kwl, const char* prefix=0) const;
100  virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix=0);
101 
106  virtual void setProperty(ossimRefPtr<ossimProperty> property);
107  virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name) const;
108 
109  virtual void getGSD(ossimDpt& gsd, ossim_uint32 resLevel) const;
110  virtual void setGSD( const ossim_float64& gsd );
111 
112  ossim_uint32 getNumRangeDomes() const { return (ossim_uint32)m_rangeDomes.size(); }
113 
114 protected:
115  std::vector<ossimRangeDome> m_rangeDomes;
117 
119 
120  TYPE_DATA
121 };
122 
123 #endif
virtual bool open()=0
Pure virtual open.
ossimGrect boundingRect() const
ossimRefPtr< ossimImageGeometry > theGeometry
static const ossimString OSSIM_RANGE_DOME_SPEC_MAGIC_NUMBER
virtual ossim_uint32 getImageTileHeight() const
Returns the tile width of the image or 0 if the image is not tiled.
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
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 getImageTileWidth() const
Returns the tile width of the image or 0 if the image is not tiled.
Classification classification
virtual void setProperty(ossimRefPtr< ossimProperty > property)
std::vector< ossimRangeDome > m_rangeDomes
virtual bool isOpen() const =0
Derived classes must implement this method to be concrete.
double ossim_float64
ossimRangeDome(std::vector< ossimString > &tokens)
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
unsigned int ossim_uint32
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual void close()
Deletes the overview and clears the valid image vertices.
ossimScalarType
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual void initialize()
initialize Does nothing in this class.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
ossim_uint32 getNumRangeDomes() const
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
8 bit unsigned integer
Class used for rendering range domes (a.k.a.
virtual ossim_uint32 getNumberOfInputBands() const =0
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)