[vtkusers] How to get vtkRenderWindowInteractor from vtkTkRenderWidget
Yi-Yu Chou
chouyiyu at hotmail.com
Wed Feb 26 18:13:06 EST 2003
Hello,
I want to specify the vtkPropPicker instance
for vtkRenderWindowInteractor to pick out the
3D coordinates, and I must use vtkTkRenderWidget
for vtk rendering. But I don't know how to get
the vtkRenderWindowInteractor from vtkTkRenderWidget.
My code is :
.........
style = vtkInteractorStyleUser()
pane = vtkTkRenderWidget()
pane.GetRenderWindow().GetInteractor().SetInteractorStyle(style)
......
The error is:
AttributeError: 'NoneType' object has no attribute 'SetInteractorStyle'
Can anyone show me how to do it?
Thanks a lot !!
Yi-Yu
_________________________________________________________________
MSN 相簿提供您最簡單的方式分享並列印您的相片,請移至 :
http://photos.msn.com.hk/support/worldwide.aspx
More information about the vtkusers
mailing list