[vtkusers] deriving my own class from vtkActor
Malcolm Drummond
malcolm at geovision.co.za
Sun Oct 20 06:59:33 EDT 2002
Hi Steffen
Try casting to your type of actor - the actor collection contains pointers
to type vtkActor.
Malcolm
----- Original Message -----
From: "Steffen Oeltze" <Steffen.Oeltze at Student.Uni-Magdeburg.DE>
To: "VTK users" <vtkusers at public.kitware.com>
Sent: Saturday, October 19, 2002 6:05 PM
Subject: [vtkusers] deriving my own class from vtkActor
> Dear VTK-users,
>
> I have derived my own class from vtkActor and I have added a couple of
> methods to this new class.
> After creating and modifying such a new actor I add it to my existing
> renderer. At some point I use
> vtkRenderer->GetActors() to retrieve my custom actors. Then, I would
> like to traverse the returned
> list and apply a custom method to each of my selfmade actors. However, I
> get the error:
>
> > 'method' : is not an element of 'vtkActor'
>
> I guess this is a problem of backward compatibility but I don't know how
> to solve it. Can anybody help me ?
>
> Steffen
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list