<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><FONT color=#0000ff size=3>Hi , vtk users , </FONT><BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#0000ff size=3> I meet a delicate problem when I write program to show a image , I use </FONT><BR>
<FONT color=#0000ff size=3>vtkDICOMImageReader ,vtkImageViewer2 and MFC , but I try use the Picture control in MFC (its base </FONT><BR>
<FONT color=#0000ff size=3>class is CFormView) , and I want to make the image shown in the Picture control . unluckily , if I use </FONT><BR>
<FONT color=#0000ff size=3>SetDirectoryName() method of vtkDICOMImageReader , I will get a blank Picture control and another </FONT><BR>
<FONT color=#0000ff size=3>vtk render window , but the image should be shown in the Picture control ! while I use the SetFileName</FONT><BR>
<FONT color=#0000ff size=3>() method and set only one image's path , that will be OK , the image is shown in the Picture </FONT><BR>
<FONT color=#0000ff size=3>control . however , if I change the SetFileName() method to SetDirectoryName() , what I get is just a </FONT><BR>
<FONT color=#0000ff size=3>blank Picture control and a additional vtk render window , here is the image !</FONT><BR>
<FONT color=#0000ff size=3> what is more , I have tried another way to do it , I change to use the MFC view (its base class is </FONT><BR>
<FONT color=#0000ff size=3>CView) , the result is : if I use SetFileName() of vtkDICOMImageReader and only read one image , it </FONT><BR>
<FONT color=#0000ff size=3>will be OK , but if I use SetDirectoryName() , I will get a blank view window and an additional vtk </FONT><BR>
<FONT color=#0000ff size=3>render window ! </FONT><BR>
<FONT color=#0000ff size=3> and I have doubted whether my pipeline is wrong , but if I change vtkImageViewer2 to </FONT><BR>
<FONT color=#0000ff size=3>vtkImageViewer , all will be OK , but I want to use vtkImageViewer2 , because it allows us to add </FONT><BR>
<FONT color=#0000ff size=3>other actor . so , who can tell me how should I use vtkIamgeViewer2 & vtkDICOMImageReader in MFC ? </FONT><BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#0000ff size=3> thank you with great regards !</FONT><BR>
<FONT color=#0000ff size=3> </FONT><BR>
<FONT color=#0000ff size=3> Mark</FONT><BR><br /><hr />使用新一代 Hotmail,更强大、更安全、更多存储空间! <a href='http://mail.live.com' target='_new'>立刻体验!</a></body>
</html>