MCPcopy Create free account
hub / github.com/city-super/Octree-GS / updateImageView

Method updateImageView

SIBR_viewers/src/core/view/interface/Interface.cpp:115–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

onUpdateMethod · 0.80

Calls 3

finalSizeMethod · 0.80
isActivatedMethod · 0.80
keyMethod · 0.45

Tested by

no test coverage detected