1 /*=========================================================================
4 Module: $RCSfile: wxMaracas_ViewerWidget.h,v $
6 Date: $Date: 2010/01/21 13:54:15 $
7 Version: $Revision: 1.9 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
18 #ifndef __WX__MARACAS__VIEWERWIDGET__H__
19 #define __WX__MARACAS__VIEWERWIDGET__H__
22 // -----------------------------------------------------------------------------------------------------------
23 // WX headers inclusion.
24 // For compilers that support precompilation, includes <wx/wx.h>.
25 // -----------------------------------------------------------------------------------------------------------
26 #include <wx/wxprec.h>
35 //------------------------------------------------------------------------------------------------------------
37 //------------------------------------------------------------------------------------------------------------
39 #include "vtkImageData.h"
40 #include "vtkRenderer.h"
42 #include "wxVtkBaseView.h"
43 #include "wxMPRWidget.h"
45 //------------------------------------------------------------------------------------------------------------
47 //------------------------------------------------------------------------------------------------------------
50 class wxMaracas_ViewerWidget : public wxPanel
54 //------------------------------------------------------------------------------------------------------------
55 // Constructors & Destructors
56 //------------------------------------------------------------------------------------------------------------
58 wxMaracas_ViewerWidget(wxWindow *parent, vtkImageData* imagedata, int type, vtkMPRBaseData *vtkmprbasedata=NULL);
59 ~wxMaracas_ViewerWidget();
61 //------------------------------------------------------------------------------------------------------------
63 //------------------------------------------------------------------------------------------------------------
65 // vtkRenderer *GetRenderer();
68 virtual void Refresh(bool eraseBackground = true,const wxRect* rect = NULL );
70 wxVtkBaseView *GetwxVtkBaseView();
71 void SetImage( vtkImageData *image );
76 //------------------------------------------------------------------------------------------------------------
78 //------------------------------------------------------------------------------------------------------------
80 void setColorTransferFunction(vtkColorTransferFunction* colortable);
82 void setWindowLevel(double level);
84 void setColorLevel(double level);
88 bool minternalVtkmprbasedata;
89 vtkMPRBaseData *mvtkmprbasedata;
91 wxVtk2DBaseView *mvtk2Dbaseview;
92 wxVtkMPR2DView *mvtkmpr2Dview_X;
93 wxVtkMPR2DView *mvtkmpr2Dview_Y;
94 wxVtkMPR2DView *mvtkmpr2Dview_Z;
95 wxWidgetMesure2D_Plane_in_MPR *mwidgetMesure;
96 vtkPlane2DView *mvtkplane2Dview;
97 wxSphereView *mwxsphereview;
99 wxVtkClipping3DView *mwxvtkclipping3Dview;
100 wxVtk3DBaseView *mwxvtk3Dbaseview_Clipping3D;
101 wxVtkMPR3DView *mwxvtkmpr3Dview;
104 vtkMPR3DDataViewer *vtkmpr3Ddataviewer;
108 #endif // __WX__MARACAS__VIEWERWIDGET__H__