[vtkusers] How to override the rubber band selection mode with 'move' for vtkGraphLayoutView

David Doria daviddoria at gmail.com
Thu Apr 12 11:20:09 EDT 2012


On Thu, Apr 12, 2012 at 10:21 AM, KrishnaPG <KrishnaPG at yahoo.com> wrote:
> Hello,
>
> I am using the vtkGraphLayoutView from the 'EasyView' sample. Graph Display
> is fine. Even the built-in selection of vertices and edges fines.
>
> But when trying to 'move' any selected vertex, it just draws a 'rubber
> band'. When debugged I saw that 'vtkInteractorStyleRubberBand2D' is being
> used.
>
> I would like the selected vertex to be 'moved' rather. Is there such
> interactor style that can override this 'vtkInteractorStyleRubberBand2D' ? I
> do not see the 'vtkInteractorStyleMove' class.
>
> Please help.
>
> Thank you.

This is a very hard thing to do. I started working on doing something
like this but never really got it working. Here is the direction I was
going:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Graph/InteractWithVertices

Maybe you can get some ideas from it.

David



More information about the vtkusers mailing list