1 #ifndef VTKPLANE2DVIEW_H_
2 #define VTKPLANE2DVIEW_H_
4 #include "vtkInteractorStylePlane2D.h"
5 #include "vtkInfoTextImageInteractorPlane2D.h"
6 #include "vtkInfoTextImage.h"
8 #include "wxVtk2DBaseView.h"
10 #include "vtkTransform.h"
11 #include "vtkImageChangeInformation.h"
12 #include "vtkStructuredPoints.h"
13 #include "vtkPlaneSource.h"
14 #include "vtkProbeFilter.h"
15 #include "vtkPolyDataMapper.h"
17 class vtkPlane2DView : public wxVtk2DBaseView
20 vtkPlane2DView(wxWindow *parent);
25 void SetImgSize( int imgSize );
28 void RotationDrag(double vx, double vy, bool ok_v, bool ok_ang);
30 virtual int GetActualSlice();
31 virtual void SetActualSlice(int slice);
33 virtual void Refresh( );
35 vtkMPRBaseData *GetVtkmprbasedata();
36 vtkInteractorStylePlane2D *GetInteractorstyleplane2D();
38 void SetActive(bool active);
39 void SetVisibleLine(bool ok);
41 void TransfromCoordViewWorld2(double &X, double &Y, double &Z);
44 void SetMipWidth(int value);
45 bool GetMipVisualization();
46 void SetMipVisualization(bool ok);
53 bool _mip_visualization;
58 double _backOrient[4];
63 double _n[3]; // Normal
71 vtkImageData * _imageResult;
76 vtkPolyDataMapper *_lineMapper;
79 vtkProbeFilter *_3Dslices;
80 vtkPlaneSource *_pSource;
81 vtkStructuredPoints *_stPoints;
82 vtkImageChangeInformation *_change;
83 vtkTransform *_transform1;
84 vtkTransform *_transform2;
86 vtkInteractorStylePlane2D *_interactorstyleplane2D;
88 vtkInfoTextImage *_vtkInfoTextImage;
89 vtkInfoTextImageInteractorPlane2D *_vtkInfoTextImageInteractorPlane2D;
92 void SetPSource(int sizeIma);
93 void HorizontalLine();
95 void Extract_One_PlaneVTK();
96 void Extract_MIP_PlaneVTK();
101 #endif /*VTKPLANE2DVIEW_H_*/