1 /*=========================================================================
4 Module: $RCSfile: wxSurfaceSTLWidget.h,v $
6 Date: $Date: 2008/10/31 16:32:43 $
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__STL__WDG__
18 #define __WX__3D__SURF__STL__WDG__
20 //#include "wxVTKRenderWindowInteractor.h"
21 #include "vtk3DSurfaceSTLWidget.h"
23 #include <wx/slider.h>
24 #include <kernel/marInterface.h>
26 //----------------------------------------------------------------------------
28 * \brief Panel class composed of a vtk renderwindow with double click available
29 * and add some buttons
31 class wxSurfaceSTLWidget : public wxPanel
38 ID_BUTTON_DELETE_AXIS,
39 ID_CHECKBOX_ISOVISIBLE,
42 ID_BUTTON_CHOOSE_COLOR,
43 ID_BUTTON_VESSELS_CONSTRUCTION,
46 ID_CHECKBOX_STL_VISIBLE,
48 ID_CHECKBOX_INVERT_SLICE_ORDER,
60 const wxPoint& pos = wxDefaultPosition,
61 const wxSize& size = wxDefaultSize,
62 long style = wxScrolledWindowStyle,
63 const wxString& name = wxPanelNameStr
66 ~wxSurfaceSTLWidget( );
70 void OnVesselConstruction(wxCommandEvent& event);
71 void On3DCutter(wxCommandEvent& event);
72 void OnExportAsSTL(wxCommandEvent& event);
75 void OnChooseSurfaceColor(wxCommandEvent& event);
76 void OnIsoVisible(wxCommandEvent& event);
77 void OnSTLSurfaceVisible(wxCommandEvent& event);
80 void OnSliderIsovalueScrollThumbrelease(wxScrollEvent& event);
83 void OnSliderOpacityScrollThumbrelease(wxScrollEvent& event);
85 // Invers lecture order
86 void OnInvertSliceOrder(wxCommandEvent& WXUNUSED(event));
89 void OnSliderSTLSurfaceValueThumbrelease(wxScrollEvent& event);
91 void ShowMARACASData( marInterface* mar );
94 wxToolBar *_vessels_tb;
95 wxCheckBox *_isoVisible;
98 wxButton *_surface_color; //mat
99 wxCheckBox *_stlIntSurfaceVisible;
100 wxCheckBox *_stlExtSurfaceVisible;
101 wxSlider *_stlSurfaceValue;
102 wxCheckBox *_chkInvertSliceOrder;
106 vtk3DSurfaceSTLWidget *_3DWorldSTL;
108 DECLARE_EVENT_TABLE( );
111 #endif // __WX__3D__SURF__STL__WDG__