[vtkusers] [vtk-developers] rotate/zoom applied on one actor

David E DeMarle dave.demarle at kitware.com
Thu May 28 11:57:37 EDT 2009


Yes. Use vtkInteractorStyle[Trackball|Joystick]actor.

You should be able to do that interactively simply by hitting 'a'
which switches the from 'c'amera to 'a'ctor. (see
vtkInteractorStyleSwitch).

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Thu, May 28, 2009 at 10:19 AM, toulgen <toulgen at gmail.com> wrote:
>
>
> Hi,
>
>
>
> In vtkRenderer I have two actors: actor1 and actor2.
>
>
>
> My code:
>
> vtkRenderer *aRenderer = vtkRenderer::New();
>
> vtkRenderWindow *renWin = vtkRenderWindow::New();
>
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
>
>
>
>
>
> renWin->AddRenderer(aRenderer);
>
> iren->SetRenderWindow(renWin);
>
>
>
>>
> aRenderer->AddActor(actor1);
>
> aRenderer->AddActor(actor2);
>
>>
>
>
>
>
> iren->Initialize();
>
> iren->Start();
>
>
>
>
>
> It is possible to rotate/zoom only one actor with mouse?
>
> For example, rotate/zoom the Actor1 and the Actor2 is visible but the
> rotation/zoom applied with mouse is not applied on this actor.
>
>
>
> Thx
>
> ToulGen
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>



More information about the vtkusers mailing list