View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002900VTK(No Category)public2006-02-22 09:242016-08-12 09:54
Reporterblukske 
Assigned ToWill Schroeder 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002900: Missing OutlineOn/Off methods
DescriptionI'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.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0003794)
blukske (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036829
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team