[vtkusers] Error with vtkImagePlaneWidget

RimAY rim.ayari at gmail.com
Thu Nov 5 04:22:25 EST 2009


Dear All , 

I use a vtk file, and i want to show two axes that precise the position of
any vertex selected by the user in the interactor window. 
I tried to use vtkCursor3D() but i don't get the wanted result. Also i used
vtkImagePlaneWidget but i always get the error : ERROR: In
.\vtkImagePlaneWidget.cxx, line 1412 vtkImagePlaneWidget (01CA0550):
SetInput() before setting plane orientation.

this is a part of the code:

data = vtkPolyData()
data = readerVTK.GetOutput()
data.Update()

interactor = vtk.vtkRenderWindowInteractor()
interactor.SetRenderWindow(renWin)

picker = vtk.vtkCellPicker()
picker.SetTolerance(0.005)

axes = vtkImagePlaneWidget()
axes.DisplayTextOn()
axes.SetPlaneOrientation(1) 
axes.SetInput(polyData)
axes.SetPicker(picker)
axes.SetPlaneOrientationToXAxes()
axes.SetInteractor(interactor)
axes.On()

Can you give me some idea.

Thanks.

----------------
RimAY
Computer Science Engineer, Master ATS Student 
Focus of Interest: Medical Image Processing
Ecole Nationale d'Ingénieurs de Tunis


-- 
View this message in context: http://old.nabble.com/Error-with-vtkImagePlaneWidget-tp26208641p26208641.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list