18 #ifndef itkVTKVisualizeImageLevelSetIsoValues_h
19 #define itkVTKVisualizeImageLevelSetIsoValues_h
27 #include "vtkImageData.h"
28 #include "vtkLookupTable.h"
29 #include "vtkMarchingSquares.h"
30 #include "vtkMarchingCubes.h"
31 #include "vtkPolyDataMapper.h"
33 #include "vtkScalarBarActor.h"
34 #include "vtkProperty.h"
35 #include "vtkRenderWindowInteractor.h"
47 template<
typename TImage,
typename TLevelSet >
56 template<
typename TInputPixel,
typename TLevelSet >
59 Image< TInputPixel, 2 >,
60 ImageToVTKImageFilter< Image< TInputPixel, 2 > > >
88 void SetLevelLimit(
double iLimit );
89 double GetLevelLimit()
const;
92 #ifdef ITK_USE_CONCEPT_CHECKING
102 virtual void PrepareVTKPipeline();
106 void operator= ( const
Self& ) ITK_DELETE_FUNCTION;
111 LevelSetConverterPointer m_LevelSetConverter;
113 vtkSmartPointer< vtkMarchingSquares > m_MarchingSquare;
114 vtkSmartPointer< vtkPolyDataMapper > m_ContourMapper;
115 vtkSmartPointer< vtkActor > m_ContourActor;
116 vtkSmartPointer< vtkScalarBarActor > m_ScalarBar;
117 vtkSmartPointer< vtkLookupTable > m_Lut;
130 template< typename TInputPixel, typename TLevelSet >
133 Image< TInputPixel, 3 >,
153 virtual void SetInputImage(
const InputImageType * iImage );
154 void SetLevelSet( LevelSetType * levelSet );
163 void SetLevelLimit(
double iLimit );
164 double GetLevelLimit()
const;
167 #ifdef ITK_USE_CONCEPT_CHECKING
177 virtual void PrepareVTKPipeline();
181 void operator= ( const Self& ) ITK_DELETE_FUNCTION;
184 typedef typename LevelSetConverterType::Pointer LevelSetConverterPointer;
186 LevelSetConverterPointer m_LevelSetConverter;
188 vtkSmartPointer< vtkMarchingCubes > m_MarchingCubes;
189 vtkSmartPointer< vtkPolyDataMapper > m_ContourMapper;
190 vtkSmartPointer< vtkActor > m_ContourActor;
191 vtkSmartPointer< vtkScalarBarActor > m_ScalarBar;
192 vtkSmartPointer< vtkLookupTable > m_Lut;
200 #ifndef ITK_MANUAL_INSTANTIATION
201 #include "itkVTKVisualizeImageLevelSetIsoValues.hxx"
Light weight base class for most itk classes.
unsigned long SizeValueType
SizeValueType IdentifierType
Converts an ITK image into a VTK image and plugs a itk data pipeline to a VTK datapipeline.
Base class for visualizing level sets defined on an image with VTK.
#define itkConceptMacro(name, concept)
Templated n-dimensional image class.