1 /*=========================================================================
4 Module: $RCSfile: vtk2DQuantSliceWidget.h,v $
6 Date: $Date: 2009/05/14 13:54:57 $
7 Version: $Revision: 1.1 $
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 =========================================================================*/
17 #ifndef __VTK2DQUANTSLICEWIDGET__
18 #define __VTK2DQUANTSLICEWIDGET__
20 #include "wxImageViewerWidget.h"
23 #include <vtkPolyLine.h>
24 #include <vtkDataSetMapper.h>
25 #include <vtkPolyDataMapper.h>
26 #include <vtkUnstructuredGrid.h>
30 * \brief Class that brigde to VTK, override double click...
32 class vtk2DQuantSliceWidget : public wxImageViewerWidget
36 vtk2DQuantSliceWidget( wxWindow* parent,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = wxSUNKEN_BORDER, //wxTAB_TRAVERSAL,
41 const wxString& name = wxPanelNameStr
43 ~vtk2DQuantSliceWidget( );
45 //void SetContour( vtkUnstructuredGrid *cnt );
46 void SetContour( vtkPolyData *cnt );
47 void SetDiameterMin(vtkPoints *diameterMin, bool showActor);
48 void SetDiameterMax(vtkPoints *diameterMax, bool showActor);
49 void Show2DContourDiameters();
50 void Hide2DContourDiameters();
58 vtkPolyDataMapper *_cntMapper;
62 vtkActor *_diameterMinvtkActor;
63 vtkPolyLine *_diameterMinvtkPolyLine;
64 vtkDataSetMapper *_diameterMinvtkDataSetMapper;
65 vtkUnstructuredGrid *_diameterMinvtkUnstructuredGrid;
68 vtkActor *_diameterMaxvtkActor;
69 vtkPolyLine *_diameterMaxvtkPolyLine;
70 vtkDataSetMapper *_diameterMaxvtkDataSetMapper;
71 vtkUnstructuredGrid *_diameterMaxvtkUnstructuredGrid;
74 // DECLARE_EVENT_TABLE( );
78 #endif //__VTK2DQUANTSLICEWIDGET__