<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"\B9D1\C740 \ACE0\B515";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@\B9D1\C740 \ACE0\B515";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:\B3CB\C6C0\CCB4;
        panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
        {font-family:"\@\B3CB\C6C0\CCB4";
        panose-1:2 11 6 9 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"\B9D1\C740 \ACE0\B515";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"\B9D1\C740 \ACE0\B515";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page Section1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=KO link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hello, vtkusers,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I have question.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>When displaying the 2D image, how to Putt
2D image to the center of window.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Is there any function? I couldn’t find it.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Please help me.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체;color:blue'>this</span><span lang=EN-US
style='font-family:돋움체'>->pvtkImageMagnify = vtkImageMagnify::New();<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkImageMagnify->SetInputConnection(<span
style='color:blue'>this</span>->pvtkImageReader1->GetOutputPort());<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span style='color:blue'>this</span>->pvtkImageMagnify->SetMagnificationFactors(2,2,2);<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'><o:p> </o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkImageMapper=vtkImageMapper::New();<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkImageMapper->SetInput(<span
style='color:blue'>this</span>->pvtkImageMagnify->GetOutput());<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'>
<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkActor2D=vtkActor2D::New();<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkActor2D->SetMapper(<span
style='color:blue'>this</span>->pvtkImageMapper);<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkActor2D->GetPosition2Coordinate()->SetCoordinateSystemToViewport();<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkActor2D->SetPosition(0,0);<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> <span
style='color:blue'>this</span>->pvtkActor2D->SetPosition2(512,512);<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'><o:p> </o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> pVOXA_Ver10View->GetRenderer()->SetBackground(1,1,1);<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;word-break:keep-all'><span
lang=EN-US style='font-family:돋움체'> pVOXA_Ver10View->GetRenderer()->AddActor2D(<span
style='color:blue'>this</span>->pvtkActor2D);<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:돋움체'> pVOXA_Ver10View->GetRenderer()->ResetCamera();</span><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
<img src="http://webmail.pusan.ac.kr/cgi-bin/setconfirm.cgi?k=1265799988339669146548&u=madness78&d=pusan.ac.kr" width=1 height=1>
</body>
</html>