]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfSegmentationPanels.h
Feature #1772 Add licence terms for all files.
[creaContours.git] / lib / Interface_Icons_NDimensions / interfSegmentationPanels.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 #ifndef __interfSegmentationPanelsH__
27 #define __interfSegmentationPanelsH__
28
29 #include <wx/wx.h>
30 #include "mBarRange.h"
31
32
33 class interfSegmentationPanelVTK 
34         : public wxPanel
35 {
36 public:
37         interfSegmentationPanelVTK(wxWindow * parent);          
38         ~interfSegmentationPanelVTK();
39
40         /**
41         **      Responds to the events of the buttons, when the same panel is responsible for it. It gets the name
42         **      of the button corresponding to the method that has to be executed,
43         **      it uses attribute eventHandler to call the methods define by the application.
44         **      see setEventHandler(wxEventHandler*)
45         **/
46         
47         void  onSegmentationPressed(wxCommandEvent& event);
48
49         void  onSegmentationPressedITK(wxCommandEvent& event);
50
51         void setLabel(wxString tmpString);
52
53 private:
54
55         //wxContourEventHandler* contourevent;
56         wxPanel* configPanel;
57         wxWindow* infoWin;
58         wxPanel* segmentPanel;
59         wxPanel* spreadPanel;
60         wxPanel* segmentPanelITK;
61         bool axisshown;
62
63         void hideAxis();
64
65         wxPanel* getSegmentationPanel(wxWindow* parent);
66
67         void onSegmentationOneSlice( wxCommandEvent& event );
68
69         void onSegmentationAllSlice( wxCommandEvent& event );
70
71         wxSlider* _isovalue;
72
73         mBarRange* _mbarrange;
74         
75         wxSlider* _sampling;
76
77         wxStaticText* _staticTextSegmentation;
78
79         wxRadioBox* methodRadiobox;
80 };
81
82 class interfSegmentationPanelITK
83         : public wxPanel
84 {
85 public:
86         interfSegmentationPanelITK(wxWindow * parent);          
87         ~interfSegmentationPanelITK();
88
89
90         void onSegmentationOneSlice( wxCommandEvent& event );
91
92         void onSegmentationAllSlice( wxCommandEvent& event );
93         
94 private:
95
96         wxTextCtrl * _distance;
97         wxTextCtrl * _sigma;
98         wxTextCtrl * _alfa;
99         wxTextCtrl * _beta;
100         wxTextCtrl * _propagation;
101         wxTextCtrl * _iterations;
102         wxTextCtrl * _infStrength;
103 };
104
105
106 class interfMirrorPanel
107         : public wxPanel
108 {
109 public:
110         interfMirrorPanel(wxWindow * parent);           
111         ~interfMirrorPanel();
112
113 private:
114
115         wxSlider* _thickness;
116
117         bool _axisStatus;
118
119         void onAxisShow(wxCommandEvent& event);
120
121         void onMirrorGo(wxCommandEvent& event);
122
123         void onChangeWidth(wxScrollEvent& event);
124
125         DECLARE_EVENT_TABLE()
126 };
127
128 class interfTestPanel
129         : public wxPanel
130 {
131 public:
132         interfTestPanel(wxWindow * parent);             
133         ~interfTestPanel();
134
135 private:
136         void onButton1Pressed(wxCommandEvent& event);
137
138         void onButton2Pressed(wxCommandEvent& event);
139
140 };
141
142
143 #endif
144  
145