Skip to content

Commit d55b7f4

Browse files
committed
Fix zoom slider
1 parent 1c12912 commit d55b7f4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Interface/Modules/Visualization/InterfaceWithOsprayDialog.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,9 @@ InterfaceWithOsprayDialog::InterfaceWithOsprayDialog(const std::string& name, Mo
9696

9797
void InterfaceWithOsprayDialog::adjustZoom()
9898
{
99-
//qDebug() << __FUNCTION__ << zoomHorizontalSlider_->value() << zoomHorizontalSlider_->minimum() << zoomHorizontalSlider_->maximum();
10099
Point camPos(state_->getValue(CameraPositionX).toDouble(), state_->getValue(CameraPositionY).toDouble(), state_->getValue(CameraPositionZ).toDouble());
101-
//qDebug() << "camPos" << camPos.get_string().c_str();
102100
Point camView(state_->getValue(CameraViewX).toDouble(), state_->getValue(CameraViewY).toDouble(), state_->getValue(CameraViewZ).toDouble());
103-
//qDebug() << "camView" << camView.get_string().c_str();
104-
auto a = camView - camPos;
105-
//qDebug() << "distance: " << a.length();
101+
auto a = camPos - camView;
106102

107103
auto zoomFactor = 2 * (zoomHorizontalSlider_->value() + 1.0) / (zoomHorizontalSlider_->maximum() + 1);
108104
auto newPos = camView + zoomFactor*a;

0 commit comments

Comments
 (0)