From e64dad04aef30423a7951a52fa0c77a7c75822f5 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 18 May 2005 09:35:17 +0000 Subject: [PATCH] PAL8824: correct distance is set on plane selection --- src/VISUGUI/VisuGUI_ClippingDlg.cxx | 2 +- src/VISUGUI/VisuGUI_ClippingDlg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.cxx b/src/VISUGUI/VisuGUI_ClippingDlg.cxx index f202bdcf..c3facd12 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.cxx +++ b/src/VISUGUI/VisuGUI_ClippingDlg.cxx @@ -776,7 +776,7 @@ void VisuGUI_ClippingDlg::SetCurrentPlaneParam() aPlane->SetOrientation(anOrientation); aPlane->SetDistance(getDistance()); - myPrs3d->SetPlaneParam(aNormal, getDistance(), aPlane); + myPrs3d->SetPlaneParam(aNormal, 1. - getDistance(), aPlane); vtkDataSet* aDataSet = myPrs3d->GetInput(); float *aPnt = aDataSet->GetCenter(); diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.h b/src/VISUGUI/VisuGUI_ClippingDlg.h index 29b6cfcb..0c963983 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.h +++ b/src/VISUGUI/VisuGUI_ClippingDlg.h @@ -49,7 +49,7 @@ public: bool modal = false, WFlags fl = 0 ); - float getDistance() { return 1. - (float)SpinBoxDistance->value(); } + float getDistance() { return (float)SpinBoxDistance->value(); } void setDistance(const float theDistance) { SpinBoxDistance->setValue(theDistance); } double getRotation1() { return SpinBoxRot1->value(); } double getRotation2() { return SpinBoxRot2->value(); } -- 2.39.2