<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>
<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->GetRenderer()->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> <BR>vtkCubeSource *cubo = vtkCubeSource::New();<BR> cubo->SetXLength(14);<BR> cubo->SetYLength(14);<BR> cubo->SetZLength(14);<BR> cubo->SetCenter(a/2,b/2,c/2);<BR> vtkPolyDataMapper *cuboMapper = vtkPolyDataMapper::New();<BR> cuboMapper->SetInput(cubo->GetOutput());<BR> vtkActor *cubo1 = vtkActor::New();<BR> cubo1->SetMapper(cuboMapper);<BR> cubo1->GetProperty()->SetColor(0.52, 0.27, 0);<BR> cubo1->GetProperty()->SetAmbient(0.2);<BR> cubo1->GetProperty()->SetDiffuse(0.3);<BR> cubo1->GetProperty()->SetSpecular(0.8);<BR> <BR>if (tbnCubo->Down) { // the button is down = the cube appears<BR> VTK3->GetRenderer()->AddActor(cubo1);<BR>}<BR>else { // the button is up = the cube disappears <BR> VTK3->GetRenderer()->RemoveActor(cubo1);<BR> VTK3->GetRenderer()->RemoveViewProp(cubo1);<BR> VTK3->GetRenderer()->Clear();<BR>}<BR>cubo->Delete();<BR>cuboMapper->Delete();<BR>cubo1->Delete();<BR>VTK3->Invalidate();<BR><BR>When the button is up the actor does not disappear.<BR> <BR> <BR> <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 : 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'"> </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 :</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é :</B> lundi 5 mai 2008 15:45<BR><B>À :</B> vtkusers@public.kitware.com<BR><B>Objet :</B> [vtkusers] Removing Actors</SPAN></P></DIV></DIV>
<P class=EC_EC_EC_MsoNormal> </P>
<P class=EC_EC_EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Hello All,<BR> </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'"> <BR>if (tbnIniciar->Down) {<BR> VTK3->GetRenderer()->AddActor(outlineActor);<BR> }<BR> <BR>else {<BR> VTK3->GetRenderer()->RemoveActor(outlineActor);<BR> VTK3->GetRenderer()->RemoveViewProp(outlineActor);<BR> VTK3->GetRenderer()->Clear();<BR> }<BR> <BR>VTK3->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>