<div>Hi developers,</div><div><br></div><div> Now I have a project on iOS with vtk. I try to read a dicom file to display in iPad. It works, but the size of the dicom image is limited. I try to resize the actor and vtkIOSRenderWindow, but no reaction, the following is my codes, Please help me which method can enlarge the dicom display!<span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;"></span></div><div> </div><div> <span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;">vtkObjectFactory</span><span style="font-family: Menlo; font-size: 11px;">::</span><span style="font-family: Menlo; font-size: 11px; color: rgb(61, 29, 129);">RegisterFactory</span><span style="font-family: Menlo; font-size: 11px;">(</span><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;">vtkRenderingOpenGL2ObjectFactory</span><span style="font-family: Menlo; font-size: 11px;">::</span><span style="font-family: Menlo; font-size: 11px; color: rgb(61, 29, 129);">New</span><span style="font-family: Menlo; font-size: 11px;">());</span></div>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"> </p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(61, 29, 129);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span><span style="font-variant-ligatures: no-common-ligatures; color: #703daa">NSArray</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> *paths = </span>NSSearchPathForDirectoriesInDomains<span style="font-variant-ligatures: no-common-ligatures; color: #000000">(</span>NSDocumentDirectory<span style="font-variant-ligatures: no-common-ligatures; color: #000000">, </span>NSUserDomainMask<span style="font-variant-ligatures: no-common-ligatures; color: #000000">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2">YES</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: #703daa">NSString</span> *basePath = paths.<span style="font-variant-ligatures: no-common-ligatures; color: #703daa">firstObject</span>;</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: #703daa">std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #703daa">string</span> fname([basePath <span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">UTF8String</span>]);</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> fname += </span>"/dicom/output_1.dcm"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">;</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span>vtkNew<span style="font-variant-ligatures: no-common-ligatures; color: #000000"><</span>vtkDICOMImageReader<span style="font-variant-ligatures: no-common-ligatures; color: #000000">> reader;</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> reader-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">SetFileName</span>(fname.<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">data</span>()); </p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><br></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span>vtkNew<span style="font-variant-ligatures: no-common-ligatures; color: #000000"><</span>vtkImageMapper<span style="font-variant-ligatures: no-common-ligatures; color: #000000">> imageMapper;</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(61, 29, 129);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> imageMapper-></span>SetInputConnection<span style="font-variant-ligatures: no-common-ligatures; color: #000000">(reader-></span>GetOutputPort<span style="font-variant-ligatures: no-common-ligatures; color: #000000">());</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"> </p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> <span style="font-variant-ligatures: no-common-ligatures; color: #703daa">vtkNew</span><<span style="font-variant-ligatures: no-common-ligatures; color: #703daa">vtkActor2D</span>> imageActor;</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> imageActor-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">SetMapper</span>(imageMapper.<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">Get</span>());</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> imageActor-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">SetDisplayPosition</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">500</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">1000</span>);</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);"> imageActor->SetHeight(500);</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);"> imageActor->SetWidth(500);</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"> </p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span>vtkNew<span style="font-variant-ligatures: no-common-ligatures; color: #000000"><</span>vtkRenderer<span style="font-variant-ligatures: no-common-ligatures; color: #000000">> renderer;</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> renderer-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">SetBackground</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">1</span>,<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">1</span>,<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">1</span>);</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(61, 29, 129);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> renderer-></span>GradientBackgroundOn<span style="font-variant-ligatures: no-common-ligatures; color: #000000">();</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> renderer-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">AddActor</span>(imageActor.<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">Get</span>());</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"> </p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span>vtkIOSRenderWindow<span style="font-variant-ligatures: no-common-ligatures; color: #000000"> *renWin = </span>vtkIOSRenderWindow<span style="font-variant-ligatures: no-common-ligatures; color: #000000">::</span><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">New</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">();</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"> renWin-><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">AddRenderer</span>(renderer.<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">Get</span>());</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(49, 89, 93);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> [</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2">self</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span>setVTKRenderWindow<span style="font-variant-ligatures: no-common-ligatures; color: #000000">:renWin];</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(49, 89, 93);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000"><br></span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-family: Verdana; font-size: 14px;">Thank you very much!</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-family: Verdana; font-size: 14px;"><br></span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-family: Verdana; font-size: 14px;">Bob</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);"><br></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);"></p>