OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimImageModel.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 // Author: David Burken
8 //
9 // Description: Class declaration of ossimImageModel.
10 //
11 //-----------------------------------------------------------------------------
12 // $Id$
13 
14 #ifndef ossimImageModel_HEADER
15 #define ossimImageModel_HEADER 1
16 
17 #include <vector>
19 #include <ossim/base/ossimObject.h>
20 #include <ossim/base/ossimDpt.h>
21 #include <ossim/base/ossimRtti.h>
22 
23 class ossimDrect;
24 class ossimImageHandler;
25 
34 {
35 public:
36 
39 
40 
46  virtual void initialize(const ossimImageHandler& ih);
47 
59  void rnToR0(ossim_uint32 rrds,
60  const ossimDpt& rnPt,
61  ossimDpt& r0Pt) const;
62 
77  void rnToR0(const ossimDpt& rnPt, ossimDpt& r0Pt) const;
78 
90  void r0ToRn(ossim_uint32 rrds,
91  const ossimDpt& r0Pt,
92  ossimDpt& rnPt) const;
93 
108  void r0ToRn(const ossimDpt& r0Pt,
109  ossimDpt& rnPt) const;
110 
120  void getSubImageOffset(ossim_uint32 rrds, ossimDpt& offset) const;
121 
132  void getImageRectangle(ossim_uint32 rrds, ossimDrect& rect) const;
133 
148  void getBoundingRectangle(ossim_uint32 rrds, ossimDrect& rect) const;
149 
153  ossim_uint32 getNumberOfDecimationLevels()const;
154 
163  void setTargetRrds(ossim_uint32 rrds);
164 
168  ossim_uint32 getTargetRrds() const;
169 
170 
171 
172 protected:
174  virtual ~ossimImageModel();
175 
178 
180  std::vector<ossimDpt> theDecimationFactors;
181 
185 
186 TYPE_DATA
187 };
188 
189 #endif /* #ifndef ossimImageModel_HEADER */
ossim_uint32 theSamples
std::vector< ossimDpt > theDecimationFactors
Decimation factors for each rrds level.
ossim_uint32 theLines
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
ossim_uint32 theTargetRrds
This class defines an abstract Handler which all image handlers(loaders) should derive from...
#define OSSIM_DLL
ossimDpt theSubImageOffset
Offset from the full image.
Class to handle transforming image points, rectangles, and offsets from one reduced resolution data s...