wxVtkBaseView.h

Go to the documentation of this file.
00001 
00002 
00003 #ifndef __WX_VTK__BASE__VIEW__H
00004 #define __WX_VTK__BASE__VIEW__H
00005 
00006 
00007 
00008 #include <vtkRenderer.h>
00009 #include <vtkRenderWindow.h>
00010 #include <vtkCamera.h>
00011 #include <vtkTextActor.h>
00012 
00013 //EEDxx include
00014 #include <vtkProperty.h>
00015 #include <vtkActor.h>
00016 
00017 
00018 #include <vtkImageViewer2.h> 
00019 #include <vtkInteractorStyleImage.h> 
00020 
00021 #include "wxMPRBaseData.h"
00022 #include "wxVTKRenderWindowInteractorEditContour.h"
00023 
00024 #include <wx/wx.h>
00025 
00026 
00027 
00028 #include <vector>
00029 #include "marTypes.h"
00030 
00031 #include "wxVTKRenderWindowInteractor.h"
00032 //#include "include/vtkImageViewer2_XYZ.h"
00033 
00034 /* JCP 14/05/09
00035 //#include "vtkInteractorStyleBaseView.h"
00036 //class vtkInteractorStyleBaseView;  
00037  */
00038 
00039 #include "vtkInteractorStyleImage.h"
00040 
00041 
00042 
00043 
00044 class creaMaracasVisu_EXPORT wxVtkBaseView{
00045 public:
00046         wxVtkBaseView( );
00047         wxVtkBaseView( wxWindow *parent );
00048         virtual ~wxVtkBaseView();
00049         wxVTKRenderWindowInteractor             *GetWxVTKRenderWindowInteractor() throw (char*);
00050         virtual void                                    Configure();
00051         virtual void                                    Refresh();
00052         virtual void                                    RefreshView();
00053         virtual vtkRenderer*                    GetRenderer();
00054         virtual vtkRenderWindow*                GetRenWin();
00055         virtual void                                    TransFromCoordScreenToWorld(double &X, double &Y, double &Z, bool keepNormalDirection=false,int type=2);
00056         /* JCP 04/05/09
00057         void                                                    SetInteractorStyleBaseView( vtkInteractorStyleBaseView* interactorStyle);
00058         */
00059         void                                                    SetInteractorStyleBaseView( vtkInteractorStyleImage*    interactorStyle);
00060         /* JCP 04/05/09
00061          * 
00062         vtkInteractorStyleBaseView*             GetInteractorStyleBaseView();   
00063         */
00064         vtkInteractorStyleImage*                GetInteractorStyleBaseView();
00065         virtual void                                    GetSpacing(double spc[3]);
00066 
00067 private:
00068         wxWindow                                                *_parent;
00069         wxVTKRenderWindowInteractor             *_iren;
00074         vtkInteractorStyleImage         *_interactorStyle;
00075 protected:
00076 
00077 };
00078 
00079 
00080 
00081 //------------------------------------------------------------------
00082 //------------------------------------------------------------------
00083 //------------------------------------------------------------------
00084 
00085 
00086 
00087 
00088 
00089 #endif // __WX_VTK__BASE__VIEW__H
00090 
00091 
00092 
00093 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1