1 #ifndef __FPA__VTK__IMAGE2DOBSERVER__H__
2 #define __FPA__VTK__IMAGE2DOBSERVER__H__
5 #include <itkCommand.h>
7 #include <vtkImageActor.h>
8 #include <vtkImageData.h>
9 #include <vtkPolyData.h>
10 #include <vtkSmartPointer.h>
18 template< class F, class R >
23 typedef Image2DObserver Self;
24 typedef itk::Command Superclass;
25 typedef itk::SmartPointer< Self > Pointer;
26 typedef itk::SmartPointer< const Self > ConstPointer;
29 typedef R TRenderWindow;
30 typedef typename TFilter::TInputImage TImage;
31 typedef typename TFilter::TVertex TVertex;
33 typedef std::set< TVertex > TVertices;
37 itkTypeMacro( Image2DObserver, itkCommand );
39 itkGetConstMacro( RenderPercentage, double );
40 itkSetMacro( RenderPercentage, double );
43 void SetRenderWindow( R* rw );
45 typename TImage::IndexType idx,
52 void Execute( itk::Object* c, const itk::EventObject& e )
53 { this->Execute( ( const itk::Object* )( c ), e ); }
54 void Execute( const itk::Object* c, const itk::EventObject& e );
58 virtual ~Image2DObserver( );
61 Image2DObserver( const Self& ); // Not impl.
62 void operator=( const Self& ); // Not impl.
65 vtkSmartPointer< vtkImageData > m_Stencil;
66 vtkSmartPointer< vtkImageActor > m_StencilActor;
69 unsigned long m_Count;
70 unsigned long m_RenderCount;
71 double m_RenderPercentage;
78 #include <fpa/VTK/Image2DObserver.hxx>
80 #endif // __FPA__VTK__IMAGE2DOBSERVER__H__