OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimSubImageTileSource.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // FILE: ossimSubImageTileSource.h
3 //
4 // Copyright (C) 2001 ImageLinks, Inc.
5 //
6 // License: MIT
7 //
8 // See LICENSE.txt file in the top level directory for more details.
9 //
10 // AUTHOR: Oscar Kramer
11 //
12 // DESCRIPTION: Contains declaration of class ossimSubImageTileSource.
13 //
14 // LIMITATIONS: None.
15 //
16 //*****************************************************************************
17 // $Id: ossimSubImageTileSource.h 22233 2013-04-15 15:12:54Z gpotts $
18 
19 #ifndef ossimSubImageTileSource_HEADER
20 #define ossimSubImageTileSource_HEADER
21 
23 
24 /*!****************************************************************************
25  *
26  * CLASS: ossimSubImageTileSource
27  *
28  * This tile source permits specifying an offset that is to be applied to the
29  * tile origin for all getTile() requests. It is intended for converting
30  * a full-image space coordinate to a sub-image coordinate.
31  *
32  *****************************************************************************/
34 {
35 public:
40 
45 
50  const ossimIpt& offset);
51 
55  void setSubImageOffset(const ossimIpt& offset) { theSubImageOffset=offset; }
56 
57  ossimIpt getSubImageOffset()const{ return theSubImageOffset;}
58 
60  ossim_uint32 rr_level=0);
61 
65  virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const;
66 
70  virtual void getValidImageVertices(vector<ossimIpt>& validVertices,
72  ossim_uint32 resLevel=0)const;
73 
74  virtual void initialize();
75 
76  virtual bool loadState(const ossimKeywordlist& kwl,
77  const char* prefix=0);
78 
79  virtual bool saveState(ossimKeywordlist& kwl,
80  const char* prefix=0)const;
81 
82 private:
83  virtual ~ossimSubImageTileSource();
84 
87  TYPE_DATA
88 };
89 
90 #endif
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
Represents serializable keyword/value map.
ossimRefPtr< ossimImageData > theTile
ossimVertexOrdering
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual void getValidImageVertices(std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const
ordering specifies how the vertices should be arranged.
unsigned int ossim_uint32
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 bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
#define OSSIM_DLL
void setSubImageOffset(const ossimIpt &offset)
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)