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 WXVTKMPR3DVIEWCNTRLPANEL_H_
27 #define WXVTKMPR3DVIEWCNTRLPANEL_H_
29 #include "wxVtkMPR3DView.h"
35 class wxVtkMPR3DViewCntrlPanel: public wxPanel
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 void OnVisibleFreePlaneX(wxCommandEvent& event);
50 void OnVisibleFreePlaneY(wxCommandEvent& event);
51 void OnVisibleFreePlaneZ(wxCommandEvent& event);
52 void OnVisibleFreePlaneInteraction(wxCommandEvent& event);
53 void OnSetStereo(wxCommandEvent& event);
54 void OnFreePlanesOrtho(wxCommandEvent& event);
55 void OnOutlineBox(wxCommandEvent& event);
56 void OnOutlinePlane(wxCommandEvent& event);
57 void OnBackGroundBlack(wxCommandEvent& event);
58 void OnInterpolate(wxCommandEvent& event);
59 void OnFixAxis2D(wxCommandEvent& event);
60 void OnOpacityAxis(wxCommandEvent& event);
63 virtual void Refresh();
64 void UpdateControlPanel(bool firsttime=true);
70 bool GetVisiblePlane();
71 ////EED 05Nov2012 bool Get_BW_Color_Plane();
72 void SetVisibleX(bool value);
73 void SetVisibleY(bool value);
74 void SetVisibleZ(bool value);
75 void SetVisibleXYZ(bool value);
76 void SetVisiblePlane(bool value);
79 wxVtkMPR3DView *_wxvtkmpr3Dview;
83 wxSlider *_isoValueSpin;
84 wxStaticText *_isoValueText;
85 wxRadioButton *_surfA;
86 wxRadioButton *_surfB;
87 wxRadioButton *_surfC;
88 wxRadioButton *_surfD;
95 //CPR: Added 30 nov 2009
101 ////EED 05Nov2012 wxCheckBox *_ckBox_BW_Color_Plane;
103 wxCheckBox *_ckBoxXYZ;
104 wxCheckBox *_ckBoxFixAxis2D;
105 wxSlider *_opacityAxis;
106 wxCheckBox *_ckBoxPlane;
108 wxCheckBox *_ckFreePlaneX;
109 wxCheckBox *_ckFreePlaneY;
110 wxCheckBox *_ckFreePlaneZ;
111 wxCheckBox *_ckFreePlaneInteraction;
113 wxComboBox *_cbStereo;
115 wxCheckBox *_ckBoxOutlineBox;
116 wxCheckBox *_ckBoxOutlinePlane;
119 // wxCheckBox *_ckBoxBackGroundBlack;
120 wxRadioButton *_rdBackGroundBlack;
121 wxRadioButton *_rdBackGroundWhite;
122 wxRadioButton *_rdBackGroundGradient;
124 wxCheckBox *_ckBoxInterpolate;
130 #endif /*WXVTKMPR3DVIEWCNTRLPANEL_H_*/