[vtkusers] Picking actors in vtkImageViewer2
Bryn Lloyd
blloyd at vision.ee.ethz.ch
Thu Jun 17 02:06:25 EDT 2010
Hi Jothi,
How are you adding the actor? I do it like this:
vtkDataSetMapper *mapper = vtkDataSetMapper::New();
mapper->SetInput(dataset);
vtkActor *actor = vtkActor::New();
actor->SetMapper(mapper);
viewer->GetRenderer()->AddActor(actor);
If I press 'p' when the mouse is pointing to a vtkPolyData dataset, it
is picked (I see a red bounding box).
Cheers,
Bryn
Jothy wrote:
> Hi all,
>
> I am unable to pick the actors in vtkImageViewer2 in "actor" interaction
> mode. I think vtkImageViewer add all the actor with PickableOff(). So,
> how to pick the actor. I tried adding the actor with
> actor->PickableOn(), but no effect!
>
> Any hints?
>
> Thanks,
>
> Jothy
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
--
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7, ETF C110
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------
More information about the vtkusers
mailing list