]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasImageBrowser02.h
*** empty log message ***
[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/19 11:17:26 $
7   Version:   $Revision: 1.2 $
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 "manualContourModelRoi.h"
43 #include "manualRoiControler.h"
44 #include "manualViewRoi.h"
45
46
47 BEGIN_DECLARE_EVENT_TYPES()
48  DECLARE_EVENT_TYPE(wxEVT_MARACASIMAGEBROWSERCUTIMAGE, -1)
49 END_DECLARE_EVENT_TYPES()
50
51
52 /**
53  * \brief Panel class that show thumbnails images
54  */
55 class wxMaracasImageBrowser02 : public wxPanel
56 {
57 public:
58     wxMaracasImageBrowser02( wxWindow* parent, marFilesBase *dicom ,marParameters* parameters );
59     //wxMaracasImageBrowser02( wxWindow* parent, marInterface* mar, wxWindowID id = -1 );
60     ~wxMaracasImageBrowser02();
61
62     void LoadData( marImageData *marimagedata);
63     void GetROI( int ext[6] );
64     void SetROI( int voi[6] );
65         bool GetRoiSelected();
66         
67
68         void Start();
69         void ForceToFinisReadActiveImages();
70
71         void Refresh();
72         void OnRefreshView(wxCommandEvent & event);
73         void OnRefreshView2(wxCommandEvent & event);
74         void OnBtnResetRoi( wxCommandEvent &  event );
75         void OnBtSaveVOIData(wxCommandEvent& event);
76         void OnBtnCutVolume( wxCommandEvent &  event );
77
78 private:
79
80         wxButton                        *_btnRestRoi;
81
82         marParameters                   *_parameters;
83         LoadRangeImage                  *_loadRangeImage;
84
85         vtkBaseData                             *_vtkbasedata_1;
86         wxVtk2DBaseView                 *_imageviewer2D_1;
87
88         manualRoiControler              *_manRoiControl;
89         manualContourModel              *_mContourModel;
90
91         manualViewRoi                   *_mViewRoi;
92
93
94
95         DECLARE_EVENT_TABLE( );
96 };
97
98 #endif // __WX__IMAGE__BROWSER02__