]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR3DViewCntrlPanel.h
b3f971d53abf4a8136d221bb8977178020af8d08
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkMPR3DViewCntrlPanel.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 WXVTKMPR3DVIEWCNTRLPANEL_H_
27 #define WXVTKMPR3DVIEWCNTRLPANEL_H_
28
29 #include "wxVtkMPR3DView.h"
30
31 #include "wx/wx.h"
32
33 class wxVtkMPR3DView;
34
35 class wxVtkMPR3DViewCntrlPanel: public wxPanel
36 {
37 public:
38         wxVtkMPR3DViewCntrlPanel(wxWindow *parent, wxVtkMPR3DView *wxvtkmpr3Dview, bool align);
39         ~wxVtkMPR3DViewCntrlPanel();
40         void            OnVisibleAxisX(wxCommandEvent& event);
41         void            OnVisibleAxisY(wxCommandEvent& event);
42         void            OnVisibleAxisZ(wxCommandEvent& event);
43         void            OnPositionX(wxScrollEvent& event);
44         void            OnPositionY(wxScrollEvent& event);
45         void            OnPositionZ(wxScrollEvent& event);
46         void            OnVisibleAxisXYZ(wxCommandEvent& event);
47         void            OnVisiblePlane(wxCommandEvent& event);
48         void            OnEditColorTable(wxCommandEvent& event);
49 ////EED 05Nov2012       void            On_BW_Color_Plane(wxCommandEvent& event);
50         
51         void            OnVisibleFreePlaneX(wxCommandEvent& event);
52         void            OnVisibleFreePlaneY(wxCommandEvent& event);
53         void            OnVisibleFreePlaneZ(wxCommandEvent& event);
54         void            OnVisibleFreePlaneInteraction(wxCommandEvent& event);
55         void            OnSetStereo(wxCommandEvent& event);
56         void            OnFreePlanesOrtho(wxCommandEvent& event);
57         void            OnOutline(wxCommandEvent& event);
58         void            OnBackGroundBlack(wxCommandEvent& event);
59         void            OnInterpolate(wxCommandEvent& event);
60
61
62         virtual void Refresh();
63         void            UpdateControlPanel(bool firsttime=true);
64
65         bool            GetVisibleX();
66         bool            GetVisibleY();
67         bool            GetVisibleZ();
68         bool            GetVisibleXYZ();
69         bool            GetVisiblePlane();
70 ////EED 05Nov2012       bool            Get_BW_Color_Plane();
71         void            SetVisibleX(bool value);
72         void            SetVisibleY(bool value);
73         void            SetVisibleZ(bool value);
74         void            SetVisibleXYZ(bool value);
75         void            SetVisiblePlane(bool value);
76
77 private:
78         wxVtkMPR3DView  *_wxvtkmpr3Dview;
79
80         wxSlider                *_opacity;
81         wxSlider                *_isoValue;
82         wxSlider                *_isoValueSpin;
83         wxStaticText    *_isoValueText;
84         wxRadioButton   *_surfA;
85         wxRadioButton   *_surfB;
86         wxRadioButton   *_surfC;
87         wxRadioButton   *_surfD;
88         wxCheckBox              *_visible;
89         wxButton                *_color;
90         wxSlider                *_positionX;
91         wxSlider                *_positionY;    
92         wxSlider                *_positionZ;
93         
94         //CPR: Added 30 nov 2009
95         wxCheckBox              *_ckBoxX;
96         wxCheckBox              *_ckBoxY;
97         wxCheckBox              *_ckBoxZ;
98         
99         //EED 03 nov 2012
100 ////EED 05Nov2012       wxCheckBox              *_ckBox_BW_Color_Plane;
101         
102         wxCheckBox              *_ckBoxXYZ;
103         wxCheckBox              *_ckBoxPlane;
104         
105         wxCheckBox      *_ckFreePlaneX;
106         wxCheckBox      *_ckFreePlaneY;
107         wxCheckBox      *_ckFreePlaneZ;
108         wxCheckBox      *_ckFreePlaneInteraction;
109         
110         wxComboBox              *_cbStereo;
111
112         wxCheckBox              *_ckBoxOutline;
113         wxCheckBox              *_ckBoxBackGroundBlack;
114         wxCheckBox              *_ckBoxInterpolate;
115
116 protected:
117
118 };
119
120 #endif /*WXVTKMPR3DVIEWCNTRLPANEL_H_*/