]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorPoint.h
ec832f8f557896220d80445ddd397500ca90be51
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pColorPoint.h
1 #ifndef __pColorPoint_h__
2 #define __pColorPoint_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 // Class definition
19 //------------------------------------------------------------------------------------------------------------
20
21 class pColorPoint : public wxObject {
22
23 public:
24         //------------------------------------------------------------------------------------------------------------
25         // Constructors and destructors
26         //------------------------------------------------------------------------------------------------------------
27
28         /**
29         * Create a point of the function.
30         * @param x The x real value
31         * @param _color The asigned colour 
32         * @param isTemp The temporal o fixed asignation to the color
33         */
34         pColorPoint(double  x , wxColour  col, bool isTemp);
35
36         ~pColorPoint();
37
38         //------------------------------------------------------------------------------------------------------------
39         // Methods definition
40         //------------------------------------------------------------------------------------------------------------
41
42         /*
43         * Returns the x-value of the point
44         * @retval realX
45         */
46         double getRealX ();
47         /**
48         * Returns the colour of the point
49         * @retval colour
50         */
51         wxColor getColor ();
52         /**
53         * Sets the x-value of the point
54         * @param x
55         */
56         void setRealX(double x)
57         {
58                 realX = x;
59         }
60         /**
61         * Sets the  colour of the point
62         * @param _col
63         */      
64         void setColor(wxColour _col)
65         {
66                 colour = _col;
67         }
68
69         /**
70         * Indicates if the colour point is temporal or not
71         * @retval isTemporal
72         */
73         bool isTemporalColor ();
74         
75         //------------------------------------------------------------------------------------------------------------
76         // Attributes declration
77         //------------------------------------------------------------------------------------------------------------
78
79 private:
80         /*
81         * The x-value of the point
82         */
83         double realX;
84         /*
85         * The colour of the point
86         */          
87         wxColour colour;
88         /*
89         * Represents the attibute of being temporal or not
90         */
91         bool isTemporal;
92         
93         DECLARE_CLASS (pColorPoint)
94 };
95
96 #endif
97
98