]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorPoint.cxx
creaMaracasVisu Library
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pColorPoint.cxx
1 //------------------------------------------------------------------------------------------------------------
2 // Class definition include
3 //------------------------------------------------------------------------------------------------------------
4 #include "pColorPoint.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(pColorPoint, wxObject)
20
21 //------------------------------------------------------------------------------------------------------------
22 // Constructors and destructors
23 //------------------------------------------------------------------------------------------------------------
24
25 /**
26 * Create a point of the function.
27 * @param x The x real value
28 * @param _color The asigned colour 
29 * @param isTemp The temporal o fixed asignation to the color
30 */
31 pColorPoint :: pColorPoint(double  x , wxColour  col, bool isTemp)
32 {
33         realX = x;
34         colour = col;   
35         isTemporal = isTemp;
36 }
37
38 pColorPoint :: ~pColorPoint()
39 {
40
41 }
42 //------------------------------------------------------------------------------------------------------------
43 // Methods implementation
44 //------------------------------------------------------------------------------------------------------------
45 /*
46 * Returns the x-value of the point
47 * @ realX
48 */
49 double pColorPoint :: getRealX ()
50 {
51         return realX;
52 }
53 /**
54         * Returns the colour of the point
55         * @retval colour
56         */
57 wxColor pColorPoint :: getColor ()
58 {
59         return colour;
60 }
61
62 /**
63 * Indicates if the colour point is temporal or not
64 * @retval isTemporal
65 */
66 bool pColorPoint :: isTemporalColor ()
67 {
68         return isTemporal;
69 }
70
71