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