OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimTileHash.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: David Burken Copied from TiledImageHash.
9 //
10 // Description: Hashing function for tiled rectangles. Will hash a
11 // dpt or fpt to a single index value.
12 //
13 // NOTE: Works on rectangles that are positive in the line up (y)
14 // direction. Use TiledImageHash for rectangles that are positive
15 // in the line down direction.
16 //
17 //*******************************************************************
18 // $Id: ossimTileHash.h 9094 2006-06-13 19:12:40Z dburken $
19 
20 #ifndef TileHash_HEADER
21 #define TileHash_HEADER
22 
23 #include <ossim/base/ossimDrect.h>
25 
27 {
28 public:
29  ossimTileHash(const ossimDrect &imageRect,
30  double tileWidth,
31  double tileHeight);
32 
33  virtual ~ossimTileHash();
34 
35  virtual long operator()(const ossimDpt &aPoint);
36  virtual long operator()(const ossimFpt &aPoint);
37 
38 private:
40  double theTileWidth;
41  double theTileHeight;
44 };
45 
46 #endif
#define OSSIMDLLEXPORT
long theNumberOfHorizTiles
Definition: ossimTileHash.h:42
double theTileHeight
Definition: ossimTileHash.h:41
double theTileWidth
Definition: ossimTileHash.h:40
virtual long operator()(const ossimDpt &aPoint)=0
long theNumberOfVertTiles
Definition: ossimTileHash.h:43
ossimDrect theImageRect
Definition: ossimTileHash.h:39