[vtkusers] How to use vtkLineWidget2

Jothy jothybasu at gmail.com
Thu May 20 07:15:05 EDT 2010


Hi all,

Has anyone used vtkLineWidget2 with vtkImageViewer2 before?  I am having
problem in interacting with it and It does not show line between two end
points.

here is my code

LineA=vtk.vtkLineWidget2()
LineA.CreateDefaultRepresentation()
LineA.SetInteractor(self.frameA.GetRenderWindow().GetInteractor())
LineA.On()

And there is no example on the wiki.

Probably if someone helps me to fix this, I will add one.

Thanks,

Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100520/e91cd549/attachment.htm>


More information about the vtkusers mailing list