[vtkusers] interacting with vtkPanel (java/vtk)
John Biddiscombe
john.biddiscombe at mirada-solutions.com
Tue Jun 24 09:17:29 EDT 2003
Sorry, I am using vtkCanvas. I haven't removed the listeners, everything is normal. Events come in to the canvas, get despatched to the genericrenderwindoInteractor via the
public void mousePressed(MouseEvent e)
{
Lock();
code in here....
UnLock();
}
member.
I do have one unusual feature. There's a vtkCanvas inside a tabbed notebook. on one page is a small vtk window used for twiddling paramers (widgets inside), on another page (ie over the top of the notebook) are a load of radiobuttons/sliders etc. At the bottom of the screen is the main renderwindow. If I select the sliders etc page, change some values, then interact with the main window, the sliders all twiddle about - is it allowed, to have heavyweight components inside notebooks?
JB
> -----Original Message-----
> From: Jeff Lee [mailto:jeff at cdnorthamerica.com]
> Sent: 24 June 2003 13:41
> To: John Biddiscombe
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] interacting with vtkPanel (java/vtk)
>
>
> without seeing some code, i would guess that you added some
> listeners in
> your widgets to listen on mouse events in the render window
> and perhaps
> didn't remove them? perhaps post some code for a more exhautive
> evaluation... what you have there sounds pretty neat though.
> also, if
> you are using vtkPanel , how did you remove the default mouse/key
> listeners? vtkCanvas is kind of preferred if you are using
> interactor
> styles - it uses vtkGenericRenderWindowInteractor.
> -Jeff
>
> John Biddiscombe wrote:
>
> >Jeff,
> >
> >I've got some trouble with symptoms you might be able to diagnose...
> >
> >If I click a radiobutton to toggle between some options
> (say, mip, iso, composite...) and then click on my
> Renderwindow to interact (I'm using InteractorStyleTrackball
> - not using any mouse events captured in the vtkPanel etc but
> letting vtk handle them directly), my radio buttons toggle as
> I interact. Every frmae the buttons toggle between the
> different states. If I then click on a slider and drag it up
> or down, then click on the renderwindow, the slider goes up
> and down (between it's new state and previous state) and the
> radio buttons toggle. I can then click on another slider,
> some more buttons and back to the renderwindow and have a
> virtual circus of randomly flickering controls.
> >
> >Any ideas what's going on. Being a bit new to java I'm
> natuallr very impressed with how it manages this.
> >
> >JB
> >
> >
> >
> >
>
>
>
More information about the vtkusers
mailing list