<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi all</span></div><div><span><br></span></div><div>I am using vtkresliceimageviewer which is inherited from vtkImageViewer2 to produce MPR. I succeeded to create the three vtkCanvas and render on them. </div><div>The PROBLEM is there are another three old frames produced from the vtkResliceImageViewer and they are empty as the renderer of viewer now is directed to vtkcanvas. How i can delete them.</div><div><br></div><div>Below is the snippet of adding the viewers to the canvases;</div><div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">imagestyle=<span style="color: #a00069">new</span> vtkInteractorStyleImage();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>iren = <span style="color: #3600d1">sagitallCanvas</span>.GetRenderWindow().GetInteractor();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>iren.SetInteractorStyle(imagestyle);</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">sagittalViewer</span>.SetRenderWindow(<span style="color: #3600d1">sagitallCanvas</span>.GetRenderWindow());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">sagittalViewer</span>.SetRenderer(<span style="color: #3600d1">sagitallCanvas</span>.GetRenderer());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #329571"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>//sagitallCanvas.GetRenderWindow().AddRenderer(sagittalViewer.GetRenderer());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">sagittalViewer</span>.SetupInteractor(iren);</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #329571"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>//sagitallCanvas.GetRenderer().ResetCamera();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px"><span class="Apple-tab-span" style="white-space:pre">                </span></div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>imagestyle=<span style="color: #a00069">new</span> vtkInteractorStyleImage();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>iren = <span style="color: #3600d1">cronalCanvas</span>.GetRenderWindow().GetInteractor();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>iren.SetInteractorStyle(imagestyle);</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px"><span class="Apple-tab-span" style="white-space:pre">                </span></div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">cronalViewer</span>.SetRenderWindow(<span style="color: #3600d1">cronalCanvas</span>.GetRenderWindow());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">cronalViewer</span>.SetRenderer(<span style="color: #3600d1">cronalCanvas</span>.GetRenderer());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #329571"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>//cronalCanvas.GetRenderWindow().AddRenderer(cronalViewer.GetRenderer());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">cronalViewer</span>.SetupInteractor(iren);</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #329571"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>//cronalCanvas.GetRenderer().ResetCamera();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px"><br></div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>imagestyle=<span style="color: #a00069">new</span> vtkInteractorStyleImage();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>iren = <span style="color: #3600d1">axialCanvas</span>.GetRenderWindow().GetInteractor();</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span>iren.SetInteractorStyle(imagestyle);</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">axialViewer</span>.SetRenderWindow(<span style="color: #3600d1">axialCanvas</span>.GetRenderWindow());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">axialViewer</span>.SetRenderer(<span style="color: #3600d1">axialCanvas</span>.GetRenderer());</div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #3600d1">axialViewer</span>.SetupInteractor(iren);</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br></div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">Best Regards</div></div><div> </div><div>El-Hassan Mohamed <br>Biomedical engineering</div></div></body></html>