<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">Hi all,</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>I am trying to display a set of Dicom images from MRI. I want display
them in axial Sagittal and coronal plane. I read files by
vtkDICOMImageReader, and tried to use vtkImageReslice. But I only succeed
in the axial display. For Sagittal and coronal plane, What I got is only
black. Who know the reasom? I try to feed the output of realice1 to
viewer2 and viewer3, there are images. So it seems that vtkImageReslices
for these two plane do not work at all. is it the problem of no set the
original of the reader? Please help me. The code is attached below.
Thanks</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Regards</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Leo</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"></FONT></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">/</FONT></FONT><FONT size=3><FONT
face="Times New Roman">/ vtkDICOMImageReader read dicom files<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>vtkDICOMImageReader *reader2=
vtkDICOMImageReader::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>reader2->SetDirectoryName("E://FSPGR_3D"); </FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>reader2->SetDataSpacing(1,1,1);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>reader2->Update();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">// axial reslice<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>t1=vtkTransform::New();<SPAN
style="mso-tab-count: 1">
</SPAN><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-spacerun: yes">
</SPAN>t1->RotateX(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 2"> </SPAN>t1->RotateY(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 2"> </SPAN>t1->RotateZ(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>res1=vtkImageReslice::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>res1->SetInputConnection(reader2->
GetOutputPort());<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes"> </SPAN><SPAN lang=FR
style="mso-ansi-language: FR">res1->SetResliceTransform
(t1);<o:p></o:p></SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN lang=FR
style="mso-ansi-language: FR"><FONT size=3><FONT face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res1->InterpolateOn();<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN lang=FR style="mso-ansi-language: FR"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN></SPAN>res1->SetInterpolationModeToCubic();
<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res1->SetBackgroundLevel(1023);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">//Set viewer<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>viewer1 = vtkImageViewer::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer1->SetInput(res1->GetOutput());<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer1->SetColorWindow(255);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer1->SetColorLevel(127);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer1->SetZSlice(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer1->SetPosition(3,3);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>//////////////////////////////////////////////////////////////////////////////////////////////</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">// Sagittal reslice<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>t2=vtkTransform::New();<SPAN
style="mso-tab-count: 1">
</SPAN><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN>t2->RotateX(90);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>t2->RotateY(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>t2->RotateZ(0);</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>res2=vtkImageReslice::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>res2->SetOutputDimensionality(3);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res2->SetInputConnection(reader2->
GetOutputPort());<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res2->SetResliceTransform(t2);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res2->InterpolateOn();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res2->SetInterpolationModeToCubic(); <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res2->SetBackgroundLevel(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>viewer2 = vtkImageViewer::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer2->SetInput(res2->GetOutput());<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer2->SetColorWindow(255);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer2->SetColorLevel(127);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes"> </SPAN>int
max=viewer2->GetWholeZMax ();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN>int min=viewer2->GetWholeZMin
();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer2->SetZSlice((max+min)/2);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer2->SetPosition(268,8);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">////////////////////////////////////////////////////////////////////////////<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>t3=vtkTransform::New();<SPAN
style="mso-tab-count: 1">
</SPAN><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-spacerun: yes">
</SPAN>t3->RotateX(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>t3->RotateY(90);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>t3->RotateZ(90);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>res3=vtkImageReslice::New();</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>res3->SetOutputDimensionality(3);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res3->SetInputConnection(reader2->
GetOutputPort());<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res3->SetResliceTransform (t3);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res3->InterpolateOn();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res3->SetInterpolationModeToCubic(); <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>res3->SetBackgroundLevel(0);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>viewer3 = vtkImageViewer::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer3->SetInput(res3->GetOutput());<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer3->SetColorWindow(255);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer3->SetColorLevel(127);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN>max=viewer3->GetWholeZMax
();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN>min=viewer3->GetWholeZMin
();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer3->SetZSlice((max+min)/2);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN>viewer3->SetPosition(3,268);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">///////////////////////////////////////////////////////////////////////////////////////////////////////<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>iren1 =
vtkWin32RenderWindowInteractor::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-spacerun: yes">
</SPAN>viewer1->SetupInteractor(iren1);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>iren2 =
vtkWin32RenderWindowInteractor::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-spacerun: yes">
</SPAN>viewer2->SetupInteractor(iren2);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>iren3 =
vtkWin32RenderWindowInteractor::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-spacerun: yes">
</SPAN>viewer3->SetupInteractor(iren3);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>picker=vtkCellPicker::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>//picker->SetTolerance(0.00001);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>vtkCallbackCommand * cmd =
vtkCallbackCommand::New();<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>cmd->SetCallback(CVTK::MyExecute);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>cmd->SetClientData( this );<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>picker->AddObserver(vtkCommand::EndPickEvent,
cmd);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>iren1->SetPicker(picker);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>iren2->SetPicker(picker);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>iren3->SetPicker(picker);<o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>cmd->Delete();<SPAN
style="mso-tab-count: 2">
</SPAN></FONT></FONT></P></FONT></DIV></BODY></HTML>