]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR3DView.h
*** empty log message ***
[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, bool align);
32
33         vtkMPR3DDataViewer* GetVtkMPR3DDataViewer();
34         wxVtk3DBaseView*        GetWxvtk3Dbaseview() throw (char*);
35
36         void                            InitOrientationPointWidget(); 
37         void                            showOutlineActor(bool value);
38
39         // EED 25 Janvier 2007 testLoic
40         void                            TestLoic1();
41         void                            TestLoic2();
42
43         void RemoveActor(vtkActor* actor);
44         void ResetCamera(int *ext=NULL, double* origin=NULL,double* spc=NULL);
45
46         void setColorTransferFunction(vtkColorTransferFunction* colortable);
47
48 private:
49         wxVtk3DBaseView                                 *_wxvtk3Dbaseview;
50         vtkMPR3DDataViewer                              *_vtkmpr3Ddataviewer;
51         wxVtkMPR3DViewCntrlPanel                *_wxvtkmpr3DviewCntrlPanel;
52
53         // Plane Widget (3D)
54         vtkPolyData                                             *_vtkplane;
55         vtkActor                                                *_contourPlaneActor;
56         vtkPlaneWidget                                  *_planeWidget;
57
58         // Point Widget (3D)
59         vtkPointWidget                                  *_pointWidget;
60         //vtkmyPWCallback_3DPointWidget *_myCallback;
61         vtkProbeFilter *_probe;
62         vtkPolyDataMapper *_contourMapper;
63
64         
65
66 protected:
67 };
68
69 #endif /*WXVTKMPR3DVIEW_H_*/