| 111 | } |
| 112 | |
| 113 | int QmitkColorTransferFunctionCanvas::GetNearHandle(int x, int, unsigned int maxSquaredDistance) |
| 114 | { |
| 115 | for (int i = 0; i < this->GetFunctionSize(); i++) |
| 116 | { |
| 117 | std::pair<int, int> point = this->FunctionToCanvas(std::make_pair(GetFunctionX(i), (double)0.0)); |
| 118 | if ((unsigned int)((point.first - x) * (point.first - x)) < maxSquaredDistance) |
| 119 | { |
| 120 | return i; |
| 121 | } |
| 122 | } |
| 123 | return -1; |
| 124 | } |
| 125 | |
| 126 | void QmitkColorTransferFunctionCanvas::DoubleClickOnHandle(int handle) |
| 127 | { |
nothing calls this directly
no test coverage detected