]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/MPR3DWidget.h
Architecture updated.
[cpPlugins.git] / lib / cpExtensions / QT / MPR3DWidget.h
diff --git a/lib/cpExtensions/QT/MPR3DWidget.h b/lib/cpExtensions/QT/MPR3DWidget.h
new file mode 100644 (file)
index 0000000..b9f3ef6
--- /dev/null
@@ -0,0 +1,57 @@
+#ifndef __cpExtensions__QT__MPR3DWidget__h__
+#define __cpExtensions__QT__MPR3DWidget__h__
+
+#include <cpExtensions/QT/RendererWidget.h>
+
+#ifdef cpExtensions_QT4
+
+// -------------------------------------------------------------------------
+class vtkDataSet;
+
+// -------------------------------------------------------------------------
+namespace cpExtensions
+{
+  namespace Visualization { class MPR3DActors; }
+
+  namespace QT
+  {
+    /**
+     */
+    class cpExtensions_EXPORT MPR3DWidget
+      : public cpExtensions::QT::RendererWidget
+    {
+      Q_OBJECT;
+
+    public:
+      typedef MPR3DWidget                      Self;
+      typedef cpExtensions::QT::RendererWidget Superclass;
+
+    public:
+      explicit MPR3DWidget( QWidget* parent = NULL, Qt::WindowFlags f = 0 );
+      virtual ~MPR3DWidget( );
+
+      void SetImage( vtkImageData* image, const std::string& name );
+      void Add( vtkDataSet* data, const std::string& name );
+
+      void SetSliceNumber( int orientation, int slice );
+      void SetSlicesNumbers( int x, int y, int z );
+
+      void SetScalarRange( double r[ 2 ] );
+      void SetWindowLevel( double wl[ 2 ] );
+      void SetImageOpacity( double o );
+      void SetImageInterpolation( unsigned char i );
+
+    protected:
+      vtkSmartPointer< cpExtensions::Visualization::MPR3DActors > m_Actors;
+      std::string m_ImageName;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // cpExtensions_QT4
+
+#endif // __cpExtensions__QT__MPR3DWidget__h__
+
+// eof - $RCSfile$