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 #include "vtkPolyDataMapper.h"
20 class wxPanelCuttingImageData : public wxPanel
23 wxPanelCuttingImageData (wxWindow *parent);
24 ~wxPanelCuttingImageData ();
25 void OnTransform(wxScrollEvent& event);
26 void OnOpacityFig(wxScrollEvent& event);
27 void OnTypeFig(wxCommandEvent& event);
28 void OnExtract(wxCommandEvent& event);
29 void SetVtkMPRBaseData( vtkMPRBaseData *vtkmprbasedata );
30 void SetVtkClipping3DDataViewer( vtkClipping3DDataViewer *vtkclipping3Ddataviewer );
31 void SetWxVtk3DBaseView( wxVtk3DBaseView * wxvtk3Dbaseview );
33 void SetParamsOfTransformation( );
41 wxSlider *_opacityFig;
49 wxRadioButton *_volIntern;
50 wxRadioButton *_volExtern;
51 wxCheckBox *_histogrammeAccumulated;
53 wxSlider *_valueBeforeIsoValue;
54 wxSlider *_valueAfterIsoValue;
57 wxStaticText *_infoToVo;
58 wxStaticText *_infoSuVo;
59 wxStaticText *_infoSuVoA;
60 wxStaticText *_infoPixLe;
61 wxStaticText *_infoPixHi;
64 figureCuttingCylinderModel *_modelCylinder;
65 figureCuttingCubeModel *_modelCube;
66 figureCuttingSphereModel *_modelSphere;
67 figureCuttingModel *_actualCuttingModel;
70 vtkCubeSource *_vtkcube;
71 vtkSphereSource *_vtksphere;
72 vtkCylinderSource *_vtkcylinder;
73 vtkPolyDataMapper *_cubeMapper;
74 vtkPolyDataMapper *_sphereMapper;
75 vtkPolyDataMapper *_cylinderMapper;
77 vtkActor *_sphereActor;
78 vtkActor *_cylinderActor;
79 vtkActor *_actualActor;
82 vtkMPRBaseData *_vtkmprbasedata;
83 wxVtk3DBaseView *_wxvtk3Dbaseview;
84 vtkImageData *_imageData;
85 vtkClipping3DDataViewer *_vtkclipping3Ddataviewer;
87 vtkImageData *_histogrammeVector;
88 vtkXYPlotActor *_xyplot;
89 wxVtkBaseView *_wxvtkbaseView;
90 vtkRenderer *_renplotter;
93 void CreateInterface();
94 void Create3DViewObjects();
95 void RefreshOpacity();
96 wxWindow *CreatePlotHistogrammeInterface();
97 void InitHistogramme();
103 #endif /*WXPANELCUTTINGIMAGEDATA_H_*/