[vtkusers] Use example of vtkImplicitPlaneWidget.

Shyam Prakash ramakrishna.prakash at quest-global.com
Mon Sep 15 09:07:18 EDT 2003


vtkImplicitPlaneWidget planeWidget = new vtkImplicitPlaneWidget();
planeWidget.setInteractor(iren);  //iren is vtkRenderWindowInteractor
planeWidget.SetInput(inputForTheWidget);
planeWidget.SetPlaceFactor(1.0);
planeWidget.PlaceWidget();
planeWidget.SetNormal(normal); // normal of your target plane
planeWidget.SetOrigin(origin); // origin of your target plane
planeWidget.UpdatePlacement();
planeWidget.EnabledOn();


You need to lock the vtkCanvas before placing the widget. Let me know if
you have any questions.

--Shyam


-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Said.
Sent: Monday, September 15, 2003 6:21 PM
To: vtkusers
Subject: [vtkusers] Use example of vtkImplicitPlaneWidget.

Hi vtkusers,

Does someone have an example of use, in Java lamgage, of the
vtkImplicitPlaneWidget class ?

Thanks for help.
_______________________________________________
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://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list