View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002900 | VTK | (No Category) | public | 2006-02-22 09:24 | 2016-08-12 09:54 | ||||
Reporter | blukske | ||||||||
Assigned To | Will Schroeder | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0002900: Missing OutlineOn/Off methods | ||||||||
Description | 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. | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |