From: apo Date: Fri, 16 Sep 2005 07:40:40 +0000 (+0000) Subject: To simplify usage of the class X-Git-Tag: BR-D5-38-2003_D2005-12-10~194 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=031944db9a91cb45d4611c3c1a7e26cc9eed9600;p=modules%2Fvisu.git To simplify usage of the class --- 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);