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*)
47 void onSegmentationPressed(wxCommandEvent& event);
49 void onSegmentationPressedITK(wxCommandEvent& event);
51 void setLabel(wxString tmpString);
55 //wxContourEventHandler* contourevent;
58 wxPanel* segmentPanel;
60 wxPanel* segmentPanelITK;
65 wxPanel* getSegmentationPanel(wxWindow* parent);
67 void onSegmentationOneSlice( wxCommandEvent& event );
69 void onSegmentationAllSlice( wxCommandEvent& event );
73 mBarRange* _mbarrange;
77 wxStaticText* _staticTextSegmentation;
79 wxRadioBox* methodRadiobox;
82 class interfSegmentationPanelITK
86 interfSegmentationPanelITK(wxWindow * parent);
87 ~interfSegmentationPanelITK();
90 void onSegmentationOneSlice( wxCommandEvent& event );
92 void onSegmentationAllSlice( wxCommandEvent& event );
96 wxTextCtrl * _distance;
100 wxTextCtrl * _propagation;
101 wxTextCtrl * _iterations;
102 wxTextCtrl * _infStrength;
106 class interfMirrorPanel
110 interfMirrorPanel(wxWindow * parent);
111 ~interfMirrorPanel();
115 wxSlider* _thickness;
119 void onAxisShow(wxCommandEvent& event);
121 void onMirrorGo(wxCommandEvent& event);
123 void onChangeWidth(wxScrollEvent& event);
125 DECLARE_EVENT_TABLE()
131 class interfTestPanel
135 interfTestPanel(wxWindow * parent);
139 void onButton1Pressed(wxCommandEvent& event);
141 void onButton2Pressed(wxCommandEvent& event);