|
(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);
|
|