1 /*=========================================================================
4 Module: $RCSfile: wxMaracas_N_ViewersWidget.h,v $
6 Date: $Date: 2009/03/24 10:49:21 $
7 Version: $Revision: 1.3 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
18 #ifndef __WX__MARACAS__N_VIEWERSWIDGET__H__
19 #define __WX__MARACAS__N_VIEWERSWIDGET__H__
22 // -----------------------------------------------------------------------------------------------------------
23 // WX headers inclusion.
24 // For compilers that support precompilation, includes <wx/wx.h>.
25 // -----------------------------------------------------------------------------------------------------------
26 #include <wx/wxprec.h>
34 //------------------------------------------------------------------------------------------------------------
36 //------------------------------------------------------------------------------------------------------------
38 #include "vtkImageData.h"
39 #include "wxMaracas_ViewerWidget.h"
43 //------------------------------------------------------------------------------------------------------------
45 //------------------------------------------------------------------------------------------------------------
47 class creaMaracasVisu_EXPORT wxMaracas_N_ViewersWidget : public wxPanel
52 //------------------------------------------------------------------------------------------------------------
53 // Constructors & Destructors
54 //------------------------------------------------------------------------------------------------------------
56 wxMaracas_N_ViewersWidget(wxWindow *parent, vtkImageData* imagedata = NULL, std::vector<int> *nTypeView = NULL);
57 ~wxMaracas_N_ViewersWidget();
60 //------------------------------------------------------------------------------------------------------------
62 //------------------------------------------------------------------------------------------------------------
65 vtkRenderer *GetRenderer();
68 virtual void OnRefreshView(wxCommandEvent & event);
69 void OnDClickLeft(wxCommandEvent & event);
70 wxMaracas_ViewerWidget *GetWindow(int iWin);
71 wxVtkBaseView *GetwxVtkBaseView(int iWin);
72 virtual void Refresh(bool eraseBackground = true,const wxRect* rect = NULL );
73 void SetImage( vtkImageData *image );
74 void SetType(std::vector<int>* type);
75 void UpdateLayout(vtkImageData* imagedata);
76 // double GetZ(int iWin);
81 //------------------------------------------------------------------------------------------------------------
83 //------------------------------------------------------------------------------------------------------------
87 wxMaracas_ViewerWidget *wxwindow1;
88 wxMaracas_ViewerWidget *wxwindow2;
89 wxMaracas_ViewerWidget *wxwindow3;
90 wxMaracas_ViewerWidget *wxwindow4;
92 wxWindow *currentwxwindow;
95 std::vector<int> *nTypeView;
97 DECLARE_EVENT_TABLE( );
101 #endif // __WX__MARACAS__N_VIEWERWIDGET__H__