#include <pColorPoint.h>
Public Member Functions | |
pColorPoint (double x, wxColour col, bool isTemp) | |
~pColorPoint () | |
double | getRealX () |
wxColor | getColor () |
void | setRealX (double x) |
void | setColor (wxColour _col) |
bool | isTemporalColor () |
Private Attributes | |
double | realX |
wxColour | colour |
bool | isTemporal |
Definition at line 21 of file pColorPoint.h.
pColorPoint::pColorPoint | ( | double | x, | |
wxColour | col, | |||
bool | isTemp | |||
) |
Create a point of the function.
x | The x real value | |
_color | The asigned colour | |
isTemp | The temporal o fixed asignation to the color |
Definition at line 31 of file pColorPoint.cxx.
00032 { 00033 realX = x; 00034 colour = col; 00035 isTemporal = isTemp; 00036 }
pColorPoint::~pColorPoint | ( | ) |
Definition at line 38 of file pColorPoint.cxx.
wxColor pColorPoint::getColor | ( | ) |
Returns the colour of the point
colour |
Definition at line 57 of file pColorPoint.cxx.
References colour.
Referenced by pColorBar::getAddedColorsPointsList(), pGraphicalFunction::getColorPoints(), LogicalColorBar::getDataAt(), pColorBar::getLastMovedColorPoint(), pColorBar::getPointsListWithTemps(), pPlotter::GetValuesColorPointsFunction(), and LogicalColorBar::setColorPoints().
00058 { 00059 return colour; 00060 }
double pColorPoint::getRealX | ( | ) |
Definition at line 49 of file pColorPoint.cxx.
References realX.
Referenced by LogicalColorBar::addColorPoint(), LogicalColorBar::changeColor(), LogicalColorBar::deleteColorPoint(), pColorBar::getAddedColorsPointsList(), pGraphicalFunction::getColorPoints(), LogicalColorBar::getDataAt(), pColorBar::getLastMovedColorPoint(), LogicalColorBar::getPointersToRangeLimits(), pColorBar::getPointsListWithTemps(), pPlotter::GetValuesColorPointsFunction(), pColorBar::onMouseMove(), and LogicalColorBar::setColorPoints().
00050 { 00051 return realX; 00052 }
bool pColorPoint::isTemporalColor | ( | ) |
Indicates if the colour point is temporal or not
isTemporal |
Definition at line 66 of file pColorPoint.cxx.
References isTemporal.
Referenced by pColorBar::getAddedColorsPointsList(), pGraphicalFunction::getColorPoints(), pColorBar::getPointsListWithTemps(), pColorBar::onMouseMove(), and pColorBar::repaintView().
00067 { 00068 return isTemporal; 00069 }
void pColorPoint::setColor | ( | wxColour | _col | ) | [inline] |
Sets the colour of the point
_col |
Definition at line 64 of file pColorPoint.h.
References colour.
Referenced by LogicalColorBar::changeColor(), and pColorBar::getLastMovedColorPoint().
00065 { 00066 colour = _col; 00067 }
void pColorPoint::setRealX | ( | double | x | ) | [inline] |
Sets the x-value of the point
x |
Definition at line 56 of file pColorPoint.h.
References realX.
Referenced by pColorBar::getLastMovedColorPoint(), and pColorBar::onMouseMove().
00057 { 00058 realX = x; 00059 }
wxColour pColorPoint::colour [private] |
Definition at line 87 of file pColorPoint.h.
Referenced by getColor(), and setColor().
bool pColorPoint::isTemporal [private] |
Definition at line 91 of file pColorPoint.h.
Referenced by isTemporalColor().
double pColorPoint::realX [private] |
Definition at line 83 of file pColorPoint.h.
Referenced by getRealX(), and setRealX().