OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimKmlSuperOverlayReader.h
Go to the documentation of this file.
1 
2 //*******************************************************************
3 // Copyright (C) 2000 ImageLinks Inc.
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 // Author: Mingjie Su, Harsh Govind
10 //
11 // Description:
12 //
13 // Contains class definition for the class "ossimKmlSuperOverlayReader".
14 // ossimKmlSuperOverlayReader is derived from ImageHandler which is derived from
15 // TileSource. It is for displaying the information from kml super overlay.
16 //
17 //*******************************************************************
18 // $Id: ossimKmlSuperOverlayReader.h 2178 2011-02-17 18:38:30Z ming.su $
19 
20 #ifndef ossimKmlSuperOverlayReader_HEADER
21 #define ossimKmlSuperOverlayReader_HEADER
22 
23 //Ossim Includes
25 #include <ossim/base/ossimIrect.h>
26 #include <ossim/base/ossimDrect.h>
27 
28 class ossimProjection;
29 class ossimMapProjection;
30 class ossimXmlDocument;
31 
33 {
34 
35 public:
36 
39 
40  virtual void close();
41 
50  virtual bool open();
51 
57  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
58  ossim_uint32 resLevel=0);
59 
64  virtual ossim_uint32 getNumberOfInputBands() const;
65 
70  virtual ossim_uint32 getNumberOfOutputBands() const;
71 
76  virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level = 0) const;
77 
82  virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level = 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 
101  virtual bool loadState(const ossimKeywordlist& kwl,
102  const char* prefix=0);
103 
110  virtual ossim_uint32 getImageTileWidth() const;
111 
118  virtual ossim_uint32 getImageTileHeight() const;
119 
123 
125 
127 
128  virtual bool isOpen()const;
129 
131 
132 private:
133 
134  bool getCoordinate(std::vector<ossimRefPtr<ossimXmlNode> > nodes,
135  ossim_float64& north,
136  ossim_float64& south,
137  ossim_float64& east,
138  ossim_float64& west);
139 
141 
142  bool isKmlSuperOverlayFile(std::vector<ossimRefPtr<ossimXmlNode> > nodes);
143 
144  bool getTopLevelKmlFileInfo();
145 
149 
150 TYPE_DATA
151 };
152 
153 #endif
ossimRefPtr< ossimImageGeometry > theImageGeometry
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
Represents serializable keyword/value map.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
virtual ossimIrect getImageRectangle(ossim_uint32 reduced_res_level=0) const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
virtual ossim_uint32 getNumberOfOutputBands() const
double ossim_float64
virtual ossim_uint32 getImageTileHeight() const
ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
ossimRefPtr< ossimXmlNode > findLatLonNode(std::vector< ossimRefPtr< ossimXmlNode > >nodes)
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level=0) const
unsigned int ossim_uint32
ossimMapProjection * createDefaultProj(ossim_float64 north, ossim_float64 south, ossim_float64 east, ossim_float64 west)
ossimScalarType
virtual bool isOpen() const
Derived classes must implement this method to be concrete.
virtual ossim_uint32 getNumberOfInputBands() const
This class defines an abstract Handler which all image handlers(loaders) should derive from...
ossimRefPtr< ossimXmlDocument > m_xmlDocument
virtual ossim_uint32 getImageTileWidth() const
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level=0) const
virtual ossimRefPtr< ossimImageGeometry > getInternalImageGeometry() const
Returns the image geometry object associated with this tile source or NULL if non defined...
bool getCoordinate(std::vector< ossimRefPtr< ossimXmlNode > > nodes, ossim_float64 &north, ossim_float64 &south, ossim_float64 &east, ossim_float64 &west)
virtual void close()
Deletes the overview and clears the valid image vertices.
bool isKmlSuperOverlayFile(std::vector< ossimRefPtr< ossimXmlNode > > nodes)