[vtkusers] Removing Actors
Cameron Burnett
w_e_b_m_a_s_t_e_r_6_9 at hotmail.com
Mon May 5 10:31:09 EDT 2008
Is the program actually entering the 'else' section?? Maybe tbnIniciar->Down is always true? If you're not sure then throw in a print statement to see if anything prints in that section.
The RemoveActor function is the correct one to use. I am using that in the program that I'm working on at the moment.
If that is not the problem, then it could be that something is still using the actor that you're trying to remove. That can be a problem when using the Delete function to remove it from memory, however I'm not sure if it can be a problem for RemoveActor as well.
Hope that helps a bit,
Cameron.
From: rcpompeu at hotmail.com
To: vtkusers at public.kitware.com
Date: Mon, 5 May 2008 13:45:11 +0000
Subject: [vtkusers] Removing Actors
Hello All,
How do I remove an individual actor from the scene? My code does not work. Someone help me? Thanks.
if (tbnIniciar->Down) {
VTK3->GetRenderer()->AddActor(outlineActor);
}
else {
VTK3->GetRenderer()->RemoveActor(outlineActor);
VTK3->GetRenderer()->RemoveViewProp(outlineActor);
VTK3->GetRenderer()->Clear();
}
VTK3->Invalidate();
Notícias direto do New York Times, gols do Lance, videocassetadas e muitos outros vídeos no MSN Videos! Confira já!
_________________________________________________________________
It's simple! Sell your car for just $30 at CarPoint.com.au
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080506/2c3f57f4/attachment.htm>
More information about the vtkusers
mailing list