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

Method updateZoomScroll

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

Source from the content-addressed store, hash-verified

580 }
581
582 void MultiViewInterface::updateZoomScroll(const sibr::Input & input)
583 {
584 double scroll = input.mouseScroll();
585
586 if (scroll != 0) {
587 float ratio = (scroll > 0 ? 0.75f : 1.33f);
588 if (input.key().isActivated(sibr::Key::LeftControl)) {
589 ratio *= ratio;
590 }
591 viewRectangle.diagonal *= ratio;
592 }
593 }
594
595 void MultiViewInterface::updateCenter(const sibr::Input & input, const sibr::Vector2f & winSize)
596 {

Callers

nothing calls this directly

Calls 2

isActivatedMethod · 0.80
keyMethod · 0.45

Tested by

no test coverage detected