From 9ced1af70a78bdf67a3b5c7242ece01cd112c594 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 3 Oct 2005 06:33:44 +0000 Subject: [PATCH] To disable scaling and moving of the widget --- src/PIPELINE/VISU_ImplicitFunctionWidget.cxx | 5 +++-- src/PIPELINE/VISU_ImplicitFunctionWidget.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) 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: -- 2.39.2