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"
16 class vtkPlane2DView : public wxVtk2DBaseView
19 vtkPlane2DView(wxWindow *parent);
24 void SetImgSize( int imgSize );
27 void RotationDrag(double vx, double vy, bool ok_v, bool ok_ang);
29 virtual int GetActualSlice();
30 virtual void SetActualSlice(int slice);
32 virtual void Refresh( );
34 vtkMPRBaseData *GetVtkmprbasedata();
35 vtkInteractorStylePlane2D *GetInteractorstyleplane2D();
37 void SetActive(bool active);
38 void SetVisibleLine(bool ok);
40 void TransfromeCoordViewWorld2(double &X, double &Y, double &Z);
43 void SetMipWidth(int value);
44 bool GetMipVisualization();
45 void SetMipVisualization(bool ok);
52 bool _mip_visualization;
57 double _backOrient[4];
62 double _n[3]; // Normal
70 vtkImageData * _imageResult;
75 vtkPolyDataMapper *_lineMapper;
78 vtkProbeFilter *_3Dslices;
79 vtkPlaneSource *_pSource;
80 vtkStructuredPoints *_stPoints;
81 vtkImageChangeInformation *_change;
82 vtkTransform *_transform1;
83 vtkTransform *_transform2;
85 vtkInteractorStylePlane2D *_interactorstyleplane2D;
87 vtkInfoTextImage *_vtkInfoTextImage;
88 vtkInfoTextImageInteractorPlane2D *_vtkInfoTextImageInteractorPlane2D;
91 void SetPSource(int sizeIma);
92 void HorizontalLine();
94 void Extract_One_PlaneVTK();
95 void Extract_MIP_PlaneVTK();
100 #endif /*VTKPLANE2DVIEW_H_*/