1 #ifndef __wxMaracasSuperpositionPanelH__
2 #define __wxMaracasSuperpositionPanelH__
4 // -----------------------------------------------------------------------------------------------------------
5 // WX headers inclusion.
6 // For compilers that support precompilation, includes <wx/wx.h>.
7 // -----------------------------------------------------------------------------------------------------------
17 #include <wx/scrolwin.h>
19 //------------------------------------------------------------------------------------------------------------
21 //------------------------------------------------------------------------------------------------------------
23 #include "wxMaracas_N_ViewersWidget.h"
24 #include "vtkImageData.h"
25 #include "wxVtkBaseView.h"
27 //------------------------------------------------------------------------------------------------------------
29 //------------------------------------------------------------------------------------------------------------
31 class creaMaracasVisu_EXPORT wxMaracasSuperpositionPanel : public wxPanel
36 wxMaracasSuperpositionPanel( std::vector<vtkImageData*> imgs, int type, wxWindow *parent, const wxPoint& pos=wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,long style= wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER, int vertStart=1, int vertEnd=1,
38 int horzStart=1, int horzEnd=1 );
41 ~wxMaracasSuperpositionPanel();
43 //------------------------------------------------------------------------------------------------------------
44 // Creational and initialization methods
45 //------------------------------------------------------------------------------------------------------------
47 void createSuperpositionPanel();
49 //------------------------------------------------------------------------------------------------------------
50 // Other functional methods
51 //------------------------------------------------------------------------------------------------------------
53 void getSpacing( double * spacing );
55 wxVtkBaseView* GetWxVtkBaseView();
56 wxVtkMPR2DView * GetwxVtkMPR2DView();
57 vtkImageData * GetshowingVID();
58 int GetImageDataSizeZ();
59 void RefreshInterface();
60 void ChangeImage(vtkImageData* img);
62 void SetVisibleAxis(bool ok);
71 std::vector<vtkImageData*> _images;
77 * Represents the panel for viewing
79 wxMaracas_N_ViewersWidget * theViewPanel;
82 * Represents the outer sizer of the IRMViewPanel
84 wxFlexGridSizer* outSizer;
86 double last_spacing[3];
90 #endif /*__wxMaracasSuperpositionPanelH__*/