OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimTiledImageHash.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
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 // Description: Hashing function for tiled rectangles. Will hash a
11 // dpt to a single index value.
12 //
13 //*******************************************************************
14 // $Id: ossimTiledImageHash.h 9094 2006-06-13 19:12:40Z dburken $
15 #ifndef ossimTiledImageHash_HEADER
16 #define ossimTiledImageHash_HEADER
17 #include <ossim/base/ossimDrect.h>
19 
21 {
22 public:
23  ossimTiledImageHash(const ossimDrect &imageRect,
24  double tileWidth,
25  double tileHeight);
26 
27  virtual ~ossimTiledImageHash();
28 
29  virtual long operator()(const ossimDpt &aPoint);
30  virtual long operator()(const ossimFpt &aPoint);
31 
32 private:
34  double theTileWidth;
35  double theTileHeight;
38 };
39 
40 #endif
#define OSSIMDLLEXPORT
virtual long operator()(const ossimDpt &aPoint)=0