1 #ifndef __CPPLUGINSWIDGETS__SEEDWIDGET__H__
2 #define __CPPLUGINSWIDGETS__SEEDWIDGET__H__
4 #include <plugins/cpPluginsWidgets/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
21 typedef SeedWidget Self;
22 typedef cpPlugins::BaseWidget Superclass;
23 typedef itk::SmartPointer< Self > Pointer;
24 typedef itk::SmartPointer< const Self > ConstPointer;
28 itkTypeMacro( SeedWidget, cpPlugins::BaseWidget );
29 cpPlugins_Id_Macro( SeedWidget, Widgets );
33 vtkSmartPointer< cpExtensions::Interaction::SeedWidget > Widget;
34 vtkSmartPointer< vtkImageActorPointPlacer > Placer;
35 vtkSmartPointer< vtkPointHandleRepresentation3D > Handle;
36 vtkSmartPointer< vtkSeedRepresentation > Seed;
39 cpPluginsWidgets::SeedWidget* parent,
40 vtkRenderWindowInteractor* interactor, vtkImageActor* actor
48 virtual ~SeedWidget( );
50 virtual void _GenerateData( ) ITK_OVERRIDE;
53 // Purposely not implemented
54 SeedWidget( const Self& );
55 Self& operator=( const Self& );
59 std::vector< WidgetData > m_Widgets;
60 unsigned int m_InitialNumberOfSeeds;
65 #endif // __CPPLUGINSWIDGETS__SEEDWIDGET__H__