]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR3DViewCntrlPanel.h
d70dc1c77411a2d90a7a93c0904e347ff6a9de08
[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
58         virtual void Refresh();
59         void            UpdateControlPanel();
60
61         bool            GetVisibleX();
62         bool            GetVisibleY();
63         bool            GetVisibleZ();
64         bool            GetVisibleXYZ();
65         bool            GetVisiblePlane();
66 ////EED 05Nov2012       bool            Get_BW_Color_Plane();
67         void            SetVisibleX(bool value);
68         void            SetVisibleY(bool value);
69         void            SetVisibleZ(bool value);
70         void            SetVisibleXYZ(bool value);
71         void            SetVisiblePlane(bool value);
72
73 private:
74         wxVtkMPR3DView  *_wxvtkmpr3Dview;
75
76         wxSlider                *_opacity;
77         wxSlider                *_isoValue;
78         wxSlider                *_isoValueSpin;
79         wxStaticText    *_isoValueText;
80         wxRadioButton   *_surfA;
81         wxRadioButton   *_surfB;
82         wxRadioButton   *_surfC;
83         wxRadioButton   *_surfD;
84         wxCheckBox              *_visible;
85         wxButton                *_color;
86         wxSlider                *_positionX;
87         wxSlider                *_positionY;    
88         wxSlider                *_positionZ;
89         
90         //CPR: Added 30 nov 2009
91         wxCheckBox              *_ckBoxX;
92         wxCheckBox              *_ckBoxY;
93         wxCheckBox              *_ckBoxZ;
94         
95         //EED 03 nov 2012
96 ////EED 05Nov2012       wxCheckBox              *_ckBox_BW_Color_Plane;
97         
98         wxCheckBox              *_ckBoxXYZ;
99         wxCheckBox              *_ckBoxPlane;
100         
101         wxCheckBox      *_ckFreePlaneX;
102         wxCheckBox      *_ckFreePlaneY;
103         wxCheckBox      *_ckFreePlaneZ;
104         wxCheckBox      *_ckFreePlaneInteraction;
105         
106         wxComboBox              *_cbStereo;
107
108
109 protected:
110
111 };
112
113 #endif /*WXVTKMPR3DVIEWCNTRLPANEL_H_*/