#include <pFunctionPoint.h>
Public Member Functions | |
pFunctionPoint (int x, int y) | |
int | getRealX () |
int | getRealY () |
void | setRealX (int x) |
void | setRealY (int y) |
void | setHasColor (bool hasColor) |
bool | getHasColorForLevel () |
Private Attributes | |
int | realX |
int | realY |
bool | hasColorForLevel |
Definition at line 27 of file pFunctionPoint.h.
pFunctionPoint::pFunctionPoint | ( | int | x, | |
int | y | |||
) |
Create a point of the function.
x | The x value | |
y | The y value |
Definition at line 29 of file pFunctionPoint.cxx.
00030 { 00031 realX = x; 00032 realY = y; 00033 hasColorForLevel = false; 00034 }
bool pFunctionPoint::getHasColorForLevel | ( | ) |
Definition at line 64 of file pFunctionPoint.cxx.
References hasColorForLevel.
00065 { 00066 return hasColorForLevel; 00067 }
int pFunctionPoint::getRealX | ( | ) |
Definition at line 42 of file pFunctionPoint.cxx.
References realX.
Referenced by pLogicalFunction::AddPoint(), pGraphicalFunction::addSplinesPoints(), pLogicalFunction::changePoint(), pLogicalFunction::DeletePoint(), pPlotterLayer::drawFunction(), pPlotterLayer::drawLineToMousePoint(), pGraphicalFunction::getBefore(), pLogicalFunction::getIndexOf(), pGraphicalFunction::GetNextXY(), HistogramWidget::getTransferenceFunctionPoint(), pGraphicalFunction::isInLine(), pPlotterWindow::onMouseMove(), pLogicalFunction::orderPoints(), pLogicalFunction::save(), pLogicalFunction::setEndPoints(), pLogicalFunction::setMaxPoints(), pLogicalFunction::setMinPoints(), pGraphicalFunction::setMinShowed(), pLogicalFunction::setStartPoints(), pLogicalFunction::validPointOnFunction(), and pGraphicalFunction::zooming().
00043 { 00044 return realX; 00045 }
int pFunctionPoint::getRealY | ( | ) |
Returns the y-value of the point @ realY
Returns the x-value of the point @ realY
Definition at line 50 of file pFunctionPoint.cxx.
References realY.
Referenced by pGraphicalFunction::addSplinesPoints(), pLogicalFunction::DeletePoint(), pPlotterLayer::drawFunction(), pPlotterLayer::drawLineToMousePoint(), pLogicalFunction::getIndexOf(), pGraphicalFunction::GetNextXY(), HistogramWidget::getTransferenceFunctionPoint(), pGraphicalFunction::isInLine(), pLogicalFunction::orderPoints(), pLogicalFunction::save(), pLogicalFunction::setEndPoints(), pLogicalFunction::setMaxPoints(), pLogicalFunction::setMinPoints(), pGraphicalFunction::setMinShowed(), pLogicalFunction::setStartPoints(), pLogicalFunction::validPointOnFunction(), and pGraphicalFunction::zooming().
00051 { 00052 return realY; 00053 }
void pFunctionPoint::setHasColor | ( | bool | hasColor | ) |
Definition at line 57 of file pFunctionPoint.cxx.
References hasColorForLevel.
00058 { 00059 hasColorForLevel = hasColor; 00060 }
void pFunctionPoint::setRealX | ( | int | x | ) | [inline] |
Sets the x-value of the point
x |
Definition at line 54 of file pFunctionPoint.h.
References realX.
Referenced by pPlotterWindow::onMouseMove().
00055 { 00056 realX=x; 00057 }
void pFunctionPoint::setRealY | ( | int | y | ) | [inline] |
Sets the y-value of the point
y |
Definition at line 62 of file pFunctionPoint.h.
References realY.
00063 { 00064 realY=y; 00065 }
bool pFunctionPoint::hasColorForLevel [private] |
Definition at line 92 of file pFunctionPoint.h.
Referenced by getHasColorForLevel(), and setHasColor().
int pFunctionPoint::realX [private] |
Definition at line 84 of file pFunctionPoint.h.
Referenced by getRealX(), and setRealX().
int pFunctionPoint::realY [private] |
Definition at line 88 of file pFunctionPoint.h.
Referenced by getRealY(), and setRealY().