| 42 | } |
| 43 | |
| 44 | std::pair<int, int> QmitkTransferFunctionCanvas::FunctionToCanvas(std::pair<double, double> functionPoint) |
| 45 | { |
| 46 | return std::make_pair( |
| 47 | (int)((functionPoint.first - m_Lower) / (m_Upper - m_Lower) * contentsRect().width()) + contentsRect().x(), |
| 48 | (int)(contentsRect().height() * (1 - functionPoint.second)) + contentsRect().y()); |
| 49 | } |
| 50 | |
| 51 | std::pair<double, double> QmitkTransferFunctionCanvas::CanvasToFunction(std::pair<int, int> canvasPoint) |
| 52 | { |
no outgoing calls
no test coverage detected