1 #ifndef __CPM__VTK__THREADEDDEFORMATIONOBSERVER__H__
2 #define __CPM__VTK__THREADEDDEFORMATIONOBSERVER__H__
4 #include <itkCommand.h>
5 #include <vtkMutexLock.h>
6 #include <vtkRenderWindow.h>
7 #include <vtkSmartPointer.h>
16 class ThreadedDeformationObserver
20 typedef ThreadedDeformationObserver Self;
21 typedef itk::Command Superclass;
22 typedef itk::SmartPointer< Self > Pointer;
23 typedef itk::SmartPointer< const Self > ConstPointer;
27 itkTypeMacro( ThreadedDeformationObserver, itkCommand );
30 void Configure( vtkRenderWindow* w );
31 void Execute( itk::Object* caller, const itk::EventObject& evt );
32 void Execute( const itk::Object* caller, const itk::EventObject& evt );
35 ThreadedDeformationObserver( );
36 virtual ~ThreadedDeformationObserver( );
39 // Purposely not implemented
40 ThreadedDeformationObserver( const Self& );
41 Self& operator=( const Self& );
44 vtkRenderWindow* m_Window;
45 vtkSmartPointer< vtkMutexLock > m_MutexLock;
52 #include <cpm/VTK/ThreadedDeformationObserver.hxx>
54 #endif // __CPM__VTK__THREADEDDEFORMATIONOBSERVER__H__