OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
base
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
>
24
#include <
ossim/base/ossimPointHash.h
>
25
26
class
OSSIMDLLEXPORT
ossimTileHash
:
public
ossimPointHash
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
:
39
ossimDrect
theImageRect
;
40
double
theTileWidth
;
41
double
theTileHeight
;
42
long
theNumberOfHorizTiles
;
43
long
theNumberOfVertTiles
;
44
};
45
46
#endif
OSSIMDLLEXPORT
#define OSSIMDLLEXPORT
Definition:
ossimConstants.h:71
ossimTileHash::theNumberOfHorizTiles
long theNumberOfHorizTiles
Definition:
ossimTileHash.h:42
ossimTileHash::theTileHeight
double theTileHeight
Definition:
ossimTileHash.h:41
ossimTileHash::theTileWidth
double theTileWidth
Definition:
ossimTileHash.h:40
ossimDpt
Definition:
ossimDpt.h:29
ossimFpt
Definition:
ossimFpt.h:24
ossimPointHash.h
ossimPointHash::operator()
virtual long operator()(const ossimDpt &aPoint)=0
ossimTileHash::theNumberOfVertTiles
long theNumberOfVertTiles
Definition:
ossimTileHash.h:43
ossimTileHash::theImageRect
ossimDrect theImageRect
Definition:
ossimTileHash.h:39
ossimDrect.h
ossimDrect
Definition:
ossimDrect.h:53
ossimPointHash
Definition:
ossimPointHash.h:20
ossimTileHash
Definition:
ossimTileHash.h:26
Generated on Fri Aug 3 2018 08:46:54 for OSSIM - Open Source Software Image Map by
1.8.14