[vtkusers] vtk and java

Marcelo Ruetalo ruetalo at cita.utoronto.ca
Thu Jul 31 15:42:53 EDT 2003


Thanks for your suggestion, Dennis. Calling GetRenderWindow().SetSize() 
followed by getIren().SetSize() worked.

Marcelo

> Hi Marcelo,
> 
> I had the exact same problem.  In order to get it to work, you need to 
> set the interactor size ( ie. getInteractor.SetSize(300, 300) ).
> 
> In the vtkCanvas.java, some condition isn't met when calling SetSize 
> in the window and the interactor size is never set.  I've already 
> submitted a bug report for this, but it doesn't look like it's been 
> assigned to anyone yet.
> 
> I hope this helps!
> 
> - Dennis
> 
> ----- Original Message -----
> From: Marcelo Ruetalo <ruetalo at cita.utoronto.ca>
> Date: Thursday, July 31, 2003 3:20 pm
> Subject: [vtkusers] vtk and java
> 
> > Hi,
> > 
> > I'm new to the list and my first question is the following:
> > 
> > I'm trying to build a GUI in java that makes use of vtkCanvas. 
> > vtkCanvas 
> > is created of some default small size (200x200 apparently) by its 
> > constructor and the only way that seems to work for resizing it is 
> > by 
> > resizing its container at runtime. Calling its SetSize() method at 
> > initialization seems to be ignored. How can I start the vtkCanvas 
> > of the 
> > size I want?
> > 
> > Thanks for your help,
> > Marcelo
> > 
> > _______________________________________________
> > This is the private VTK discussion list. 
> > Please keep messages on-topic. Check the FAQ at: <" 
> > target="l">http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> > 
> 




More information about the vtkusers mailing list