MantisBT - VTK
View Issue Details
0002900VTK(No Category)public2006-02-22 09:242016-08-12 09:54
blukske 
Will Schroeder 
normalminoralways
closedmoved 
 
 
0002900: Missing OutlineOn/Off methods
I'm wondering why vtkImplicitPlaneWidget does not have a method to toggle the visibility of the outline bounding box. For example, vtkPointWidget features OutlineOn()/OutlineOff() to influence the visibility of the outline bounding box.
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036829
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0003794)
blukske   
2006-02-22 11:00   
I've made a patch agains CVS HEAD to support the requested functionality:

--- vtkImplicitPlaneWidget.h.orig 2006-02-22 16:17:15.000000000 +0100
+++ vtkImplicitPlaneWidget.h 2006-02-22 16:20:49.000000000 +0100
@@ -157,6 +157,12 @@
   vtkBooleanMacro(OutlineTranslation,int);

   // Description:
+ // Turn on/off the visibility of the outline bounding box.
+ vtkSetMacro(DrawOutline,int);
+ vtkGetMacro(DrawOutline,int);
+ vtkBooleanMacro(DrawOutline,int);
+
+ // Description:
   // Turn on/off the ability to move the widget outside of the input's bound
   vtkSetMacro(OutsideBounds,int);
   vtkGetMacro(OutsideBounds,int);
@@ -263,6 +269,7 @@
   vtkActor *OutlineActor;
   void HighlightOutline(int highlight);
   int OutlineTranslation; //whether the outline can be moved
+ int DrawOutline; //whether the outline bounding box is visible
   int ScaleEnabled; //whether the widget can be scaled
   int OutsideBounds; //whether the widget can be moved outside input's bounds



--- vtkImplicitPlaneWidget.cxx.orig 2006-02-22 16:17:21.000000000 +0100
+++ vtkImplicitPlaneWidget.cxx 2006-02-22 16:20:37.000000000 +0100
@@ -258,9 +258,12 @@
     i->AddObserver(vtkCommand::RightButtonReleaseEvent,
                    this->EventCallbackCommand, this->Priority);

- // add the outline
- this->CurrentRenderer->AddActor(this->OutlineActor);
- this->OutlineActor->SetProperty(this->OutlineProperty);
+ // add the outline (if desired)
+ if ( this->DrawOutline )
+ {
+ this->CurrentRenderer->AddActor(this->OutlineActor);
+ this->OutlineActor->SetProperty(this->OutlineProperty);
+ }

     // add the edges
     this->CurrentRenderer->AddActor(this->EdgesActor);


(0036829)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.