]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/MPRInteractionCommand.h
yet another refactoring
[cpPlugins.git] / lib / cpExtensions / QT / MPRInteractionCommand.h
diff --git a/lib/cpExtensions/QT/MPRInteractionCommand.h b/lib/cpExtensions/QT/MPRInteractionCommand.h
new file mode 100644 (file)
index 0000000..29aa5de
--- /dev/null
@@ -0,0 +1,58 @@
+#ifndef __cpExtensions__QT__MPRInteractionCommand__h__
+#define __cpExtensions__QT__MPRInteractionCommand__h__
+
+#include <cpExtensions/Config.h>
+#include <cpExtensions/Interaction/BaseStyle.h>
+#include <vtkCommand.h>
+#include <vtkSmartPointer.h>
+#include <set>
+
+// -------------------------------------------------------------------------
+namespace cpExtensions
+{
+  namespace QT
+  {
+    class ImageWidget;
+    class MPR3DWidget;
+
+    /**
+     */
+    class cpExtensions_EXPORT MPRInteractionCommand
+      : public vtkCommand
+    {
+    public:
+      typedef MPRInteractionCommand Self;
+
+    public:
+      vtkTypeMacro( MPRInteractionCommand, vtkCommand );
+
+    public:
+      static Self* New( );
+
+      void AddWidget( QWidget* w );
+
+      virtual void Execute(
+        vtkObject* caller, unsigned long evId, void* data
+        ) cpExtensions_OVERRIDE;
+      
+    protected:
+      MPRInteractionCommand( );
+      virtual ~MPRInteractionCommand( );
+
+    private:
+      // Purposely not implemented
+      MPRInteractionCommand( const Self& );
+      Self& operator=( const Self& );
+
+    protected:
+      std::set< cpExtensions::QT::ImageWidget* > m_ImageWidgets;
+      std::set< cpExtensions::QT::MPR3DWidget* > m_MPR3DWidgets;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __cpExtensions__QT__MPRInteractionCommand__h__
+
+// eof - $RCSfile$