/*========================================================================= Program: wxMaracas Module: $RCSfile: wxSurfaceWidget.h,v $ Language: C++ Date: $Date: 2009/05/14 13:54:58 $ Version: $Revision: 1.1 $ Copyright: (c) 2002, 2003 License: This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #ifndef __WX__3D__SURF__WDG__ #define __WX__3D__SURF__WDG__ #include "vtk3DSurfaceWidget.h" #include #include #include //---------------------------------------------------------------------------- /** * \brief Panel class composed of a vtk renderwindow with double click available * and add some buttons */ class wxSurfaceWidget : public wxPanel , InterfaceVtkPanelWidgets { public: enum ToolBarIDs { ID_TOOL_BAR = 300, ID_BUTTON_NEW_AXIS, ID_BUTTON_DELETE_AXIS, ID_CHECKBOX_ISOVISIBLE, ID_SLIDER_ISOVAL, ID_SLIDER_OPACITY, ID_BUTTON_CHOOSE_COLOR, ID_BUTTON_QUANTIFICATION, ID_BUTTON_MANUAL_AXIS, }; enum WidgetsIDs { ID_WORLD3D = 800 }; wxSurfaceWidget( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0/*wxScrolledWindowStyle*/, const wxString& name = wxPanelNameStr ); ~wxSurfaceWidget( ); void AddAxisActors(); void RefreshAxis(); void Clean3D(); //axis toolbar void OnExtractAxis(wxCommandEvent& event); void OnDeleteAxis(wxCommandEvent& event); void OnQuantification(wxCommandEvent& event); //surface void OnChooseSurfaceColor(wxCommandEvent& event); void OnIsoVisible(wxCommandEvent& event); //slider isovalue void OnSliderIsovalueScrollThumbrelease(wxScrollEvent& event); //slider opacity void OnSliderOpacityScrollThumbrelease(wxScrollEvent& event); void ShowMARACASData( marInterface* mar ); void CallBackOnLeftDClick( wxMouseEvent& event ); void SetId_toolbar_plans(int _id_toolbar_plans ); int GetIsovalue(); int GetOpacity(); vtk3DSurfaceWidget *GetVtk3DSurfaceWidget(); void OnManualAxis(wxCommandEvent& event); void OnRefreshManualAxis(wxCommandEvent& event); private: int _id_toolbar_plans; wxButton *_bt_new_axis; wxButton *_bt_delete_axis; wxButton *_bt_call_quantification; wxButton *_bt_manual_axis; wxButton *_bt_refresh_manual_axis; wxStaticText *_st_cero; wxStaticText *_st_text; wxStaticText *_st_one; wxStaticText *_st_two; wxCheckBox *_isoVisible; wxSlider *_isoValue; wxSlider *_opacity; wxButton *_surface_color; //mat marInterface *_mar; vtk3DSurfaceWidget *_3DWorld; DECLARE_EVENT_TABLE( ); }; #endif // __WX__3D__SURF__WDG__