<DIV>hi,vtkusers,</DIV>
<DIV> </DIV>
<DIV> I restruct 3D CT,and render it on MFC dialog.I extract a reslice using vtkImageReslice ,and then render it on the same dialog.I could see the two ones in the dialog at the sanme time,but when I close the window there is vtkoutputWindow and qiuckly disappear. Could anyone help me ? thanks</DIV>
<DIV> </DIV>
<DIV> render = vtkRenderer::New();<BR> render->SetBackground(0.1,0.2,0.4);</DIV>
<DIV> renWin = vtkRenderWindow::New();<BR> renWin->AddRenderer(render);<BR> iren = vtkRenderWindowInteractor::New();<BR> iren->SetRenderWindow(renWin);</DIV>
<DIV>render->AddVolume(newvol);</DIV>
<DIV> </DIV>
<DIV>void CVTK::VTKToDialog(CStatic * aStatic)<BR>{<BR> CRect rect;<BR> aStatic->GetClientRect(&rect);<BR> renWin->SetSize(rect.Width(),rect.Height());<BR> renWin->SetParentId(aStatic->m_hWnd);<BR> renWin->Render(); <BR>}<BR> </DIV>
<DIV> </DIV>
<DIV>regards,</DIV>
<DIV> mexiao<BR><BR></DIV><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://512.mail.163.com/mailstamp/stamp/dz/activity.do?from=footer">穿越地震带 纪念汶川地震一周年</a>
</span>