1 /*=========================================================================
4 Module: $RCSfile: wxMaracas_ViewerWidget.h,v $
6 Date: $Date: 2009/07/27 07:58:20 $
7 Version: $Revision: 1.7 $
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>
34 //------------------------------------------------------------------------------------------------------------
36 //------------------------------------------------------------------------------------------------------------
38 #include "vtkImageData.h"
39 #include "vtkRenderer.h"
41 #include "wxVtkBaseView.h"
42 #include "wxMPRWidget.h"
44 //------------------------------------------------------------------------------------------------------------
46 //------------------------------------------------------------------------------------------------------------
49 class wxMaracas_ViewerWidget : public wxPanel
53 //------------------------------------------------------------------------------------------------------------
54 // Constructors & Destructors
55 //------------------------------------------------------------------------------------------------------------
57 wxMaracas_ViewerWidget(wxWindow *parent, vtkImageData* imagedata, int type, vtkMPRBaseData *vtkmprbasedata=NULL);
58 ~wxMaracas_ViewerWidget();
60 //------------------------------------------------------------------------------------------------------------
62 //------------------------------------------------------------------------------------------------------------
64 // vtkRenderer *GetRenderer();
67 virtual void Refresh(bool eraseBackground = true,const wxRect* rect = NULL );
69 wxVtkBaseView *GetwxVtkBaseView();
70 void SetImage( vtkImageData *image );
75 //------------------------------------------------------------------------------------------------------------
77 //------------------------------------------------------------------------------------------------------------
79 void setColorTransferFunction(vtkColorTransferFunction* colortable);
83 bool minternalVtkmprbasedata;
84 vtkMPRBaseData *mvtkmprbasedata;
86 wxVtk2DBaseView *mvtk2Dbaseview;
87 wxVtkMPR2DView *mvtkmpr2Dview_X;
88 wxVtkMPR2DView *mvtkmpr2Dview_Y;
89 wxVtkMPR2DView *mvtkmpr2Dview_Z;
90 wxWidgetMesure2D_Plane_in_MPR *mwidgetMesure;
91 vtkPlane2DView *mvtkplane2Dview;
92 wxSphereView *mwxsphereview;
94 wxVtkClipping3DView *mwxvtkclipping3Dview;
95 wxVtk3DBaseView *mwxvtk3Dbaseview_Clipping3D;
96 wxVtkMPR3DView *mwxvtkmpr3Dview;
99 vtkMPR3DDataViewer *vtkmpr3Ddataviewer;
104 #endif // __WX__MARACAS__VIEWERWIDGET__H__