34 #ifndef __QGoSynchronizedView3D_h
35 #define __QGoSynchronizedView3D_h
38 #include "itkCastImageFilter.h"
39 #include "itkSmartPointer.h"
42 #include "vtkSmartPointer.h"
43 #include "QGoGUILibConfigure.h"
47 class vtkEventQtSlotConnect;
78 template<
typename TPixel >
79 void SetImage(
typename itk::Image< TPixel, 3 >::Pointer iImage)
81 typedef itk::Image< TPixel, 3 > InputImageType;
83 typedef itk::CastImageFilter< InputImageType, VisuImageType >
85 typedef typename CastFilterType::Pointer CastFilterTypePointer;
87 CastFilterTypePointer castITKFilter = CastFilterType::New();
88 m_itkvtkConnector = itkvtkConnectorType::New();
90 castITKFilter->SetInput(iImage);
91 castITKFilter->Update();
92 m_itkvtkConnector->SetInput( castITKFilter->GetOutput() );
93 m_itkvtkConnector->Update();
95 SetImage( m_itkvtkConnector->GetOutput() );
112 void Render(
const int & iId);
147 int GetFullScreenView();
151 const QString & iBaseName =
tr(
"Snapshot-xy-") );
169 void SetFullScreenView(
const int & iId);
173 void SetFullXYScreenView();
177 void SetFullXZScreenView();
181 void SetFullYZScreenView();
185 void SetFullXYZScreenView();
208 #endif // QGoSynchronizedView3D_H