]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/kernel/marPoint.cpp
creaMaracasVisu Library
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / marPoint.cpp
1 /*=========================================================================
2
3  Program:   wxMaracas
4  Module:    $RCSfile: marPoint.cpp,v $
5  Language:  C++
6  Date:      $Date: 2008/10/31 16:32:56 $
7  Version:   $Revision: 1.1 $
8  
9   Copyright: (c) 2002, 2003
10   License:
11   
12    This software is distributed WITHOUT ANY WARRANTY; without even 
13    the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14    PURPOSE.  See the above copyright notice for more information.
15    
16 =========================================================================*/
17
18 #include "marPoint.h"
19
20 // ----------------------------------------------------------------------------
21 marPoint::marPoint(double x, double y) {
22         this->x = x;
23         this->y = y;
24 }
25
26 marPoint::~marPoint()
27 {
28
29 }
30
31 // ----------------------------------------------------------------------------
32 double marPoint::getX()
33 {
34         return x;
35 }
36
37 // ----------------------------------------------------------------------------
38 double marPoint::getY()
39 {
40         return y;
41 }
42
43 // ----------------------------------------------------------------------------
44 void marPoint::setPoint(double x, double y){
45         this->x = x;
46         this->y = y;
47 }
48
49 // ----------------------------------------------------------------------------
50 double marPoint::getGradient() {
51         return gradient;
52 }
53
54 // ----------------------------------------------------------------------------
55 void marPoint::setGradient(double g) {
56         gradient = g;
57 }
58
59 // ----------------------------------------------------------------------------
60 int marPoint::getDirection() {
61         return dir;
62 }
63
64 // ----------------------------------------------------------------------------
65 bool marPoint::getInside() {
66         return inside;
67 }
68
69 // ----------------------------------------------------------------------------
70 void marPoint::setDirection(int direction) {
71         dir = direction;
72 }
73
74 // ----------------------------------------------------------------------------
75 void marPoint::setInside (bool ins) {
76         inside = ins;
77 }
78
79 // ----------------------------------------------------------------------------
80 void marPoint::setIntensity(double intensity)
81 {
82         this->intensity = intensity;
83 }
84
85 // ----------------------------------------------------------------------------
86 double marPoint::getIntensity()
87 {
88         return intensity;
89 }
90
91 // ----------------------------------------------------------------------------
92 void marPoint::setType(int type)
93 {
94         this->type = type;
95 }
96
97 // ----------------------------------------------------------------------------
98 int marPoint::getType()
99 {
100         return type;
101 }
102