/*# --------------------------------------------------------------------- # # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image # pour la Sant�) # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton # Previous Authors : Laurent Guigues, Jean-Pierre Roux # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil # # This software is governed by the CeCILL-B license under French law and # abiding by the rules of distribution of free software. You can use, # modify and/ or redistribute the software under the terms of the CeCILL-B # license as circulated by CEA, CNRS and INRIA at the following URL # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # or in the file LICENSE.txt. # # As a counterpart to the access to the source code and rights to copy, # modify and redistribute granted by the license, users are provided only # with a limited warranty and the software's author, the holder of the # economic rights, and the successive licensors have only limited # liability. # # The fact that you are presently reading this means that you have had # knowledge of the CeCILL-B license and that you accept its terms. # ------------------------------------------------------------------------ */ /*========================================================================= Program: wxMaracas Module: $RCSfile: wxSurfaceWidget.h,v $ Language: C++ Date: $Date: 2012/11/15 14:15:18 $ Version: $Revision: 1.2 $ 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__