]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.h
*** empty log message ***
[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                    TransFromCoordScreenToWorld(double &X, double &Y, double &Z, bool keepNormalDirection=false, int type=2);
33         
34                         void                    SetVisibleAxis(bool ok);
35
36
37
38 private:
39
40         int                                                     _backX;
41         int                                                     _backY;
42         int                                                     _backZ;
43
44         bool                                            _visibleAxis;
45
46         int                                                     _direction;
47         vtkPoints                                       *_ptsA;
48         vtkActor                                        *_lineAActor;
49         vtkPolyDataMapper                       *_lineAMapper;
50     vtkPolyData                                 *_pdA;
51         vtkPoints                                       *_ptsB;
52         vtkActor                                        *_lineBActor;
53         vtkPolyDataMapper                       *_lineBMapper;
54     vtkPolyData                                 *_pdB;
55 //      vtkInteractorStyle2DMaracas     *_interactorStyle2DMaracas; 
56         vtkInteractorStyleMPRView       *_interactorstylemprview;
57 };
58
59
60 #endif /*WXVTKMPR2DVIEW_H_*/