<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear All:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp; I need to visualize the 
intermediate result during any two consective iterations. I just wrote a member 
fuction, and called it during iterations. But I could not get the results 
displayed on the moniter. The program did not generate any error, and the codes 
inside the member function were copied from some parts in the same program. That 
part worked well for the final result visualization. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; Thanks a lot for any kind help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>/*-------------------------------------------------------------------*/<BR>void 
FrontDialog::NewObjectShow(vtkPolyData* 
PolyData)<BR>/*-------------------------------------------------------------------*/<BR>{<BR>&nbsp;&nbsp;&nbsp; 
//Smooth the volume<BR>&nbsp;&nbsp;&nbsp; smooth = 
vtkWindowedSincPolyDataFilter::New();<BR>&nbsp;&nbsp;&nbsp; 
smooth-&gt;SetInput(PolyData);<BR>&nbsp;&nbsp;&nbsp; 
smooth-&gt;SetNumberOfIterations(m_SmoothIterations);<BR>&nbsp;&nbsp;&nbsp; 
smooth-&gt;BoundarySmoothingOn();<BR>&nbsp;&nbsp;&nbsp; 
smooth-&gt;SetFeatureAngle(120);<BR>&nbsp;&nbsp;&nbsp; 
smooth-&gt;SetEdgeAngle(90);<BR>&nbsp;&nbsp;&nbsp; 
smooth-&gt;SetPassBand(0.01);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; DeformMapper = 
vtkPolyDataMapper::New();<BR>&nbsp;&nbsp;&nbsp; DeformMapper-&gt;SetInput 
(smooth-&gt;GetOutput());<BR>&nbsp;&nbsp;&nbsp; 
DeformMapper-&gt;ScalarVisibilityOn();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; DeformActor = 
vtkActor::New();<BR>&nbsp;&nbsp;&nbsp; 
DeformActor-&gt;SetMapper(DeformMapper);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
//--------------<BR>&nbsp;&nbsp;&nbsp; // Adjust Light<BR>&nbsp;&nbsp;&nbsp; 
//--------------<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
iren-&gt;LightFollowCameraOff();<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
ren3-&gt;LightFollowCameraOn();<BR>&nbsp;&nbsp;&nbsp;&nbsp; lightKit = 
vtkLightKit::New();<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
lightKit-&gt;AddLightsToRenderer(ren3);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
//-------------<BR>&nbsp;&nbsp;&nbsp; // Add Renderer<BR>&nbsp;&nbsp;&nbsp; 
//-------------<BR>&nbsp;&nbsp;&nbsp; ren3-&gt;AddActor(DeformActor); 
<BR>&nbsp;&nbsp;&nbsp; 
ren3-&gt;SetBackground(1,1,1);<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; // Set Stereo 
Mode<BR>&nbsp;&nbsp;&nbsp; 
//---------------------------<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
renWin-&gt;AddRenderer(ren3);<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
iren-&gt;SetRenderWindow(renWin);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp; 
renWin-&gt;Start();</FONT><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Initialize the vtk 
widget and generate the Qt Widget<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
renWin-&gt;SetSize(800-5,600-5);&nbsp; // Must be Called after Start() and 
before Render()&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;renWin-&gt;Render();&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
vtkQtWindow = vtkQtObjectFactory::QtWidget(renWin);<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
vtkQtWindow-&gt;show();&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Update the 
GUI<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
slider_sag-&gt;setEnabled(true);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
slider_axi-&gt;setEnabled(true);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
slider_cor-&gt;setEnabled(true);</FONT></DIV>
<DIV><FONT face=Arial size=2>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Best 
Wishes,<BR>-----------------------------------------------------------------<BR>Dongqing 
Chen<BR>Ph.D Research Assistant<BR>Rm. 07, Paul C. Lutz Hall<BR>Computer Vision 
&amp; Image Processing (CVIP) Lab<BR>Department of Electrical &amp; Computer 
Engineering<BR>Speed School of Engineering<BR>University of 
Louisville<BR>Louisville, KY. 40292<BR>U.S.A<BR>Email: <A 
href="mailto:dqchen@cvip.louisville.edu">dqchen@cvip.louisville.edu</A><BR>Phone:+1-502-852-2789 
(Lab)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
+1-502-852-6130 
(Office)<BR>-----------------------------------------------------------------</FONT></DIV></BODY></HTML>