wxVtkMPR3DView.h

Go to the documentation of this file.
00001 #ifndef WXVTKMPR3DVIEW_H_
00002 #define WXVTKMPR3DVIEW_H_
00003 
00004 #include "vtkMPR3DDataViewer.h"
00005 #include "wxVtkMPR3DViewCntrlPanel.h"
00006 #include "wxVtk3DBaseView.h"
00007 
00008 #include "vtkProbeFilter.h"
00009 #include "vtkPlaneWidget.h"
00010 #include "vtkPointWidget.h"
00011 #include "vtkImagePlaneWidget.h"
00012 
00013 
00014 //class vtkmyPWCallback_3DPointWidget;
00015 class wxVtkMPR3DViewCntrlPanel;
00016 
00017 class creaMaracasVisu_EXPORT wxVtkMPR3DView
00018 {
00019 public:
00020         wxVtkMPR3DView( wxVtk3DBaseView *wxvtk3Dbaseview );
00021         virtual ~wxVtkMPR3DView();      
00022         void                            VisibleImageActor(int idPosition, bool visible);
00023         void                            VisiblePointWidget( bool visible );
00024         void                            VisiblePlaneWidget( bool visible );
00025 
00026         void                            SetVisibleTissue(int idTissue, bool visible);
00027         bool                            GetVisibleTissue(int idTissue);
00028         virtual void            Refresh();
00029         virtual void            RefreshView();
00030         virtual void            Configure();
00031         void                            SetVtkMPR3DDataViewer( vtkMPR3DDataViewer *vtkmpr3Ddataviewer );
00032         wxPanel*                        CreateControlPanel(wxWindow *parent, bool align);
00033 
00034         vtkMPR3DDataViewer* GetVtkMPR3DDataViewer();
00035         wxVtk3DBaseView*        GetWxvtk3Dbaseview() throw (char*);
00036 
00037         void                            InitOrientationPointWidget(); 
00038         void                            showOutlineActor(bool value);
00039 
00040         // EED 25 Janvier 2007 testLoic
00041         void                            TestLoic1();
00042         void                            TestLoic2();
00043 
00044         void RemoveActor(vtkActor* actor);
00045         void ResetCamera(int *ext=NULL, double* origin=NULL,double* spc=NULL);
00046 
00047         void setColorTransferFunction(vtkColorTransferFunction* colortable);
00048 
00049         
00050         //Free planes
00051         //-------------------------------------------------------------------
00052         void ConfigureFreePlanes();
00053         vtkImagePlaneWidget* GetPlaneWidget(unsigned char activationkey, double r, double g, double b, vtkCellPicker* picker);
00054         void FreePlaneVisible(int plane, bool ok);
00055         void FreePlaneInteraction(bool ok);
00056         
00057         
00058 private:
00059         wxVtk3DBaseView                                 *_wxvtk3Dbaseview;
00060         vtkMPR3DDataViewer                              *_vtkmpr3Ddataviewer;
00061         wxVtkMPR3DViewCntrlPanel                *_wxvtkmpr3DviewCntrlPanel;
00062 
00063         // Plane Widget (3D)
00064         vtkPolyData                                             *_vtkplane;
00065         vtkActor                                                *_contourPlaneActor;
00066         vtkPlaneWidget                                  *_planeWidget;
00067 
00068         // Point Widget (3D)
00069         vtkPointWidget                                  *_pointWidget;
00070         //vtkmyPWCallback_3DPointWidget *_myCallback;
00071         vtkProbeFilter *_probe;
00072         vtkPolyDataMapper *_contourMapper;
00073 
00074         //Free planes
00075         vtkImagePlaneWidget *_planeWidgetX;
00076         vtkImagePlaneWidget *_planeWidgetY;
00077         vtkImagePlaneWidget *_planeWidgetZ;
00078         
00079 
00080 protected:
00081 };
00082 
00083 #endif /*WXVTKMPR3DVIEW_H_*/

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1