[vtkusers] Questions about vtkGraphLayoutView

David Doria daviddoria at gmail.com
Thu Jun 28 13:25:00 EDT 2012


>> 3. The interaction/selection style I'm using is based on
>> vtkInteractorStyleRubberBand2D and this is nice for making a rectangular
>> selection in the graph. However, I want to make a freeform lasso
>> selection,
>> i.e., draw a closed curve around the nodes I want to select (and, thus,
>> not
>> be limited to rectangular selection only). Is there a lasso
>> interaction/selection style I have missed or are there any examples of how
>> to implement this myself?
>
>
> I am not aware of lasso selection implemented in VTK.

It sounds like this might be pretty close to a lasso selection?

http://www.vtk.org/doc/nightly/html/classvtkImplicitSelectionLoop.html#details

Perhaps you could use
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ContourWidget to
produce the points for it?

If you look into vtkImplicitSelectionLoop, it would be great if you
could add an example to the wiki.

David



More information about the vtkusers mailing list