[vtkusers] Help Needed with vtkCanvas/vtkPanel in JAVA
satyanarayana reddy
satyajanga at gmail.com
Thu May 10 10:13:22 EDT 2012
Hi All,
I am facing a problem when trying to work with vtkCanvas. i.e.
interaction is not working with vtkCanvas and the same is working for
vtkPanel.
I am pasting the simple block of code here. Please help me to find out the
bug.
*
Code For vtkPanel // Interaction is working perfectly fine
*vtkImageActor imageActor = new vtkImageActor();
imageActor.SetInput(color.GetOutput());
panel.GetRenderer().AddActor(imageActor);
panel.GetRenderer().ResetCamera();
add(panel,BorderLayout.CENTER);
*Code For vtkCanvas // Image is displaying Properly and interaction not
working
*
vtkImageActor imageActor = new vtkImageActor();
imageActor.SetInput(color.GetOutput());
canavs.GetRenderer().AddActor(imageActor);
canvas.GetRenderer().ResetCamera();
canvas.setInteractorStyle(new vtkInteractorStyleImage());
add(canvas,BorderLayout.CENTER);
Thank you.
Best Regards,
Satya.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120510/5a5c414b/attachment.htm>
More information about the vtkusers
mailing list