X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FInteraction%2FSeedWidget.h;h=858218b2657b306cc72624d3f46c0ead0061e47a;hb=d8ebffc6ece697ddf7b358946ef5d9c9cd7191fe;hp=526ac7eaca6ff25f9683c1642fa1bc5200d9ef4d;hpb=fdd4f2cec18107de380ebd350cb1019eed7c294c;p=cpPlugins.git diff --git a/lib/cpExtensions/Interaction/SeedWidget.h b/lib/cpExtensions/Interaction/SeedWidget.h index 526ac7e..858218b 100644 --- a/lib/cpExtensions/Interaction/SeedWidget.h +++ b/lib/cpExtensions/Interaction/SeedWidget.h @@ -1,8 +1,8 @@ -#ifndef __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__ -#define __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__ +#ifndef __cpExtensions__Interaction__SeedWidget__h__ +#define __cpExtensions__Interaction__SeedWidget__h__ -#include -#include +#include +#include #include namespace cpExtensions @@ -18,26 +18,35 @@ namespace cpExtensions typedef SeedWidget Self; vtkTypeMacro( SeedWidget, vtkSeedWidget ); - typedef cpExtensions::Interaction::BaseInteractorStyle TBaseStyle; - typedef TBaseStyle::TMouseCommand TMouseCommand; + typedef cpExtensions::Interaction::BaseStyle TBaseStyle; public: static Self* New( ); - virtual void SetInteractor( vtkRenderWindowInteractor* rwi ); + virtual void SetInteractor( + vtkRenderWindowInteractor* rwi + ) cpExtensions_OVERRIDE; protected: SeedWidget( ); virtual ~SeedWidget( ); - static void _Click( - void* data, const TBaseStyle::ButtonID& button, - int* idx, double* pos, bool alt, bool ctr, bool sft - ); - static void _DoubleClick( - void* data, const TBaseStyle::ButtonID& button, - int* idx, double* pos, bool alt, bool ctr, bool sft - ); + static void _AddPointAction( vtkAbstractWidget* wdg ); + static void _CompletedAction( vtkAbstractWidget* wdg ); + static void _MoveAction( vtkAbstractWidget* wdg ); + static void _EndSelectAction( vtkAbstractWidget* wdg ); + static void _DeleteAction( vtkAbstractWidget* wdg ); + + /* TODO + static void _Click( + void* data, const TBaseStyle::ButtonID& button, + int* idx, double* pos, bool alt, bool ctr, bool sft + ); + static void _DoubleClick( + void* data, const TBaseStyle::ButtonID& button, + int* idx, double* pos, bool alt, bool ctr, bool sft + ); + */ private: // Purposely not implemented @@ -49,6 +58,6 @@ namespace cpExtensions } // ecapseman -#endif // __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__ +#endif // __cpExtensions__Interaction__SeedWidget__h__ // eof - $RCSfile$