]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR3DView.h
no newline at end of file
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkMPR3DView.h
1 #ifndef WXVTKMPR3DVIEW_H_
2 #define WXVTKMPR3DVIEW_H_
3
4 #include "vtkMPR3DDataViewer.h"
5 #include "wxVtkMPR3DViewCntrlPanel.h"
6 #include "wxVtk3DBaseView.h"
7
8 #include "vtkProbeFilter.h"
9 #include "vtkPlaneWidget.h"
10 #include "vtkPointWidget.h"
11
12
13 //class vtkmyPWCallback_3DPointWidget;
14 class wxVtkMPR3DViewCntrlPanel;
15
16 class creaMaracasVisu_EXPORT wxVtkMPR3DView
17 {
18 public:
19         wxVtkMPR3DView( wxVtk3DBaseView *wxvtk3Dbaseview );
20         virtual ~wxVtkMPR3DView();      
21         void                            VisibleImageActor(int idPosition, bool visible);
22         void                            VisiblePointWidget( bool visible );
23         void                            VisiblePlaneWidget( bool visible );
24
25         void                            SetVisibleTissue(int idTissue, bool visible);
26         bool                            GetVisibleTissue(int idTissue);
27         virtual void            Refresh();
28         virtual void            RefreshView();
29         virtual void            Configure();
30         void                            SetVtkMPR3DDataViewer( vtkMPR3DDataViewer *vtkmpr3Ddataviewer );
31         wxPanel*                        CreateControlPanel(wxWindow *parent);
32
33         vtkMPR3DDataViewer* GetVtkMPR3DDataViewer();
34         wxVtk3DBaseView*        GetWxvtk3Dbaseview() throw (char*);
35
36         void                            InitOrientationPointWidget(); 
37
38         // EED 25 Janvier 2007 testLoic
39         void                            TestLoic1();
40         void                            TestLoic2();
41
42         void RemoveActor(vtkActor* actor);
43         void ResetCamera(int *ext=NULL, double* origin=NULL,double* spc=NULL);
44
45         void setColorTransferFunction(vtkColorTransferFunction* colortable);
46
47 private:
48         wxVtk3DBaseView                                 *_wxvtk3Dbaseview;
49         vtkMPR3DDataViewer                              *_vtkmpr3Ddataviewer;
50         wxVtkMPR3DViewCntrlPanel                *_wxvtkmpr3DviewCntrlPanel;
51
52         // Plane Widget (3D)
53         vtkPolyData                                             *_vtkplane;
54         vtkActor                                                *_contourPlaneActor;
55         vtkPlaneWidget                                  *_planeWidget;
56
57         // Point Widget (3D)
58         vtkPointWidget                                  *_pointWidget;
59         //vtkmyPWCallback_3DPointWidget *_myCallback;
60         vtkProbeFilter *_probe;
61         vtkPolyDataMapper *_contourMapper;
62
63         
64
65 protected:
66 };
67
68 #endif /*WXVTKMPR3DVIEW_H_*/