1 #ifndef __CPPLUGINSWIDGETS__SEEDWIDGET__H__
2 #define __CPPLUGINSWIDGETS__SEEDWIDGET__H__
4 #include <plugins/Widgets/cpPluginsWidgets_Export.h>
5 #include <cpPlugins/BaseWidget.h>
7 #include <cpExtensions/Interaction/SeedWidget.h>
8 #include <vtkImageActorPointPlacer.h>
9 #include <vtkPointHandleRepresentation3D.h>
10 #include <vtkSeedRepresentation.h>
11 #include <vtkSmartPointer.h>
13 namespace cpPluginsWidgets
17 class cpPluginsWidgets_EXPORT SeedWidget
18 : public cpPlugins::BaseWidget
22 typedef SeedWidget Self;
23 typedef cpPlugins::BaseWidget Superclass;
24 typedef itk::SmartPointer< Self > Pointer;
25 typedef itk::SmartPointer< const Self > ConstPointer;
29 itkTypeMacro( SeedWidget, cpPlugins::BaseWidget );
30 cpPlugins_Id_Macro( SeedWidget, Widgets );
34 vtkSmartPointer< cpExtensions::Interaction::SeedWidget > Widget;
35 vtkSmartPointer< vtkImageActorPointPlacer > Placer;
36 vtkSmartPointer< vtkPointHandleRepresentation3D > Handle;
37 vtkSmartPointer< vtkSeedRepresentation > Seed;
40 cpPluginsWidgets::SeedWidget* parent,
41 vtkRenderWindowInteractor* interactor, vtkImageActor* actor
49 virtual ~SeedWidget( );
51 virtual void _GenerateData( ) ITK_OVERRIDE;
54 // Purposely not implemented
55 SeedWidget( const Self& );
56 Self& operator=( const Self& );
60 std::vector< WidgetData > m_Widgets;
61 unsigned int m_InitialNumberOfSeeds;
66 #endif // __CPPLUGINSWIDGETS__SEEDWIDGET__H__