[vtkusers] Please, help!
Cedric LE MAITRE
Cedric.Le.Maitre at ifremer.fr
Fri Jun 20 03:10:43 EDT 2003
Hello Anastasia !
I'm not a great VTK devlopper, but i'm used to Java. When you get an
Actor with the renderer.getActor(), it normally return a vtkActor class,
because it's in the method prototype... Could you cast the returned
object to your desired class ? like this:
vtkPanel panel = (vtkPanel) renderer.getActor();
If vtkPanel inherite from vtkActor, it'll work !
Hope i help you, but i'm not sure to have understood your question.
Cedric.
Anastasia Mironova a écrit :
>
> Hello,
> I am adding isosurafces and cross sections to a vtkPanel in Java,
> which are instances of vtkActor and vtkImageActor classes,
> consequently. For some reason the method GetActors that I apply to the
> renderer only returns objects of the vtkActor class of that panel and
> does not return/recognize any of the cross sections, which is quite
> inconvenient when I am trying to clear the panel since all the cross
> sections turn out to be unremovable this way. If you could please give
> any advise on how to fix this I would really appreciate it.
> Anastasia
>
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list