[vtkusers] R: Creating 2 solids in the same window

Zampini Samuele samuele.zampini at epfl.ch
Tue Aug 25 12:10:26 EDT 2009


Yes it helps.
And you also answered to my second question I've just posted.

Thanks a lot. Tomorrow I will try.

Thanks a lot,

samuele!


________________________________________
Da: Francesco Babboni [francesco.babboni at gmail.com]
Inviato: martedì 25 agosto 2009 18.01
A: John Drescher
Cc: Zampini Samuele; VTK
Oggetto: Re: [vtkusers] Creating 2 solids in the same window

I think you can use two different vtkActor object,
then use AddActor method for the second vtkActor when you want to display it,
and RemoveActor when you want to hide it.
Hope this helps.

Cheers

Francesco


2009/8/25 John Drescher <drescherjm at gmail.com<mailto:drescherjm at gmail.com>>
On Tue, Aug 25, 2009 at 9:36 AM, Zampini Samuele<samuele.zampini at epfl.ch<mailto:samuele.zampini at epfl.ch>> wrote:
> Hi there,
>
> I would like to create a solid (let's say a cone) in a window after pushing a button. And I can do it. Now, the question is: if I wanna add another cone in THE SAME window, how can I do?
>
> I mean: the 2 events are linked to differen buttons. So, maybe, I wanna display the cone 1, the cone 2 or both of them.
>
> Could you help?
>
> With my codde (read below) 2 wrong things happen:
>
> 1. if I push the button for the cone one I see the con one (of course). Now, I wanna add the cone 2. I push the button and the cone 2 appears (but the 1st one disappears).
> 2. the second cone is frozen. I mean that I can not interact with it.
>

Do you have 1 actor per source?

John
_______________________________________________
Powered by www.kitware.com<http://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



--
Francesco Babboni



More information about the vtkusers mailing list