[vtkusers] disable dragging and rotation

David E DeMarle dave.demarle at kitware.com
Wed Feb 8 13:30:47 EST 2012


from:
http://www.vtk.org/doc/nightly/html/classvtkActor-members.html
see
vtkProp::SetPickable()
vtkProp::SetDragable()

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Wed, Feb 8, 2012 at 1:25 PM, ankitramani <ankit_maruti at yahoo.co.in> wrote:
> Hello,
>
> I used two object in my code. i can drag and rotate it. But the problem is
> that i want to disable dragging and rotation of one object. can you help me
> to figure out this problem..?
>
> i sending my code.
>
> int currPos[3];
> interactor->GetEventPosition(currPos);
>
>                                        // Pick from this location.
> vtkSmartPointer<vtkPropPicker>  picker =
> vtkSmartPointer<vtkPropPicker>::New();
> picker->Pick(currPos[0], currPos[1], currPos[2], this->renderer3D);
> vtkProp3D * p;
> p = picker->GetProp3D();
>
> vtkSmartPointer<vtkInteractorStyleTrackballActor> style =
> vtkSmartPointer<vtkInteractorStyleTrackballActor>::New();
>        interactor->SetInteractorStyle(style);
>
>                                        interactor->Initialize();
>                                        interactor->Start();
>
>
>
> thnx in advance.....
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/disable-dragging-and-rotation-tp5467294p5467294.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