]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
PAL8824: correct distance is set on plane selection
authorjfa <jfa@opencascade.com>
Wed, 18 May 2005 09:35:17 +0000 (09:35 +0000)
committerjfa <jfa@opencascade.com>
Wed, 18 May 2005 09:35:17 +0000 (09:35 +0000)
src/VISUGUI/VisuGUI_ClippingDlg.cxx
src/VISUGUI/VisuGUI_ClippingDlg.h

index f202bdcf3932af6474e73268c8139343f69e83cb..c3facd12cc28fce9a44cb2b2c9341c7ec6a33b80 100644 (file)
@@ -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();
index 29b6cfcb793eb519606643f098c4031aa7cfa5dc..0c9639834b4545326fc53e071031f9e641f505b3 100644 (file)
@@ -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(); }