Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-ecw / include / NCSScreenPoint.h @ 4939

History | View | Annotate | Download (1.29 KB)

1
/*******************************************************
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:           CNCSScreenPoint.h
15
** CREATED:        Wed Oct 18 2000
16
** AUTHOR:         Jeff Pudwell
17
** PURPOSE:        
18
**                
19
** EDITS:
20
*******************************************************/
21

    
22

    
23
#ifndef NCSSCREENPOINT_H_
24
#define NCSSCREENPOINT_H_
25

    
26
#include "NCSTypes.h"
27
#include "NCSDefs.h"
28

    
29

    
30
class NCS_EXPORT CNCSScreenPoint
31
{
32
        public:
33
                INT32 x;
34
                INT32 y;
35

    
36
                CNCSScreenPoint();
37
                CNCSScreenPoint(INT32 nScreenX, INT32 nScreenY);
38

    
39
                INT32 Width(CNCSScreenPoint nPoint);
40
                INT32 Height(CNCSScreenPoint nPoint);
41

    
42
                bool operator==(CNCSScreenPoint &pPoint)
43
                {
44
                        if (x == pPoint.x && y == pPoint.y)
45
                                return true;
46
                        else
47
                                return false;
48
                }
49

    
50
                bool operator!=(CNCSScreenPoint &pPoint)
51
                {
52
                        if (x == pPoint.x && y == pPoint.y)
53
                                return false;
54
                        else
55
                                return true;
56
                }
57
};
58

    
59
#endif