00001 //---------------------------------------------------------------------------- 00002 // Class definition include 00003 //---------------------------------------------------------------------------- 00004 #include "pFunctionPoint.h" 00005 00006 // ---------------------------------------------------------------------------- 00007 // WX headers inclusion. 00008 // For compilers that support precompilation, includes <wx/wx.h>. 00009 // ---------------------------------------------------------------------------- 00010 00011 #ifndef WX_PRECOMP 00012 #include <wx/wx.h> 00013 #endif 00014 00015 //---------------------------------------------------------------------------- 00016 // Class implementation 00017 //---------------------------------------------------------------------------- 00018 00019 IMPLEMENT_CLASS(pFunctionPoint, wxObject) 00020 00021 //---------------------------------------------------------------------------- 00022 // Constructors 00023 //---------------------------------------------------------------------------- 00029 pFunctionPoint :: pFunctionPoint(int x , int y ) 00030 { 00031 realX = x; 00032 realY = y; 00033 hasColorForLevel = false; 00034 } 00035 //---------------------------------------------------------------------------- 00036 // Methods 00037 //---------------------------------------------------------------------------- 00038 /* 00039 * Returns the x-value of the point 00040 * @ realX 00041 */ 00042 int pFunctionPoint ::getRealX () 00043 { 00044 return realX; 00045 } 00050 int pFunctionPoint :: getRealY () 00051 { 00052 return realY; 00053 } 00054 /* 00055 * Sets the state of having an asigned color 00056 */ 00057 void pFunctionPoint :: setHasColor (bool hasColor) 00058 { 00059 hasColorForLevel = hasColor; 00060 } 00061 /* 00062 * Indicates if the point has an asigned color for the level 00063 */ 00064 bool pFunctionPoint :: getHasColorForLevel() 00065 { 00066 return hasColorForLevel; 00067 } 00068 00069