1 /*=========================================================================
4 Module: $RCSfile: wxSurfaceWidget.h,v $
6 Date: $Date: 2009/05/14 13:54:58 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
17 #ifndef __WX__3D__SURF__WDG__
18 #define __WX__3D__SURF__WDG__
20 #include "vtk3DSurfaceWidget.h"
22 #include <wx/slider.h>
23 #include <kernel/marInterface.h>
25 //----------------------------------------------------------------------------
27 * \brief Panel class composed of a vtk renderwindow with double click available
28 * and add some buttons
30 class wxSurfaceWidget : public wxPanel , InterfaceVtkPanelWidgets
36 ID_BUTTON_DELETE_AXIS,
37 ID_CHECKBOX_ISOVISIBLE,
40 ID_BUTTON_CHOOSE_COLOR,
41 ID_BUTTON_QUANTIFICATION,
42 ID_BUTTON_MANUAL_AXIS,
49 wxSurfaceWidget( wxWindow* parent, wxWindowID id = -1,
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& size = wxDefaultSize,
52 long style = 0/*wxScrolledWindowStyle*/,
53 const wxString& name = wxPanelNameStr
63 void OnExtractAxis(wxCommandEvent& event);
64 void OnDeleteAxis(wxCommandEvent& event);
65 void OnQuantification(wxCommandEvent& event);
68 void OnChooseSurfaceColor(wxCommandEvent& event);
69 void OnIsoVisible(wxCommandEvent& event);
72 void OnSliderIsovalueScrollThumbrelease(wxScrollEvent& event);
75 void OnSliderOpacityScrollThumbrelease(wxScrollEvent& event);
77 void ShowMARACASData( marInterface* mar );
79 void CallBackOnLeftDClick( wxMouseEvent& event );
80 void SetId_toolbar_plans(int _id_toolbar_plans );
85 vtk3DSurfaceWidget *GetVtk3DSurfaceWidget();
86 void OnManualAxis(wxCommandEvent& event);
87 void OnRefreshManualAxis(wxCommandEvent& event);
92 int _id_toolbar_plans;
94 wxButton *_bt_new_axis;
95 wxButton *_bt_delete_axis;
96 wxButton *_bt_call_quantification;
98 wxButton *_bt_manual_axis;
99 wxButton *_bt_refresh_manual_axis;
101 wxStaticText *_st_cero;
102 wxStaticText *_st_text;
103 wxStaticText *_st_one;
104 wxStaticText *_st_two;
106 wxCheckBox *_isoVisible;
109 wxButton *_surface_color; //mat
111 vtk3DSurfaceWidget *_3DWorld;
113 DECLARE_EVENT_TABLE( );
116 #endif // __WX__3D__SURF__WDG__