wxMaracas_N_ViewersWidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __WX__MARACAS__N_VIEWERSWIDGET__H__
00019 #define __WX__MARACAS__N_VIEWERSWIDGET__H__
00020
00021
00022
00023
00024
00025
00026 #include <wx/wxprec.h>
00027 #ifdef __BORLANDC__
00028 #pragma hdrstop
00029 #endif
00030 #ifndef WX_PRECOMP
00031 #include <wx/wx.h>
00032 #endif
00033
00034
00035
00036
00037
00038 #include "vtkImageData.h"
00039 #include "wxMaracas_ViewerWidget.h"
00040 #include <iostream>
00041 #include <vector>
00042
00043
00044
00045
00046
00047 class creaMaracasVisu_EXPORT wxMaracas_N_ViewersWidget : public wxPanel
00048 {
00049 public:
00050
00051
00052
00053
00054
00055
00056 wxMaracas_N_ViewersWidget(wxWindow *parent, vtkImageData* imagedata = NULL, std::vector<int> *nTypeView = NULL);
00057 ~wxMaracas_N_ViewersWidget();
00058
00059
00060
00061
00062
00063
00064 void Update();
00065 vtkRenderer *GetRenderer();
00066 void RefreshView();
00067
00068 virtual void OnRefreshView(wxCommandEvent & event);
00069 void OnDClickLeft(wxCommandEvent & event);
00070 wxMaracas_ViewerWidget *GetWindow(int iWin);
00071 wxVtkBaseView *GetwxVtkBaseView(int iWin);
00072 virtual void Refresh(bool eraseBackground = true,const wxRect* rect = NULL );
00073 void SetImage( vtkImageData *image );
00074 void ConfigureVTK();
00075 void SetType(std::vector<int>* type);
00076 void UpdateLayout(vtkImageData* imagedata);
00077
00078 double GetX();
00079 double GetY();
00080 double GetZ();
00081
00082 void setColorTransferFunction(vtkColorTransferFunction* colortable);
00083
00084 void setWindowLevel(double level);
00085 void setColorLevel(double level);
00086
00087
00088
00089
00090
00091 private:
00092
00093 wxMaracas_ViewerWidget *wxwindow1;
00094 wxMaracas_ViewerWidget *wxwindow2;
00095 wxMaracas_ViewerWidget *wxwindow3;
00096 wxMaracas_ViewerWidget *wxwindow4;
00097
00098 wxWindow *_currentwxw;
00099
00100
00101 std::vector<int> *nTypeView;
00102
00103 vtkMPRBaseData* mvtkmprbasedata;
00104
00105 DECLARE_EVENT_TABLE( );
00106 };
00107
00108
00109 #endif // __WX__MARACAS__N_VIEWERWIDGET__H__