]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfSegmentationPanels.h
#3140 creaContours Feature New Normal - branch vtk7itk4wx3
[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         void onSegmentationPressed(wxCommandEvent& event);
47         void onSegmentationPressedITK(wxCommandEvent& event);
48         void setLabel(wxString tmpString);
49 private:
50         //wxContourEventHandler* contourevent;
51         wxPanel         *configPanel;
52         wxWindow        *infoWin;
53         wxPanel         *segmentPanel;
54         wxPanel         *spreadPanel;
55         wxPanel         *segmentPanelITK;
56         bool            axisshown;
57         void            hideAxis();
58         wxSlider        *_isovalue;
59         mBarRange       *_mbarrange;
60         wxSlider        *_sampling;
61         wxStaticText*_staticTextSegmentation;
62         wxRadioBox      *methodRadiobox;
63
64         wxPanel*        getSegmentationPanel(wxWindow* parent);
65         void            onSegmentationOneSlice( wxCommandEvent& event );
66         void            onSegmentationAllSlice( wxCommandEvent& event );
67 };
68
69 class interfSegmentationPanelITK
70         : public wxPanel
71 {
72 public:
73         interfSegmentationPanelITK(wxWindow * parent);          
74         ~interfSegmentationPanelITK();
75         void onSegmentationOneSlice( wxCommandEvent& event );
76         void onSegmentationAllSlice( wxCommandEvent& event );
77 private:
78         wxTextCtrl * _distance;
79         wxTextCtrl * _sigma;
80         wxTextCtrl * _alfa;
81         wxTextCtrl * _beta;
82         wxTextCtrl * _propagation;
83         wxTextCtrl * _iterations;
84         wxTextCtrl * _infStrength;
85 };
86
87
88 class interfMirrorPanel
89         : public wxPanel
90 {
91 public:
92         interfMirrorPanel(wxWindow * parent);           
93         ~interfMirrorPanel();
94 private:
95         wxSlider* _thickness;
96         bool _axisStatus;
97         void onAxisShow(wxCommandEvent& event);
98         void onMirrorGo(wxCommandEvent& event);
99         void onChangeWidth(wxScrollEvent& event);
100         DECLARE_EVENT_TABLE()
101 };
102
103
104
105
106 class interfTestPanel
107         : public wxPanel
108 {
109 public:
110         interfTestPanel(wxWindow * parent);             
111         ~interfTestPanel();
112
113 private:
114         void onButton1Pressed(wxCommandEvent& event);
115
116         void onButton2Pressed(wxCommandEvent& event);
117
118 };
119
120
121 #endif
122  
123