[vtkusers] vtkCellPicker: Check for a particular actor?

David Gobbi david.gobbi at gmail.com
Wed Mar 4 11:01:58 EST 2015


On Wed, Mar 4, 2015 at 8:29 AM, DVigneault <davis.vigneault at gmail.com>
wrote:

>
> vtkProp3DCollection* props =
> static_cast<vtkCellPicker*>(this->InteractionPicker)->GetProp3Ds();
>
> static_cast<vtkProp3DCollection*>(props)->IsItemPresent(this->IntendedActor);
>
> ...but I then get an "invalid use of incomplete type" error on the last
> line.  How can I go about ensuring that I've picked the right actor?
>

If the compiler says "invalid use of incomplete type", that means you
forgot to
include the header:

#include <vtkProp3DCollection.h>

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150304/889b2f8e/attachment.html>


More information about the vtkusers mailing list