<!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> </DIV>
<DIV><FONT face=Arial size=2> 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> </DIV>
<DIV><FONT face=Arial size=2> Thanks a lot for any kind help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>/*-------------------------------------------------------------------*/<BR>void
FrontDialog::NewObjectShow(vtkPolyData*
PolyData)<BR>/*-------------------------------------------------------------------*/<BR>{<BR>
//Smooth the volume<BR> smooth =
vtkWindowedSincPolyDataFilter::New();<BR>
smooth->SetInput(PolyData);<BR>
smooth->SetNumberOfIterations(m_SmoothIterations);<BR>
smooth->BoundarySmoothingOn();<BR>
smooth->SetFeatureAngle(120);<BR>
smooth->SetEdgeAngle(90);<BR>
smooth->SetPassBand(0.01);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> DeformMapper =
vtkPolyDataMapper::New();<BR> DeformMapper->SetInput
(smooth->GetOutput());<BR>
DeformMapper->ScalarVisibilityOn();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> DeformActor =
vtkActor::New();<BR>
DeformActor->SetMapper(DeformMapper);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
//--------------<BR> // Adjust Light<BR>
//--------------<BR>
iren->LightFollowCameraOff();<BR>
ren3->LightFollowCameraOn();<BR> lightKit =
vtkLightKit::New();<BR>
lightKit->AddLightsToRenderer(ren3);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
//-------------<BR> // Add Renderer<BR>
//-------------<BR> ren3->AddActor(DeformActor);
<BR>
ren3->SetBackground(1,1,1);<BR> <BR> // Set Stereo
Mode<BR>
//---------------------------<BR>
renWin->AddRenderer(ren3);<BR>
iren->SetRenderWindow(renWin);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
renWin->Start();</FONT><FONT face=Arial
size=2> // Initialize the vtk
widget and generate the Qt Widget<BR>
renWin->SetSize(800-5,600-5); // Must be Called after Start() and
before Render() </FONT></DIV>
<DIV><FONT face=Arial
size=2> renWin->Render(); <BR>
vtkQtWindow = vtkQtObjectFactory::QtWidget(renWin);<BR>
vtkQtWindow->show(); </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> // Update the
GUI<BR>
slider_sag->setEnabled(true);<BR>
slider_axi->setEnabled(true);<BR>
slider_cor->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
& Image Processing (CVIP) Lab<BR>Department of Electrical & 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>
+1-502-852-6130
(Office)<BR>-----------------------------------------------------------------</FONT></DIV></BODY></HTML>