<div dir="ltr"><div>Hello,</div><div><br></div><div>I am using the vtkResliceImageViewer class in a project for displaying 2D slices from DICOM files in a Quadview (very similarly to the Examples\GUI\Qt\FourPaneViewer\QtVTKRenderWindow.cxx example). At some point the software takes screenshots of one of the render windows showing a 2D slice using the vtkWindowToImageFilter class. Up to this point everything works fine and screenshots are correctly taken and saved using the vtkPNGWriter class.</div>
<div><br></div><div>What I would like to do is before taking the screenshots hide the two axes shown by the vtkResliceCursoWidget. Once the screenshots are taken I would like to make the two axes visible again.</div><div>
<br></div><div>I have tried several ways to hide the axes but none of them seem to work. Here are some of the things I have tried (each one separately):</div><div><br></div><div>// Note:</div><div>// vtkSmartPointer<vtkResliceImageViewer> RIV[3];</div>
<div><br></div><div>//hides the widget including the 2D slices</div><div>RIV[selectedView]->GetResliceCursorWidget()->GetRepresentation()->SetVisibility(0);  </div><div><br></div><div>//hides the widget including the 2D slices</div>
<div>RIV[selectedView]->GetResliceCursorWidget()->GetResliceCursorRepresentation()->SetVisibility(0);</div><div><br></div><div>//no effect</div><div>RIV[selectedView]->GetResliceCursor()->SetThickness(0.0,0.0,0.0);</div>
<div><br></div><div>//A render was issued after each change</div><div>RIV[selectedView]->GetResliceCursorWidget()->Render();</div><div><br></div><div>Does anyone know how to hide the axes while the 2D slice image remains visible?</div>
<div><br></div><div>Thanks for your help.</div></div>