[Fwd: [vtk-developers] bugs? in widgets]

Will Schroeder will.schroeder at kitware.com
Tue Jul 19 06:08:12 EDT 2005

Hi Burlen-

Thank you for the feedback.

I am checking into #1 and #2, I have not seen this before. I know that #3 
is a problem and I have a fix for it that will be checked in soon. As you 
may have noticed, we have moved the widgets from the Hybrid directory to 
VTK/Widgets. I will see about fixing some of these issues before the VTK 
5.0 release is cut (it is imminent). Otherwise you'll have to use the CVS 
release to get the changes.


At 10:29 AM 7/14/2005, Brad King wrote:
>Can you respond to this please?
>-------- Original Message --------
>Subject: [vtk-developers] bugs? in widgets
>Date: Tue, 12 Jul 2005 11:29:20 -0400
>From: Burlen <burlen at apollo.sr.unh.edu>
>To: vtk-developers at vtk.org
>CC: to at unh.edu, vtkusers at vtk.org, tfogal at aspollo.sr.unh.edu, 
>john.dorelli at unh.edu
>Hi, I am having some problems re the widgets, specificall the vtkSphereWidget,
>vtkLineWidget, and vtkImplicitPlaneWidget, I am wondering if I have found
>bugs or am just doing something wrong, after posting to the users list I
>didn't recieve an answer so I'm trying here.
>first off, I'm using VtkQt http://staff.science.uva.nl/~dshamoni/VtkQt/ , and
>that may be complicating things, I don't know.
>second, I can't use SetInput(), or SetProp3D(), but rather need to explicitly
>size the widget and locate them, before turning them on or enabling them.
>here are the problems I am experiencing:
>1)colors don't change until mouse events fire in interactor....
>widgets actors are white by default changing the color to black doesn't affect
>the intial placement into the scene, and I have a white background. I am
>setting the color to balck before turning the widget on, or enabling it, but
>the changes don't take effect until there is some mouse interaction in
>I have experienced this with the outline of the implicit plane widget and the
>"handle" of the sphere widget.
>2) vtkSphereWidget intial handle placement...
>handle doesn't position itself on the surface of the sphere, instead it shows
>up at the center of the widget, which prevents user interaction, as the
>sphere itself absorbs mouse events. When I zoom inside the sphere, I can then
>click the handle, but as soon as I start to drag, it snaps to the shell of
>the shpere disssapear from the view. There is no SetHandlePosition(x,y,z), so
>I assume that the widget should auytomatically place the handle somewhere on
>the shell of the sphere, and not at the center, where it is inaccessable.
>3) linewidget handle resizing, implicit plane widget handle resizing ...
>when I have a line widget, or implicit plane widget in the scene, and I change
>the camera, location zoom in or out, the line widgets don't change size, but
>as soon as I click on the widget, the handles resize. This produces some
>weird behavior, like while zooming in the handles can get relatively large
>taking up most of the scene, then when you select the widget they shrink like
>75%. looks bad, and I can't use it like this. I need to find a way so that
>the handles resizes as the camera manipulation takes place, so that the
>widget handles are always the same relative size in the scene. It seems like
>what ever code that is resizing the handles when they get selected should
>fire each time the camera moves...
>If these are bugs then I guess I am out of luck using these widgets in my app,
>but any ideas for work arounds are welcome!
>Thanks, Burlen
>vtk-developers mailing list
>vtk-developers at vtk.org

More information about the vtk-developers mailing list