svn-gvsig-desktop / tags / v1_0_2_Build_904 / libraries / libjni-ecw / include / NCSWorldPoint.h @ 43469
History | View | Annotate | Download (1.38 KB)
1 | 3538 | nacho | /*******************************************************
|
---|---|---|---|
2 | ** Copyright 1999 Earth Resource Mapping Ltd.
|
||
3 | ** This document contains proprietary source code of
|
||
4 | ** Earth Resource Mapping Ltd, and can only be used under
|
||
5 | ** one of the three licenses as described in the
|
||
6 | ** license.txt file supplied with this distribution.
|
||
7 | ** See separate license.txt file for license details
|
||
8 | ** and conditions.
|
||
9 | **
|
||
10 | ** This software is covered by US patent #6,442,298,
|
||
11 | ** #6,102,897 and #6,633,688. Rights to use these patents
|
||
12 | ** is included in the license agreements.
|
||
13 | **
|
||
14 | ** FILE: CNCSWorldPoint.h
|
||
15 | ** CREATED: Wed Oct 18 2000
|
||
16 | ** AUTHOR: Jeff Pudwell
|
||
17 | ** PURPOSE:
|
||
18 | **
|
||
19 | ** EDITS:
|
||
20 | *******************************************************/
|
||
21 | |||
22 | |||
23 | #ifndef NCSWORLDPOINT_H_
|
||
24 | #define NCSWORLDPOINT_H_
|
||
25 | |||
26 | #include "NCSTypes.h" |
||
27 | #include "NCSDefs.h" |
||
28 | |||
29 | |||
30 | class NCS_EXPORT CNCSWorldPoint |
||
31 | { |
||
32 | public:
|
||
33 | IEEE8 x; |
||
34 | IEEE8 y; |
||
35 | IEEE8 z; |
||
36 | |||
37 | CNCSWorldPoint(); |
||
38 | CNCSWorldPoint(IEEE8 dWorldX, IEEE8 dWorldY); |
||
39 | CNCSWorldPoint(IEEE8 dWorldX, IEEE8 dWorldY, IEEE8 dWorldZ); |
||
40 | |||
41 | IEEE8 Width(CNCSWorldPoint dPoint); |
||
42 | IEEE8 Height(CNCSWorldPoint dPoint); |
||
43 | |||
44 | bool operator==(CNCSWorldPoint &pPoint)
|
||
45 | { |
||
46 | if (x == pPoint.x && y == pPoint.y && z == pPoint.z)
|
||
47 | return true; |
||
48 | else
|
||
49 | return false; |
||
50 | } |
||
51 | |||
52 | bool operator!=(CNCSWorldPoint &pPoint)
|
||
53 | { |
||
54 | if (x == pPoint.x && y == pPoint.y && z == pPoint.z)
|
||
55 | return false; |
||
56 | else
|
||
57 | return true; |
||
58 | } |
||
59 | }; |
||
60 | |||
61 | #endif
|
||
62 |