1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
26 #ifndef __interfSegmentationPanelsH__
27 #define __interfSegmentationPanelsH__
30 #include "mBarRange.h"
33 class interfSegmentationPanelVTK
37 interfSegmentationPanelVTK(wxWindow * parent);
38 ~interfSegmentationPanelVTK();
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*)
46 void onSegmentationPressed(wxCommandEvent& event);
47 void onSegmentationPressedITK(wxCommandEvent& event);
48 void setLabel(wxString tmpString);
50 //wxContourEventHandler* contourevent;
53 wxPanel *segmentPanel;
55 wxPanel *segmentPanelITK;
59 mBarRange *_mbarrange;
61 wxStaticText*_staticTextSegmentation;
62 wxRadioBox *methodRadiobox;
64 wxPanel* getSegmentationPanel(wxWindow* parent);
65 void onSegmentationOneSlice( wxCommandEvent& event );
66 void onSegmentationAllSlice( wxCommandEvent& event );
69 class interfSegmentationPanelITK
73 interfSegmentationPanelITK(wxWindow * parent);
74 ~interfSegmentationPanelITK();
75 void onSegmentationOneSlice( wxCommandEvent& event );
76 void onSegmentationAllSlice( wxCommandEvent& event );
78 wxTextCtrl * _distance;
82 wxTextCtrl * _propagation;
83 wxTextCtrl * _iterations;
84 wxTextCtrl * _infStrength;
88 class interfMirrorPanel
92 interfMirrorPanel(wxWindow * parent);
97 void onAxisShow(wxCommandEvent& event);
98 void onMirrorGo(wxCommandEvent& event);
99 void onChangeWidth(wxScrollEvent& event);
100 DECLARE_EVENT_TABLE()
106 class interfTestPanel
110 interfTestPanel(wxWindow * parent);
114 void onButton1Pressed(wxCommandEvent& event);
116 void onButton2Pressed(wxCommandEvent& event);