| 49 | } |
| 50 | |
| 51 | std::pair<double, double> QmitkTransferFunctionCanvas::CanvasToFunction(std::pair<int, int> canvasPoint) |
| 52 | { |
| 53 | return std::make_pair( |
| 54 | (canvasPoint.first - contentsRect().x()) * (m_Upper - m_Lower) / contentsRect().width() + m_Lower, |
| 55 | 1.0 - (double)(canvasPoint.second - contentsRect().y()) / contentsRect().height()); |
| 56 | } |
| 57 | |
| 58 | void QmitkTransferFunctionCanvas::mouseDoubleClickEvent(QMouseEvent *mouseEvent) |
| 59 | { |
no outgoing calls
no test coverage detected