#define __cpPlugins__BaseObjects__Widget__h__
#include <cpPlugins/BaseObjects/ProcessObject.h>
+#include <vtkRenderWindowInteractor.h>
// -------------------------------------------------------------------------
namespace cpPlugins
cpPlugins_Id_Macro( Widget, Object );
public:
+ virtual void AddInteractor( vtkRenderWindowInteractor* i ) cpPlugins_OVERRIDE;
virtual bool IsInteractive( ) cpPlugins_OVERRIDE;
virtual void EnabledOn( );
// Purposely not implemented
Widget( const Self& );
Self& operator=( const Self& );
+
+ protected:
+ typedef vtkSmartPointer< vtkRenderWindowInteractor > _TInteractor;
+ struct _TInteractorCmp
+ {
+ bool operator()(
+ const _TInteractor& a, const _TInteractor& b
+ ) const
+ { return( a.GetPointer( ) < b.GetPointer( ) ); }
+ };
+ std::set< _TInteractor, _TInteractorCmp > m_Interactors;
+
};
} // ecapseman