]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasImageBrowser02.h
063872662f55f3be8cb14712adf954356ad9e3f0
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / wxMaracasImageBrowser02.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasImageBrowser02.h,v $
5   Language:  C++
6   Date:      $Date: 2009/05/14 13:54:54 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11   
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.
15
16 =========================================================================*/
17
18 #ifndef __WX__IMAGE__BROWSER02__
19 #define __WX__IMAGE__BROWSER02__
20
21 #include "wx/wxprec.h"
22 #ifdef __BORLANDC__
23 #  pragma hdrstop
24 #endif
25 #ifndef WX_PRECOMP
26 #include <wx/wx.h>
27 #endif
28
29
30
31 #include <wx/window.h>
32 #include <wx/imaglist.h>
33 #include <wx/panel.h>
34 #include <wx/listctrl.h>
35 #include <wx/splitter.h>
36
37 #include "marParameters.h" 
38 #include "widgets/wxVtkBaseView.h" 
39 //#include "widgets/wxImageViewerWidget.h"
40 #include "widgets/wxReadingPriorityPanel.h"
41
42 #include "manualContour.h"
43
44
45 BEGIN_DECLARE_EVENT_TYPES()
46  DECLARE_EVENT_TYPE(wxEVT_MARACASIMAGEBROWSERCUTIMAGE, -1)
47 END_DECLARE_EVENT_TYPES()
48
49
50 /**
51  * \brief Panel class that show thumbnails images
52  */
53 class wxMaracasImageBrowser02 : public wxPanel
54 {
55 public:
56     wxMaracasImageBrowser02( wxWindow* parent, marFilesBase *dicom ,marParameters* parameters );
57     //wxMaracasImageBrowser02( wxWindow* parent, marInterface* mar, wxWindowID id = -1 );
58     ~wxMaracasImageBrowser02();
59
60     void LoadData( marImageData *marimagedata);
61     void GetROI( int ext[6] );
62     void SetROI( int voi[6] );
63         bool GetRoiSelected();
64         
65
66         void Start();
67         void ForceToFinisReadActiveImages();
68
69         void Refresh();
70         void OnRefreshView(wxCommandEvent & event);
71         void OnRefreshView2(wxCommandEvent & event);
72         void OnBtnResetRoi( wxCommandEvent &  event );
73         void OnBtSaveVOIData(wxCommandEvent& event);
74         void OnBtnCutVolume( wxCommandEvent &  event );
75
76 private:
77
78         wxButton                        *_btnRestRoi;
79
80         marParameters                   *_parameters;
81         LoadRangeImage                  *_loadRangeImage;
82
83         vtkBaseData                             *_vtkbasedata_1;
84         wxVtk2DBaseView                 *_imageviewer2D_1;
85
86         manualRoiControler              *_manRoiControl;
87         manualContourModel              *_mContourModel;
88
89         manualViewRoi                   *_mViewRoi;
90
91
92
93         DECLARE_EVENT_TABLE( );
94 };
95
96 #endif // __WX__IMAGE__BROWSER02__