[vtkusers] Picking actors in vtkImageViewer2
Jothy
jothybasu at gmail.com
Thu Jun 17 06:14:20 EDT 2010
I too add the actor in the sam eway you mentioned, except; I am using
vtkPolyDataMapper.Actually, I need to move the actors in actor interaction
mode (by pressing 'a').
Thanks,
Jothy
On Thu, Jun 17, 2010 at 7:06 AM, Bryn Lloyd <blloyd at vision.ee.ethz.ch>wrote:
> 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
> -------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100617/25d2c779/attachment.htm>
More information about the vtkusers
mailing list