From: apo Date: Mon, 3 Oct 2005 06:33:44 +0000 (+0000) Subject: To disable scaling and moving of the widget X-Git-Tag: BR-D5-38-2003_D2005-12-10~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ced1af70a78bdf67a3b5c7242ece01cd112c594;p=modules%2Fvisu.git To disable scaling and moving of the widget --- diff --git a/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx b/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx index 236de553..50094e75 100644 --- a/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx +++ b/src/PIPELINE/VISU_ImplicitFunctionWidget.cxx @@ -98,7 +98,8 @@ VISU_ImplicitFunctionWidget::VISU_ImplicitFunctionWidget() this->OutlineMapper->SetInput(this->Outline->GetOutput()); this->OutlineActor = vtkActor::New(); this->OutlineActor->SetMapper(this->OutlineMapper); - this->OutlineTranslation = 1; + this->OutlineActor->PickableOff(); + this->OutlineTranslation = 0; this->Cutter = vtkCutter::New(); this->Cutter->SetInput(this->Box); @@ -1099,7 +1100,7 @@ void VISU_ImplicitFunctionWidget::PlaceWidget(float bds[6]) (bounds[3]+bounds[2])/2.0, (bounds[5]+bounds[4])/2.0); - static float DIST_COEFF = 0.025; + static float DIST_COEFF = 0.33; SetDistance(this->InitialLength*DIST_COEFF); this->UpdateRepresentation(); diff --git a/src/PIPELINE/VISU_ImplicitFunctionWidget.h b/src/PIPELINE/VISU_ImplicitFunctionWidget.h index 1590f303..ad3237c6 100644 --- a/src/PIPELINE/VISU_ImplicitFunctionWidget.h +++ b/src/PIPELINE/VISU_ImplicitFunctionWidget.h @@ -61,6 +61,8 @@ public: void SetDistance (const float theDistance); float Distance()const; + + vtkGetMacro(InitialLength,float); vtkImplicitFunction* ImplicitFunction(); // Description: