MantisBT - VTK
View Issue Details
0006268VTK(No Category)public2008-01-23 12:132016-08-12 09:54
Jerome Robert 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0006268: Size of vtkCanvas is not properly set
If you do this

JFrame frame = new JFrame();
vtkCanvas canvas = new vtkCanvas();
frame.add(canvas, BorderLayout.CENTER);
frame.setVisible(true);
frame.setSize(800,600);

the underlying vtkRenderWindowInteractor size is not properly set and picking occures at random position.

I get this error with vtkCanvas.java revision 1.9 and vtkPanel.java revision 1.17.
A workaround is to disable the windowset test in the vtkCanvas class like this:
        final vtkCanvas canvas = new vtkCanvas()
        {
            @Override
            public void setSize(int x, int y) {
                super.setSize(x, y);
                  Lock();
                  rw.SetSize(x,y);
                  iren.SetSize(x, y);
                  iren.ConfigureEvent();
                  UnLock();
            }
        };
No tags attached.
Issue History
2008-01-23 12:13Jerome RobertNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036945
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036945)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.