<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Still the same.<BR>
&nbsp;<BR>
Thanks<BR><BR>
<BLOCKQUOTE>
<HR>
From: w_e_b_m_a_s_t_e_r_6_9@hotmail.com<BR>To: rcpompeu@hotmail.com<BR>CC: vtkusers@public.kitware.com<BR>Subject: RE: [vtkusers] Removing Actors<BR>Date: Tue, 6 May 2008 01:52:48 +1000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>

<DIV style="TEXT-ALIGN: left">Put this line at the end and see if it does anything.<BR><BR>VTK3-&gt;GetRenderer()-&gt;Render();<BR></DIV><BR>
<DIV></DIV><BR><BR>
<BLOCKQUOTE>
<HR id=EC_EC_stopSpelling>
From: rcpompeu@hotmail.com<BR>To: frederic.danesi@dinccs.com<BR>Date: Mon, 5 May 2008 15:20:36 +0000<BR>CC: vtkusers@public.kitware.com<BR>Subject: Re: [vtkusers] Removing Actors<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
I'm using a button to show/disappear an actor. <BR><BR>Here's the code:<BR>&nbsp;<BR>vtkCubeSource *cubo = vtkCubeSource::New();<BR>&nbsp;&nbsp;&nbsp; cubo-&gt;SetXLength(14);<BR>&nbsp;&nbsp;&nbsp; cubo-&gt;SetYLength(14);<BR>&nbsp;&nbsp;&nbsp; cubo-&gt;SetZLength(14);<BR>&nbsp;&nbsp;&nbsp; cubo-&gt;SetCenter(a/2,b/2,c/2);<BR>&nbsp; vtkPolyDataMapper *cuboMapper = vtkPolyDataMapper::New();<BR>&nbsp;&nbsp;&nbsp; cuboMapper-&gt;SetInput(cubo-&gt;GetOutput());<BR>&nbsp; vtkActor *cubo1 = vtkActor::New();<BR>&nbsp;&nbsp;&nbsp; cubo1-&gt;SetMapper(cuboMapper);<BR>&nbsp;&nbsp;&nbsp; cubo1-&gt;GetProperty()-&gt;SetColor(0.52, 0.27, 0);<BR>&nbsp;&nbsp;&nbsp; cubo1-&gt;GetProperty()-&gt;SetAmbient(0.2);<BR>&nbsp;&nbsp;&nbsp; cubo1-&gt;GetProperty()-&gt;SetDiffuse(0.3);<BR>&nbsp;&nbsp;&nbsp; cubo1-&gt;GetProperty()-&gt;SetSpecular(0.8);<BR>&nbsp;<BR>if&nbsp; (tbnCubo-&gt;Down) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //&nbsp;the button is down = the cube appears<BR>&nbsp;&nbsp;&nbsp; VTK3-&gt;GetRenderer()-&gt;AddActor(cubo1);<BR>}<BR>else {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// the button is up = the cube disappears&nbsp;<BR>&nbsp;&nbsp;&nbsp; VTK3-&gt;GetRenderer()-&gt;RemoveActor(cubo1);<BR>&nbsp;&nbsp;&nbsp; VTK3-&gt;GetRenderer()-&gt;RemoveViewProp(cubo1);<BR>&nbsp;&nbsp;&nbsp; VTK3-&gt;GetRenderer()-&gt;Clear();<BR>}<BR>cubo-&gt;Delete();<BR>cuboMapper-&gt;Delete();<BR>cubo1-&gt;Delete();<BR>VTK3-&gt;Invalidate();<BR><BR>When the button is up the actor does not disappear.<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>
<BLOCKQUOTE>
<HR>
From: frederic.danesi@dinccs.com<BR>To: rcpompeu@hotmail.com<BR>Subject: RE: [vtkusers] Removing Actors<BR>Date: Mon, 5 May 2008 17:01:17 +0200<BR><BR>
<STYLE>
.ExternalClass .EC_shape
{;}
</STYLE>

<STYLE>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.EC_EmailStyle18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .EC_MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.EC_Section1
{page:Section1;}
</STYLE>

<DIV class=EC_EC_EC_Section1>
<P class=EC_EC_EC_MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Just a dumb question&nbsp;: is your outlineActor the same at each call or not ? … could you please provide us with more sourcecode (t least the code before your condition …) ?</SPAN></P>
<P class=EC_EC_EC_MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Fred.</SPAN></P>
<P class=EC_EC_EC_MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;</SPAN></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=EC_EC_EC_MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">De&nbsp;:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <B>De la part de</B> Renato Cesar Pompeu<BR><B>Envoyé&nbsp;:</B> lundi 5 mai 2008 15:45<BR><B>À&nbsp;:</B> vtkusers@public.kitware.com<BR><B>Objet&nbsp;:</B> [vtkusers] Removing Actors</SPAN></P></DIV></DIV>
<P class=EC_EC_EC_MsoNormal>&nbsp;</P>
<P class=EC_EC_EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Hello All,<BR>&nbsp;</SPAN></P>
<DIV id=EC_EC_EC_result_box>
<P class=EC_EC_EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">How do I remove an individual actor from the scene? My code does not work. Someone help me? Thanks.</SPAN></P></DIV>
<P class=EC_EC_EC_MsoNormal style="MARGIN-BOTTOM: 12pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">&nbsp;<BR>if&nbsp; (tbnIniciar-&gt;Down) {<BR>&nbsp;&nbsp;VTK3-&gt;GetRenderer()-&gt;AddActor(outlineActor);<BR>&nbsp; }<BR>&nbsp;<BR>else {<BR>&nbsp;&nbsp;&nbsp; VTK3-&gt;GetRenderer()-&gt;RemoveActor(outlineActor);<BR>&nbsp;&nbsp;&nbsp; VTK3-&gt;GetRenderer()-&gt;RemoveViewProp(outlineActor);<BR>&nbsp;&nbsp;&nbsp;&nbsp;VTK3-&gt;GetRenderer()-&gt;Clear();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;<BR>VTK3-&gt;Invalidate();<BR><BR></SPAN></P>
<DIV class=EC_EC_EC_MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=EC_EC_EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Notícias direto do New York Times, gols do Lance, videocassetadas e muitos outros vídeos no MSN Videos! <A href="http://video.msn.com/?mkt=pt-br" target=_blank>Confira já!</A></SPAN></P></DIV></DIV></BLOCKQUOTE><BR>
<HR>
Conheça já o Windows Live Spaces, o site de relacionamentos do Messenger! <A href="http://www.amigosdomessenger.com.br/" target=_blank>Crie já o seu!</A> </BLOCKQUOTE><BR>
<HR>
Hotmail on your mobile. <A href="http://www.livelife.ninemsn.com.au/article.aspx?id=343869" target=_blank>Never miss another e-mail with </A></BLOCKQUOTE><br /><hr />Conheça já o Windows Live Spaces, o site de relacionamentos do Messenger! <a href='http://www.amigosdomessenger.com.br' target='_new'>Crie já o seu!</a></body>
</html>