<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:Calibri}
@font-face
{font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New"}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Calibri","sans-serif"}
span.emailstyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.EmailStyle19
{font-family:"Calibri","sans-serif";
color:#1F497D}
span.HTMLPreformattedChar
{font-family:"Courier New"}
.MsoChpDefault
{font-size:10.0pt;
font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Anybody with visual studio 2012 around ?</span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have a text example, derived from Cone5.cxx which crashes/hangs when a vtkTextActor is added to the scene during a pick callback.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Can anybody confirm this behavior behavior before I submit it as a bug ?</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Best regards,</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jean-Michel</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:green">// First include the required header files for the VTK classes we are using.</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkConeSource.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkPolyDataMapper.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkRenderWindow.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkRenderWindowInteractor.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkCamera.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkActor.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkRenderer.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkInteractorStyleTrackballCamera.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkCallbackCommand.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkCellPicker.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkTextActor.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">#include</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"vtkTextProperty.h"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:green">// -----------------------------------------------------------------------</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:green">// define a callbackcommand subclass to react to picking events.</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:green">// here we simply add a vtkTextActor to the scene when the user picks</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:green">// the cone object, and remove it when the user picks outside of it.</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:green">//</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">class</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> myPickCallbackCommand : </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">public</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkCommand</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">{</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">private</span><span style="font-size:10.0pt; font-family:Consolas; color:black">:</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkRenderer* mRenderer;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkRenderWindowInteractor* mRenderWindowInteractor;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkTextActor* mTextActor;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">public</span><span style="font-size:10.0pt; font-family:Consolas; color:black">:</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">static</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> myPickCallbackCommand *New() { </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">return</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">new</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> myPickCallbackCommand;
}</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> myPickCallbackCommand() : mRenderer(0x0), mRenderWindowInteractor(0x0), mTextActor(0x0) {}</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">virtual</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">void</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> Execute(vtkObject *caller, </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">unsigned</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">long</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> eid, </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">void</span><span style="font-size:10.0pt; font-family:Consolas; color:black">*)</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> {</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">if</span><span style="font-size:10.0pt; font-family:Consolas; color:black">( eid != vtkCommand::EndPickEvent ) </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">return</span><span style="font-size:10.0pt; font-family:Consolas; color:black">;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">if</span><span style="font-size:10.0pt; font-family:Consolas; color:black">( !mRenderer || !mRenderWindowInteractor ) </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">return</span><span style="font-size:10.0pt; font-family:Consolas; color:black">;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkCellPicker *picker = </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">reinterpret_cast</span><span style="font-size:10.0pt; font-family:Consolas; color:black"><vtkCellPicker*>(caller);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkProp* picked = picker->GetViewProp();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">if</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> ( picked != NULL )</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> {</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cout << </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"Picked: "</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> << endl;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">if</span><span style="font-size:10.0pt; font-family:Consolas; color:black">(mTextActor == NULL)</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> {</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> std::cout << </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"adding a text actor"</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> << std::endl;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mTextActor = vtkTextActor::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mTextActor->SetInput(</span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"this is a test"</span><span style="font-size:10.0pt; font-family:Consolas; color:black">);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mTextActor->SetDisplayPosition(0.2,0.2);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mRenderer->AddActor2D( mTextActor );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mTextActor->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> }</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> }</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">else</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> {</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cout << </span><span style="font-size:10.0pt; font-family:Consolas; color:#A31515">"nothing picked\n"</span><span style="font-size:10.0pt; font-family:Consolas; color:black">;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">if</span><span style="font-size:10.0pt; font-family:Consolas; color:black">(mTextActor != NULL)</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> {</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mRenderer->RemoveActor2D(mTextActor);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mTextActor = NULL;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> }</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> }</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> mRenderWindowInteractor->Render();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> }</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">void</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> SetRenderer(vtkRenderer* ren) { </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">this</span><span style="font-size:10.0pt; font-family:Consolas; color:black">->mRenderer = ren; }</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">
</span><span style="font-size:10.0pt; font-family:Consolas; color:blue">void</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> SetRenderWindowInteractor(vtkRenderWindowInteractor* iren) { </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">this</span><span style="font-size:10.0pt; font-family:Consolas; color:black">->mRenderWindowInteractor = iren; }
</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">};</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:blue">int</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> main()</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">{</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkConeSource *cone = vtkConeSource::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cone->SetHeight( 3.0 );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cone->SetRadius( 1.0 );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cone->SetResolution( 10 );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> coneMapper->SetInputConnection( cone->GetOutputPort() );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkActor *coneActor = vtkActor::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> coneActor->SetMapper( coneMapper );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkRenderer *ren1= vtkRenderer::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> ren1->AddActor( coneActor );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> ren1->SetBackground( 0.1, 0.2, 0.4 );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkRenderWindow *renWin = vtkRenderWindow::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> renWin->AddRenderer( ren1 );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> renWin->SetSize( 300, 300 );</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> iren->SetRenderWindow(renWin);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkInteractorStyleTrackballCamera *style = vtkInteractorStyleTrackballCamera::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> iren->SetInteractorStyle(style);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:green">// add a cell picker with pickCallbackFunction;</span><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> vtkCellPicker* cellpicker = vtkCellPicker::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cellpicker->SetTolerance(0.1);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cellpicker->PickFromListOff();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> iren->SetPicker(cellpicker);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> myPickCallbackCommand* pickercbc = myPickCallbackCommand::New();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> pickercbc->SetRenderer(ren1);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> pickercbc->SetRenderWindowInteractor(iren);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cellpicker->AddObserver(vtkCommand::EndPickEvent,pickercbc);</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> pickercbc->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> iren->Initialize();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> iren->Start();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cellpicker->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> cone->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> coneMapper->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> coneActor->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> ren1->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> renWin->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> iren->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> style->Delete();</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span><span style="font-size:10.0pt; font-family:Consolas; color:blue">return</span><span style="font-size:10.0pt; font-family:Consolas; color:black"> 0;</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black">}</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:Consolas; color:black"> </span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif""> </span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified
that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.<br>
</font>
</body>
</html>