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
00068 wxMaracas_N_ViewersWidget(wxWindow *parent, vtkImageData* imagedata = NULL, std::vector<int> *nTypeView = NULL);
00077 wxMaracas_N_ViewersWidget(wxWindow *parent, std::vector<int> *nTypeView, vtkImageData* imagedata = NULL);
00082 ~wxMaracas_N_ViewersWidget();
00083
00084
00085
00086
00087
00088
00089 void Update();
00090 vtkRenderer *GetRenderer();
00091 void RefreshView();
00092
00093 virtual void OnRefreshView(wxCommandEvent & event);
00094 void OnDClickLeft(wxCommandEvent & event);
00095 wxMaracas_ViewerWidget *GetWindow(int iWin);
00096 wxVtkBaseView *GetwxVtkBaseView(int iWin);
00097 virtual void Refresh(bool eraseBackground = true,const wxRect* rect = NULL );
00098 void SetImage( vtkImageData *image );
00099 void ConfigureVTK();
00100 void SetType(std::vector<int>* type);
00101 void UpdateLayout(vtkImageData* imagedata);
00102
00103 double GetX();
00104 double GetY();
00105 double GetZ();
00106
00107 void setColorTransferFunction(vtkColorTransferFunction* colortable);
00108
00109 void setWindowLevel(double level);
00110 void setColorLevel(double level);
00111
00112
00113
00114
00115
00116 private:
00117
00118 wxMaracas_ViewerWidget *wxwindow1;
00119 wxMaracas_ViewerWidget *wxwindow2;
00120 wxMaracas_ViewerWidget *wxwindow3;
00121 wxMaracas_ViewerWidget *wxwindow4;
00122
00123 wxWindow *_currentwxw;
00124
00125
00126 std::vector<int> *nTypeView;
00127
00128 vtkMPRBaseData* mvtkmprbasedata;
00129
00130 void invariant();
00131 DECLARE_EVENT_TABLE( );
00132 };
00133
00134
00135 #endif // __WX__MARACAS__N_VIEWERWIDGET__H__