From 031944db9a91cb45d4611c3c1a7e26cc9eed9600 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 16 Sep 2005 07:40:40 +0000 Subject: [PATCH] To simplify usage of the class --- src/PIPELINE/VISU_ImplicitFunctionWidget.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx b/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx index b88cdad0..5d2130e5 100644 --- a/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx +++ b/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx @@ -1086,6 +1086,10 @@ void VISU_ImplicitFunctionWidget::PlaceWidget(float bds[6]) (bounds[3]-bounds[2])*(bounds[3]-bounds[2]) + (bounds[5]-bounds[4])*(bounds[5]-bounds[4])); + this->SetOrigin((bounds[1]+bounds[0])/2.0, + (bounds[3]+bounds[2])/2.0, + (bounds[5]+bounds[4])/2.0); + static float DIST_COEFF = 0.025; SetDistance(this->InitialLength*DIST_COEFF); -- 2.39.2