]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/wxMaracasEmptyPanel_3.h
creaMaracasVisu Library
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / wxMaracasEmptyPanel_3.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasEmptyPanel_3.h,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:10 $
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__MARACAS__EmptyPanel__3__HXX__
19 #define __WX__MARACAS__EmptyPanel__3__HXX__
20
21
22 #include <wx/wx.h>
23 #include <wx/panel.h>
24
25 #include "vtkImageData.h"
26
27 #include "widgets/wxEmptyPanel_3_Widget.h"
28
29 #include "widgets/wxMPRBaseData.h"
30 #include "widgets/wxVtkBaseView.h"
31
32
33 class wxMaracasEmptyPanel_3 : public wxPanel
34 {
35 public:
36     wxMaracasEmptyPanel_3( wxWindow* parent );
37     ~wxMaracasEmptyPanel_3( );
38         void ConfigureVTK(marImageData *marimagedata);
39 private:
40          wxEmptyPanel_3_Widget* _emptyPanel_3_Widget;
41 };
42
43
44
45 struct InfoImag {
46
47         int             RowCol[2];
48         double  ImPoPa[3];
49         double  ImOrPa[6];
50         double  Spacing[2];
51
52 };
53
54
55
56 class wxMaracasEmptyPanel_4: public wxPanel
57 {
58 public:
59     wxMaracasEmptyPanel_4( wxWindow* parent);
60     ~wxMaracasEmptyPanel_4( );
61         void ConfigureVTK();
62 private:
63
64         wxWidgetMesure2D        *_widgetMesure1;
65         wxWidgetMesure2D        *_widgetMesure2;
66
67
68         wxRadioButton           *_rb1;
69         wxRadioButton           *_rb2;
70         wxRadioButton           *_rb3;
71
72         struct InfoImag         _infoImg1;
73         struct InfoImag         _infoImg2;
74
75         wxPanel                         *_panelImage1;
76         wxPanel                         *_panelImage2;
77
78         vtkMPRBaseData          *_vtkbasedata1;          
79         vtkMPRBaseData          *_vtkbasedata2; 
80         
81         wxVtkMPR2DView          *_wxvtk2Dbaseview1;      
82         wxVtkMPR2DView          *_wxvtk2Dbaseview2;      
83         void ConfigureImage( char *fileName, wxPanel *panelImage, int ventana);
84         virtual void OnRefreshView(wxCommandEvent & event);
85         virtual void OnDClickLeft(wxCommandEvent & event);
86
87         wxPanel* CreateControlPanel_Algo(wxWindow *parent);
88         wxPanel* CreateImagePanel(wxWindow *parent);
89
90
91         void TranformPixel1(int pIn[], int pOut[], struct InfoImag *infoImg1, struct InfoImag *infoImg2);
92         void TranformPixel2(int pIn[], int pOut[], struct InfoImag *infoImg1, struct InfoImag *infoImg2);
93         void TranformPixel3(int pIn[], int pOut[], struct InfoImag *infoImg1, struct InfoImag *infoImg2);
94         void TranformPixel2a(int pIn[], int pOut[], struct InfoImag *infoImg1, struct InfoImag *infoImg2);
95
96
97
98 DECLARE_EVENT_TABLE( );
99
100 };
101
102
103
104 #endif // __WX__MARACAS__EmptyPanel__3__HXX__
105
106 // EOF - wxMaracasEmptyPanel_3.h