1 #ifndef WXPANELCUTTINGIMAGEDATA_H_
2 #define WXPANELCUTTINGIMAGEDATA_H_
4 #include "vtkClipping3DDataViewer.h"
6 #include "figureCuttingCylinderModel.h"
7 #include "figureCuttingCubeModel.h"
8 #include "figureCuttingSphereModel.h"
9 #include "figureCuttingModel.h"
11 #include "wxVtk3DBaseView.h"
13 #include "vtkXYPlotActor.h"
14 #include "vtkCubeSource.h"
15 #include "vtkCylinderSource.h"
16 #include "vtkSphereSource.h"
18 class wxPanelCuttingImageData : public wxPanel
21 wxPanelCuttingImageData (wxWindow *parent);
22 ~wxPanelCuttingImageData ();
23 void OnTransform(wxScrollEvent& event);
24 void OnOpacityFig(wxScrollEvent& event);
25 void OnTypeFig(wxCommandEvent& event);
26 void OnExtract(wxCommandEvent& event);
27 void SetVtkMPRBaseData( vtkMPRBaseData *vtkmprbasedata );
28 void SetVtkClipping3DDataViewer( vtkClipping3DDataViewer *vtkclipping3Ddataviewer );
29 void SetWxVtk3DBaseView( wxVtk3DBaseView * wxvtk3Dbaseview );
31 void SetParamsOfTransformation( );
39 wxSlider *_opacityFig;
47 wxRadioButton *_volIntern;
48 wxRadioButton *_volExtern;
49 wxCheckBox *_histogrammeAccumulated;
51 wxSlider *_valueBeforeIsoValue;
52 wxSlider *_valueAfterIsoValue;
55 wxStaticText *_infoToVo;
56 wxStaticText *_infoSuVo;
57 wxStaticText *_infoSuVoA;
58 wxStaticText *_infoPixLe;
59 wxStaticText *_infoPixHi;
62 figureCuttingCylinderModel *_modelCylinder;
63 figureCuttingCubeModel *_modelCube;
64 figureCuttingSphereModel *_modelSphere;
65 figureCuttingModel *_actualCuttingModel;
68 vtkCubeSource *_vtkcube;
69 vtkSphereSource *_vtksphere;
70 vtkCylinderSource *_vtkcylinder;
71 vtkPolyDataMapper *_cubeMapper;
72 vtkPolyDataMapper *_sphereMapper;
73 vtkPolyDataMapper *_cylinderMapper;
75 vtkActor *_sphereActor;
76 vtkActor *_cylinderActor;
77 vtkActor *_actualActor;
80 vtkMPRBaseData *_vtkmprbasedata;
81 wxVtk3DBaseView *_wxvtk3Dbaseview;
82 vtkImageData *_imageData;
83 vtkClipping3DDataViewer *_vtkclipping3Ddataviewer;
85 vtkImageData *_histogrammeVector;
86 vtkXYPlotActor *_xyplot;
87 wxVtkBaseView *_wxvtkbaseView;
88 vtkRenderer *_renplotter;
91 void CreateInterface();
92 void Create3DViewObjects();
93 void RefreshOpacity();
94 wxWindow *CreatePlotHistogrammeInterface();
95 void InitHistogramme();
101 #endif /*WXPANELCUTTINGIMAGEDATA_H_*/