]> 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 class creaMaracasVisu_EXPORT wxVtkMPR2DView :  public wxVtk2DBaseView
9 {
10 public:
11         wxVtkMPR2DView( wxWindow *parent, int direction );
12         ~wxVtkMPR2DView();
13         void Configure();
14         virtual void                    Refresh();
15                         vtkMPRBaseData  *GetVtkmprbasedata();
16         virtual int                             GetActualSlice();
17         virtual void                    SetActualSlice(int slice);
18
19                         bool                    IfMouseTouchX(double x, double y, double z);
20                         bool                    IfMouseTouchY(double x, double y, double z);
21                         bool                    IfMouseTouchZ(double x, double y, double z);
22                         void                    MoveX(double x, double y, double z);
23                         void                    MoveY(double x, double y, double z);
24                         void                    MoveZ(double x, double y, double z);
25                         void                    ChangeAxisColor(double x, double y, double z);
26         virtual void                    TransfromeCoordViewWorld(double &X, double &Y, double &Z, int type);
27                         void                    SetVisibleAxis(bool ok);
28
29
30 private:
31
32         int                                                     _backX;
33         int                                                     _backY;
34         int                                                     _backZ;
35
36         bool                                            _visibleAxis;
37
38         int                                                     _direction;
39         vtkPoints                                       *_ptsA;
40         vtkActor                                        *_lineAActor;
41         vtkPolyDataMapper                       *_lineAMapper;
42     vtkPolyData                                 *_pdA;
43         vtkPoints                                       *_ptsB;
44         vtkActor                                        *_lineBActor;
45         vtkPolyDataMapper                       *_lineBMapper;
46     vtkPolyData                                 *_pdB;
47 //      vtkInteractorStyle2DMaracas     *_interactorStyle2DMaracas; 
48         vtkInteractorStyleMPRView       *_interactorstylemprview;
49 };
50
51
52 #endif /*WXVTKMPR2DVIEW_H_*/