[vtkusers] Is vtkPanel in vtk4.0 a Swing Component ?

Ken Martin ken.martin at kitware.com
Thu Mar 14 13:43:30 EST 2002


The VTKPanel window is an OpenGL window (it uses OpenGL hardware to
render). OpenGL windows cannot be swing components as far as I know.
This is a limitation of mixing any OpenGL window (aka heavyweight)
with any lightweight widget approach (mainly swing since most others
such as Tk/MFC etc are heavyweight). You could open an OpenGL window
in memory, render to memory and then paste the result up as an image
which would work with swing, but then you loose most of the
acceleration from the 3D hardware. Java3D has the exact same problem
and I don't expect any solution in the near future.

Ken


> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of ahmed Tokalak
> Sent: Thursday, March 14, 2002 12:06 PM
> To: vtkusers at public.kitware.com
> Subject: Re: Re: [vtkusers] Is vtkPanel in vtk4.0 a Swing
> Component ?
>
>
> Do anybody know when it will be a swing component ?
>
> yoshihiko_nagamine at pis.hitachi.co.jp wrote:
> > Hi
> >
> > I questioned same topic two or three weeks ago.
> > (See the following thread; Title: "Swing based VTKPanel")
> >
> > >Is vtkPanel in vtk4.0 a Swing Component ?
> >
> > The vtkPanel in vtk4.0 is not a Swing component (Light weight
> > component). It uses Canvas (AWT, heavy weight component).
> >
> > ----------------------------------------
> > Yoshihiko Nagamine
> ________________________________________________________________
> Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
> Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list