<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<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 name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
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;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"\6279\6CE8\6846\6587\672C Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:SimSun;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:#44546A;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#44546A;}
span.Char
        {mso-style-name:"\6279\6CE8\6846\6587\672C Char";
        mso-style-priority:99;
        mso-style-link:\6279\6CE8\6846\6587\672C;
        font-family:SimSun;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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=ZH-CN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Hi David,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>I modified the values from 1 to 0.75 in the resetView setting and it worked. Thank you very much for your help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>self->mKiwiApp->resetView(vesVector3f(0.0, 0.0, -0.75), vesVector3f(0.0, 0.75, 0.0), false);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Xiaopeng<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Ves [mailto:ves-bounces@public.kitware.com] <b>On Behalf Of </b>Busch, David E<br><b>Sent:</b> Wednesday, November 26, 2014 11:30 PM<br><b>To:</b> ves@public.kitware.com<br><b>Subject:</b> Re: [Ves] Initial rendering size of KiwiViewer<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div id=divtagdefaultwrapper><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>Xiaopeng,<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>If you are only doing something simple on the initial startup of the KiwiViewer, before performing any panning, transformations, etc... you might be able to get away with something like:<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>setCameraPosition(cameraPosition() * 0.75);  // (in vesKiwiBaseApp) for instance<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>If you are trying to perform a zoom after panning/etc... then you will need to take the 3d transformation into account.  Simply moving the camera wont work as your viewing angles will change, likely requiring you to properly translate and rotate the camera. <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>Take a look at:<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>vesKiwiBaseApp::setCameraPosition  & vesKiwiBaseApp::cameraPosition​<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>vesKiwiBaseApp::setCameraFocalPoint & vesKiwiBaseApp::cameraFocalPoint<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>vesKiwiBaseApp::setCameraViewUp & vesKiwiBaseApp::cameraViewUp<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>...as well as the dolly, roll, pan and rotate functions of vesKiwiCameraInteractor<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>​<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>Also look at vesRenderer::resetCamera().  There is some math that may be useful to you here, as well as some references to other classes and functions that may also be of use too.<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'><br>​David Busch<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>Mobile App Developer<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>University of Pittsburgh<o:p></o:p></span></p></div><p style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><div><div class=MsoNormal align=center style='text-align:center;background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#212121'><hr size=2 width="98%" align=center></span></div><div id=divRplyFwdMsg><p class=MsoNormal style='background:white'><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'> Ves <<a href="mailto:ves-bounces@public.kitware.com">ves-bounces@public.kitware.com</a>> on behalf of Xiaopeng Yang <<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>><br><b>Sent:</b> Wednesday, November 26, 2014 4:30 AM<br><b>To:</b> <a href="mailto:ves@public.kitware.com">ves@public.kitware.com</a><br><b>Subject:</b> [Ves] Initial rendering size of KiwiViewer</span><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#212121'> <o:p></o:p></span></p><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#212121'> <o:p></o:p></span></p></div></div><div><div><div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Dear VES users,</span><span lang=EN-US style='color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'> </span><span lang=EN-US style='color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Is there any zoom function for the camera so that I can show a larger initial rendering other than default size? I know in VTK, there is a zoom function for the camera, but not sure whether VES has that function or not.</span><span lang=EN-US style='color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'> </span><span lang=EN-US style='color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Thanks,</span><span lang=EN-US style='color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Xiaopeng</span><span lang=EN-US style='color:#212121'><o:p></o:p></span></p></div></div></div></div></div></div></div></body></html>