[vtkusers] Moving a plane along normal

Miro Drahos mdrahos at robodoc.com
Thu Dec 5 16:46:12 EST 2013


Hi Michael,
void vtkPlane::Push(double)  will do what you want: displace the plane 
in the normal direction.

You might want to look at vtkInteractionStyleTrackBallActor to see how 
objects are repositioned/reoriented in the space on mouse interaction.
HTH,
Miro


On 12/05/2013 02:00 AM, mrHiggins wrote:
> Hey guys and ladies!
>
> I have a polydata and use a vtkInteractionStyleTrackBallCamera to move
> around. In a Special mode i can insert a plane and now i want wo make this
> plane movable but only in one Dimension (normal of the plane).
>
> I made a subclass of vtkinteractionstyletrackballcamera and react on the
> mousedown and mouseup Events. There i Color the plane so if you click on it
> the plane change to red. What is the typical "vtk" way to move this plane?
>
> - own interaction style where i parse the mousemoving into world space to
> know the direction i have to move the plane?
> - use normal interactionstyle "trackballcamera" and Change the style to
> "trackballactor" after clicking the plane and Change back at the end?
> - use a widget? (i still have the Problem with the "placewidget()" method,
> which wants a intptr instead of double[] for bounds in c#.
>
>
>
>
> is there any example of moving one object by drag and drop in a world you
> normally use vtkinteractorstyletrackballcamera?
>
>
>
> Michael
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Moving-a-plane-along-normal-tp5724848.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list