| 113 | } |
| 114 | |
| 115 | void MultiViewInterface::updateImageView(const sibr::Viewport & viewport, const sibr::Input & input) |
| 116 | { |
| 117 | sibr::Vector2f winSize = viewport.finalSize(); |
| 118 | currentActivePos = pixFromScreenPos(input.mousePosition(), winSize); |
| 119 | imagesViewBase->currentActivePos = currentActivePos; |
| 120 | |
| 121 | imgPixelScreenSize = screenPosPixelsFloat({ 0,{ 1,1 } }, winSize) - screenPosPixelsFloat({ 0,{ 0,0 } }, winSize); |
| 122 | |
| 123 | updateCurrentLayer(input); |
| 124 | |
| 125 | if (input.key().isActivated(sibr::Key::LeftShift)) { |
| 126 | return; |
| 127 | } |
| 128 | |
| 129 | updateZoomBox(input, winSize); |
| 130 | //updateCenter(imagesInput, imagesViewSize); |
| 131 | updateZoomScroll(input); |
| 132 | updateDrag(input, winSize); |
| 133 | } |
| 134 | |
| 135 | void MultiViewInterface::render() |
| 136 | { |
no test coverage detected