Notes |
|
(0013443)
|
Karthik Krishnan
|
2008-09-11 15:14
|
|
Fixed in CVS.
vtkPlaneWidget.cxx
vtkPlaneWidget.h
/cvsroot/VTK/VTK/Widgets/vtkPlaneWidget.cxx,v <-- vtkPlaneWidget.cxx
new revision: 1.3; previous revision: 1.2
/cvsroot/VTK/VTK/Widgets/vtkPlaneWidget.h,v <-- vtkPlaneWidget.h
new revision: 1.2; previous revision: 1.1
/cvsroot/VTK/VTKData/Baseline/Widgets/TestPlaneWidget.png,v <-- TestPlaneWidget.png
new revision: 1.2; previous revision: 1.1
----------------------------
revision 1.2
date: 2008-09-11 15:11:28 -0400; author: karthik; state: Exp; lines: +3 -0; commitid: oeoI9WOj7qQm5oit;
BUG: Fixing bug 0007512.
The HandleSize is determined dynamically based on the window size, focal point etc. However when the handle size is set by the user, typically before the widget is enabled, the camera parameters are not yet available, since the widget hasnt been enabled yet. The handle size in this case is fudged to a factor of the user specified size. Once the widget is enabled, the handle size suddenly changes. The transition is ANNOYING.
The new way checks if the widget is being enabled for the first time and if so, sets a factor that preserves the old handle size on the first render, making the transition more gradual.
---------------------------- |
|
|
(0013444)
|
Karthik Krishnan
|
2008-09-11 15:19
|
|
As an additional note, to verify that this works,
On TestPlaneWidget.cxx, add the line
planeWidget->SetHandleSize( 0.1 );
before planeWidget->PlanceWidget();
The handle size should not jump suddenly at any point. |
|
|
(0013451)
|
David Cole
|
2008-09-12 11:20
|
|
Fix also merged to the VTK-5-2 branch:
/cvsroot/VTK/VTK/Widgets/vtkPlaneWidget.cxx,v <-- Widgets/vtkPlaneWidget.cxx
new revision: 1.2.32.1; previous revision: 1.2
/cvsroot/VTK/VTK/Widgets/vtkPlaneWidget.h,v <-- Widgets/vtkPlaneWidget.h
new revision: 1.1.58.1; previous revision: 1.1
/cvsroot/VTK/VTKData/Baseline/Widgets/TestPlaneWidget.png,v <-- Baseline/Widgets/TestPlaneWidget.png
new revision: 1.1.8.1; previous revision: 1.1 |
|