]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pFunctionPoint.h
720c11dcfe4f4ddfc3cc9b54ef1c56d2bf8e43cd
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pFunctionPoint.h
1 #ifndef __pFunctionPoint_h__
2 #define __pFunctionPoint_h__
3
4 // ----------------------------------------------------------------------------
5 // WX headers inclusion.
6 // For compilers that support precompilation, includes <wx/wx.h>.
7 // ----------------------------------------------------------------------------
8
9 #include <wx/wxprec.h>
10 #ifdef __BORLANDC__
11 #pragma hdrstop
12 #endif
13 #ifndef WX_PRECOMP
14 #include <wx/wx.h>
15 #endif
16
17
18 //----------------------------------------------------------------------------
19 // Includes
20 //----------------------------------------------------------------------------
21
22
23 //----------------------------------------------------------------------------
24 // Class definition
25 //----------------------------------------------------------------------------
26
27 class pFunctionPoint : public wxObject {
28
29         //----------------------------------------------------------------------------
30         // Methods definition
31         //----------------------------------------------------------------------------
32 public:
33         /**
34         * Create a point of the function.
35         * @param x The x value
36         * @param y The y value
37         */
38         pFunctionPoint(int  x , int  y ) ;
39
40         /*
41         * Returns the x-value of the point
42         * @ realX
43         */
44         int getRealX ();
45         /**
46         * Returns the y-value of the point
47         * @ realY
48         */
49         int getRealY ();
50         /**
51         * Sets the x-value of the point
52         * @param x
53         */
54         void setRealX(int x)
55         {
56                 realX=x;
57         }
58         /**
59         * Sets the y-value of the point
60         * @param y
61         */      
62         void setRealY(int y)
63         {
64                 realY=y;
65         }
66         /*
67         * Sets the state of having an asigned color
68         */
69         void setHasColor (bool hasColor);
70         /*
71         * Indicates if the point has an asigned color for the level 
72         */
73         bool getHasColorForLevel();
74
75
76         //----------------------------------------------------------------------------
77         // Attributes declration
78         //----------------------------------------------------------------------------
79
80 private:
81         /*
82         * The x-value of the point
83         */
84         int realX;
85         /*
86         * The y-value of the point
87         */          
88         int realY;
89         /*
90         *  Indicates if the point has an asigned color for the level
91         */
92         bool hasColorForLevel;
93
94         DECLARE_CLASS (pFunctionPoint)
95 };
96
97 #endif
98
99