]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pFunctionPoint.cxx
ab7e24875a36c8e4b42dbede3ec0f1456bce8ef7
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pFunctionPoint.cxx
1 //----------------------------------------------------------------------------
2 // Class definition include
3 //----------------------------------------------------------------------------
4 #include "pFunctionPoint.h"
5
6 // ----------------------------------------------------------------------------
7 // WX headers inclusion.
8 // For compilers that support precompilation, includes <wx/wx.h>.
9 // ----------------------------------------------------------------------------
10
11 #ifndef WX_PRECOMP
12 #include <wx/wx.h>
13 #endif
14
15 //----------------------------------------------------------------------------
16 // Class implementation
17 //----------------------------------------------------------------------------
18
19 IMPLEMENT_CLASS(pFunctionPoint, wxObject)
20
21 //----------------------------------------------------------------------------
22 // Constructors
23 //----------------------------------------------------------------------------
24 /**
25 * Create a point of the function.
26 * @param x The x value
27 * @param y The y value
28 */
29 pFunctionPoint :: pFunctionPoint(int  x , int  y ) 
30 {
31         realX = x;
32         realY = y;
33         hasColorForLevel = false;
34 }
35 //----------------------------------------------------------------------------
36 // Methods
37 //----------------------------------------------------------------------------
38 /*
39 * Returns the x-value of the point
40 * @ realX
41 */
42 int pFunctionPoint ::getRealX ()
43 {
44         return realX;
45 }
46 /**
47 * Returns the x-value of the point
48 * @ realY
49 */
50 int pFunctionPoint :: getRealY ()
51 {
52         return realY;
53 }
54 /*
55 * Sets the state of having an asigned color
56 */
57 void  pFunctionPoint :: setHasColor (bool hasColor)
58 {
59         hasColorForLevel = hasColor;
60 }
61 /*
62 * Indicates if the point has an asigned color for the level 
63 */
64 bool  pFunctionPoint :: getHasColorForLevel()
65 {
66         return hasColorForLevel;
67 }
68
69