]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/ActorsWidgetInterface.h
yet another refactoring
[cpPlugins.git] / lib / cpExtensions / QT / ActorsWidgetInterface.h
diff --git a/lib/cpExtensions/QT/ActorsWidgetInterface.h b/lib/cpExtensions/QT/ActorsWidgetInterface.h
new file mode 100644 (file)
index 0000000..6af66ea
--- /dev/null
@@ -0,0 +1,68 @@
+#ifndef __cpExtensions__QT__ActorsWidgetInterface__h__
+#define __cpExtensions__QT__ActorsWidgetInterface__h__
+
+#include <cpExtensions/Config.h>
+
+#include <string>
+#include <set>
+
+class vtkRenderWindowInteractor;
+
+namespace cpExtensions
+{
+  namespace QT
+  {
+    /**
+     */
+    class cpExtensions_EXPORT ActorsWidgetInterface
+    {
+    public:
+      typedef ActorsWidgetInterface Self;
+
+    public:
+      ActorsWidgetInterface( ) { }
+      virtual ~ActorsWidgetInterface( ) { }
+
+      virtual std::set< vtkRenderWindowInteractor* > GetInteractors( ) const = 0;
+
+      virtual std::set< std::string > GetActorsNames( ) const = 0;
+      virtual bool IsWindowLevelImageActor( const std::string& name ) const = 0;
+      virtual bool IsLUTImageActor( const std::string& name ) const = 0;
+      virtual bool Is3DActor( const std::string& name ) const = 0;
+
+      virtual void GetScalarRange( const std::string& name, double r[ 2 ] ) const = 0;
+      virtual void GetWindowLevel( const std::string& name, double wl[ 2 ] ) const = 0;
+      virtual double GetWindow( const std::string& name ) const = 0;
+      virtual double GetLevel( const std::string& name ) const = 0;
+      virtual char GetImageInterpolation( const std::string& name ) const = 0;
+
+      virtual void GetColor( const std::string& name, double& r, double& g, double& b ) const = 0;
+      virtual double GetOpacity( const std::string& name ) const = 0;
+      virtual double GetPointSize( const std::string& name ) const = 0;
+      virtual double GetLineWidth( const std::string& name ) const = 0;
+      virtual int GetRepresentation( const std::string& name ) const = 0;
+
+      virtual void SetScalarRange( const std::string& name, double r[ 2 ] ) = 0;
+      virtual void SetScalarRange( const std::string& name, double min, double max ) = 0;
+      virtual void SetWindowLevel( const std::string& name, double wl[ 2 ] ) = 0;
+      virtual void SetWindowLevel( const std::string& name, double w, double l ) = 0;
+      virtual void SetWindow( const std::string& name, double w ) = 0;
+      virtual void SetLevel( const std::string& name, double l ) = 0;
+      virtual void SetImageInterpolation( const std::string& name, char i ) = 0;
+
+      virtual void SetColor( const std::string& name, double r, double g, double b ) = 0;
+      virtual void SetOpacity( const std::string& name, double o ) = 0;
+      virtual void SetPointSize( const std::string& name, double s ) = 0;
+      virtual void SetLineWidth( const std::string& name, double w ) = 0;
+      virtual void SetRepresentationToPoints( const std::string& name ) = 0;
+      virtual void SetRepresentationToSurface( const std::string& name ) = 0;
+      virtual void SetRepresentationToWireframe( const std::string& name ) = 0;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __cpExtensions__QT__ActorsWidgetInterface__h__
+
+// eof - $RCSfile$