wxSurfaceWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxSurfaceWidget.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009/05/14 13:54:58 $
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__WDG__
00018 #define __WX__3D__SURF__WDG__
00019 
00020 #include "vtk3DSurfaceWidget.h"
00021 #include <wx/wx.h>
00022 #include <wx/slider.h>
00023 #include <kernel/marInterface.h>
00024 
00025 //----------------------------------------------------------------------------
00030 class wxSurfaceWidget : public wxPanel , InterfaceVtkPanelWidgets
00031 {
00032 public:
00033   enum ToolBarIDs {
00034     ID_TOOL_BAR = 300,
00035     ID_BUTTON_NEW_AXIS,
00036     ID_BUTTON_DELETE_AXIS,
00037     ID_CHECKBOX_ISOVISIBLE,
00038     ID_SLIDER_ISOVAL,
00039     ID_SLIDER_OPACITY,
00040     ID_BUTTON_CHOOSE_COLOR,
00041     ID_BUTTON_QUANTIFICATION,
00042     ID_BUTTON_MANUAL_AXIS,
00043   };
00044   
00045   enum WidgetsIDs {
00046     ID_WORLD3D = 800
00047   };
00048 
00049   wxSurfaceWidget( wxWindow* parent, wxWindowID id = -1,
00050                   const wxPoint& pos    = wxDefaultPosition,
00051                   const wxSize& size    = wxDefaultSize,
00052                   long  style                   = 0/*wxScrolledWindowStyle*/,
00053                   const wxString& name  = wxPanelNameStr
00054                   );
00055 
00056   ~wxSurfaceWidget( );
00057 
00058   void AddAxisActors();
00059   void RefreshAxis();
00060   void Clean3D();
00061 
00062   //axis toolbar
00063   void OnExtractAxis(wxCommandEvent& event);
00064   void OnDeleteAxis(wxCommandEvent& event);
00065   void OnQuantification(wxCommandEvent& event);
00066 
00067   //surface
00068   void OnChooseSurfaceColor(wxCommandEvent& event);
00069   void OnIsoVisible(wxCommandEvent& event);
00070 
00071   //slider isovalue
00072   void OnSliderIsovalueScrollThumbrelease(wxScrollEvent& event);
00073 
00074   //slider opacity
00075   void OnSliderOpacityScrollThumbrelease(wxScrollEvent& event);
00076 
00077   void ShowMARACASData( marInterface* mar );
00078 
00079   void CallBackOnLeftDClick( wxMouseEvent& event );
00080   void SetId_toolbar_plans(int _id_toolbar_plans );
00081 
00082   int  GetIsovalue();
00083   int  GetOpacity();
00084 
00085   vtk3DSurfaceWidget *GetVtk3DSurfaceWidget();
00086         void OnManualAxis(wxCommandEvent& event);
00087         void OnRefreshManualAxis(wxCommandEvent& event);
00088 
00089 
00090   private:
00091 
00092         int                                     _id_toolbar_plans;
00093 
00094     wxButton                    *_bt_new_axis;
00095     wxButton                    *_bt_delete_axis;
00096     wxButton                    *_bt_call_quantification;
00097 
00098         wxButton                        *_bt_manual_axis; 
00099         wxButton                        *_bt_refresh_manual_axis;
00100 
00101     wxStaticText                *_st_cero;
00102         wxStaticText            *_st_text;
00103     wxStaticText                *_st_one;
00104     wxStaticText                *_st_two;
00105 
00106         wxCheckBox                      *_isoVisible;
00107         wxSlider                        *_isoValue;
00108         wxSlider                        *_opacity;
00109         wxButton                        *_surface_color; //mat
00110         marInterface            *_mar;
00111         vtk3DSurfaceWidget      *_3DWorld;
00112 
00113   DECLARE_EVENT_TABLE( );
00114 };
00115 
00116 #endif // __WX__3D__SURF__WDG__

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1