]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.h
df52dfe5e137ea06001b96ec2bbdcfcff14830ac
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkMPR2DView.h
1 #ifndef WXVTKMPR2DVIEW_H_
2 #define WXVTKMPR2DVIEW_H_
3
4 #include "vtkInteractorStyleMPRView.h"
5
6 #include "wxVtk2DBaseView.h"
7
8 #include "vtkPolyDataMapper.h"
9 #include <vtkPolyData.h>
10 #include <vtkPoints.h>
11 #include "vtkActor.h"
12 #include "vtkPolyData.h"
13
14 class creaMaracasVisu_EXPORT wxVtkMPR2DView :  public wxVtk2DBaseView
15 {
16 public:
17         wxVtkMPR2DView( wxWindow *parent, int direction );
18         ~wxVtkMPR2DView();
19         void Configure();
20         virtual void                    Refresh();
21                         vtkMPRBaseData  *GetVtkmprbasedata();
22         virtual int                             GetActualSlice();
23         virtual void                    SetActualSlice(int slice);
24
25                         bool                    IfMouseTouchX(double x, double y, double z);
26                         bool                    IfMouseTouchY(double x, double y, double z);
27                         bool                    IfMouseTouchZ(double x, double y, double z);
28                         void                    MoveX(double x, double y, double z);
29                         void                    MoveY(double x, double y, double z);
30                         void                    MoveZ(double x, double y, double z);
31                         void                    ChangeAxisColor(double x, double y, double z);
32         virtual void                    TransfromeCoordViewWorld(double &X, double &Y, double &Z, int type);
33                         void                    SetVisibleAxis(bool ok);
34
35
36 private:
37
38         int                                                     _backX;
39         int                                                     _backY;
40         int                                                     _backZ;
41
42         bool                                            _visibleAxis;
43
44         int                                                     _direction;
45         vtkPoints                                       *_ptsA;
46         vtkActor                                        *_lineAActor;
47         vtkPolyDataMapper                       *_lineAMapper;
48     vtkPolyData                                 *_pdA;
49         vtkPoints                                       *_ptsB;
50         vtkActor                                        *_lineBActor;
51         vtkPolyDataMapper                       *_lineBMapper;
52     vtkPolyData                                 *_pdB;
53 //      vtkInteractorStyle2DMaracas     *_interactorStyle2DMaracas; 
54         vtkInteractorStyleMPRView       *_interactorstylemprview;
55 };
56
57
58 #endif /*WXVTKMPR2DVIEW_H_*/