#include <cpExtensions/Config.h>
#include <itkImageSource.h>
-#include <vtkSmartPointer.h>
-
-// -------------------------------------------------------------------------
-class vtkPoints;
-class vtkPolygon;
+#include <deque>
// -------------------------------------------------------------------------
namespace cpExtensions
public:
void AddPoint( double x, double y );
void AddPoint( double p[ 2 ] );
- void AddPoints( vtkPoints* points );
+ template< class _TPoint >
+ inline void AddPoint( const _TPoint& p );
void ClearPoints( );
protected:
void operator=( const Self& );
protected:
- vtkSmartPointer< vtkPolygon > m_Polygon;
+ std::deque< TPoint > m_Contour;
+ std::deque< TIndex > m_Polygon;
+ TRegion m_ROI;
typename TImageBase::ConstPointer m_Template;
TPixel m_InsideValue;
TPixel m_OutsideValue;
} // ecapseman
+// -------------------------------------------------------------------------
+template< class _TImage >
+template< class _TPoint >
+void cpExtensions::Algorithms::RasterContourFilter< _TImage >::
+AddPoint( const _TPoint& p )
+{
+ TPoint pnt;
+ pnt[ 0 ] = p[ 0 ];
+ pnt[ 1 ] = p[ 2 ];
+ this->m_Contour.push_back( pnt );
+ this->Modified( );
+}
+
+// -------------------------------------------------------------------------
#ifndef ITK_MANUAL_INSTANTIATION
# include <cpExtensions/Algorithms/RasterContourFilter.hxx>
#endif // ITK_MANUAL_INSTANTIATION