[Fwd: [vtk-developers] bugs? in widgets]
Burlen
burlen at apollo.sr.unh.edu
Tue Jul 19 08:57:37 EDT 2005
Hi Will, thanks for getting back to me. I have found that #2 is not a bug
after all, but rather I wasn't folllowing the correct procedure. To fix #2 I
called PlaceWidget(x1,x2,y1,y2,z1,z2), which set the widget up properly.
thanks for the help, looking forward to 5.0!
Burlen
On Tuesday 19 July 2005 06:08 am, Will Schroeder wrote:
> 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.
>
> Will
>
> At 10:29 AM 7/14/2005, Brad King wrote:
> >Will,
> >
> >Can you respond to this please?
> >
> >Thanks,
> >-Brad
> >
> >-------- 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 vtkRenderWindowInteractor.
> >
> >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
> >http://www.vtk.org/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list