View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006268VTK(No Category)public2008-01-23 12:132016-08-12 09:54
ReporterJerome Robert 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006268: Size of vtkCanvas is not properly set
DescriptionIf 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.
Additional InformationA 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();
            }
        };
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0036945)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-01-23 12:13 Jerome Robert New Issue
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036945
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved
2016-08-12 09:54 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team