]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To disable scaling and moving of the widget
authorapo <apo@opencascade.com>
Mon, 3 Oct 2005 06:33:44 +0000 (06:33 +0000)
committerapo <apo@opencascade.com>
Mon, 3 Oct 2005 06:33:44 +0000 (06:33 +0000)
src/PIPELINE/VISU_ImplicitFunctionWidget.cxx
src/PIPELINE/VISU_ImplicitFunctionWidget.h

index 236de5535d37df135dd478fc591ef4bcaf7147ef..50094e759b85c4982e41466f988da7cb9a0e7ec6 100644 (file)
@@ -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();
index 1590f303c8b777a5d760f138ecdfbab81f461f6d..ad3237c626ec8dffeeb6314d8b5e44f8e0485528 100644 (file)
@@ -61,6 +61,8 @@ public:
 
   void SetDistance (const float theDistance);
   float Distance()const;
+
+  vtkGetMacro(InitialLength,float);
   vtkImplicitFunction* ImplicitFunction();
 
   // Description: