1 /*=========================================================================
4 Module: $RCSfile: CutModel2View.h,v $
6 Date: $Date: 2009/11/19 15:00:32 $
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 =========================================================================*/
18 #ifndef __CutModel2ViewPanelH__
19 #define __CutModel2ViewPanelH__
23 #include <wx/radiobut.h>
24 #include "wx/aui/aui.h"
29 #include "CutModel2Manager.h"
30 #include "CutModel2Exception.h"
32 #include "vtkObject.h"
33 #include "vtkCommand.h"
36 class creaMaracasVisu_EXPORT CutModel2View : public wxPanel, public vtkCommand
40 CutModel2View( wxWindow* parent,double* range);
43 virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ;
54 void SetCurrentColor(wxColour colour);
60 wxSlider* _sliderrange;
61 wxRadioBox* _radioinsideout;
62 //wxRadioBox* _radiocutstat;
63 wxStaticText* _currentcolor;
71 wxSizer* getBoxControls(wxWindow* parent, double* range);
74 wxSizer* getActorProperties(wxWindow* parent);
75 wxSizer* getColorChooseActor(wxWindow* parent);
76 wxSizer* getOpacityActor(wxWindow* parent);
78 void checkInvariant() throw( CutModel2Exception);
82 class CutModel2ViewEventHandler : public wxEvtHandler{
85 CutModel2ViewEventHandler(): wxEvtHandler(){};
86 ~CutModel2ViewEventHandler(){};
88 void onColorChange(wxCommandEvent& event);
89 void onOpacityChange(wxScrollEvent& event);
90 void onViewBoxChecked(wxCommandEvent& event);
91 void onShapeChange(wxCommandEvent& event);
92 void onStatistics(wxCommandEvent& event);
93 void onExecute(wxCommandEvent& event);