wxSurfaceSTLWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxSurfaceSTLWidget.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009/05/14 13:54:57 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright: (c) 2002, 2003
00010   License:
00011   
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notice for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __WX__3D__SURF__STL__WDG__
00018 #define __WX__3D__SURF__STL__WDG__
00019 
00020 //#include "wxVTKRenderWindowInteractor.h"
00021 #include "vtk3DSurfaceSTLWidget.h"
00022 #include <wx/wx.h>
00023 #include <wx/slider.h>
00024 #include <kernel/marInterface.h>
00025 
00026 //----------------------------------------------------------------------------
00031 class wxSurfaceSTLWidget : public wxPanel
00032 {
00033 public:
00034     enum ToolBarIDs
00035     {
00036         ID_TOOL_BAR = 300,
00037         ID_BUTTON_NEW_AXIS,
00038         ID_BUTTON_DELETE_AXIS,
00039         ID_CHECKBOX_ISOVISIBLE,
00040         ID_SLIDER_ISOVAL,
00041         ID_SLIDER_OPACITY,
00042         ID_BUTTON_CHOOSE_COLOR,
00043         ID_BUTTON_VESSELS_CONSTRUCTION,
00044         ID_BUTTON_3D_CUTTER,
00045         ID_BUTTON_EXPORT_STL,
00046         ID_CHECKBOX_STL_VISIBLE,
00047         ID_SLIDER_STL_THRESH,
00048                 ID_CHECKBOX_INVERT_SLICE_ORDER,
00049     };
00050     enum WidgetsIDs
00051     {
00052         ID_WORLD3D = 800
00053     };
00054 
00055 public:
00056 
00057     wxSurfaceSTLWidget(
00058         wxWindow* parent,
00059         wxWindowID id = -1,
00060         const wxPoint& pos = wxDefaultPosition,
00061         const wxSize& size = wxDefaultSize,
00062         long style = wxScrolledWindowStyle,
00063         const wxString& name = wxPanelNameStr
00064         );
00065 
00066     ~wxSurfaceSTLWidget( );
00067 
00068 
00069         //vessels toolbar
00070     void OnVesselConstruction(wxCommandEvent& event);
00071     void On3DCutter(wxCommandEvent& event);
00072     void OnExportAsSTL(wxCommandEvent& event);
00073 
00074     //surface
00075     void OnChooseSurfaceColor(wxCommandEvent& event);
00076     void OnIsoVisible(wxCommandEvent& event);
00077     void OnSTLSurfaceVisible(wxCommandEvent& event);
00078 
00079     //slider isovalue
00080     void OnSliderIsovalueScrollThumbrelease(wxScrollEvent& event);
00081 
00082     //slider opacity
00083     void OnSliderOpacityScrollThumbrelease(wxScrollEvent& event);
00084 
00085         // Invers lecture order
00086    void OnInvertSliceOrder(wxCommandEvent& WXUNUSED(event));
00087 
00088 
00089     void OnSliderSTLSurfaceValueThumbrelease(wxScrollEvent& event);
00090 
00091     void ShowMARACASData( marInterface* mar );
00092 
00093     wxToolBar   *_axis_tb;
00094     wxToolBar   *_vessels_tb;
00095     wxCheckBox  *_isoVisible;
00096     wxSlider    *_isoValue;
00097     wxSlider    *_opacity;
00098     wxButton    *_surface_color; //mat
00099     wxCheckBox  *_stlIntSurfaceVisible;
00100     wxCheckBox  *_stlExtSurfaceVisible;
00101     wxSlider    *_stlSurfaceValue;
00102     wxCheckBox  *_chkInvertSliceOrder;
00103 
00104     marInterface* _mar;
00105     
00106     vtk3DSurfaceSTLWidget *_3DWorldSTL;
00107 
00108     DECLARE_EVENT_TABLE( );
00109 };
00110 
00111 #endif // __WX__3D__SURF__STL__WDG__

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1