[vtkusers] How can set vtkLineWidget2 end point with mouse events?

ran kor1581 at gmail.com
Tue Jan 30 07:09:22 EST 2018


Hi,
I'm using vtkLineWidget2 to draw line in vtkResliceImageViewer window. My
intention is to draw the line with mouse drag. ie. set the first point in
line with left mouse down event and second point in left mouse button up
event after triggering the vtkLineWidget2::on() (as like vtkDistanceWidget).
Now when call  vtkLineWidget2::on(), a point is appearing in window and need
to drag the handles to create line.
How can I draw the line with vtkLineWidget2  by setting the end points in
mouse events like vtkDistanceWidget operation.




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list