]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/ImageWidget.h
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpExtensions / QT / ImageWidget.h
index 3e3721ec6255988f3eace9aa7c93faba0d2d365e..897172db5cceff45efa649deca2b2cb84e55af6d 100644 (file)
@@ -45,7 +45,7 @@ namespace cpExtensions
 
       void Clear( );
       void SetImage(
-        vtkImageData* image, int orientation, const std::string& name
+        vtkImageData* image, const std::string& name, int orientation = 2
         );
       void Add( vtkDataSet* data, const std::string& name );
       virtual void ResetCamera( ) cpExtensions_OVERRIDE;
@@ -56,30 +56,6 @@ namespace cpExtensions
       void SetColor( const std::string& name, double r, double g, double b );
       void SetLineWidth( const std::string& name, double w );
 
-      /* TODO
-         void SetImage(
-         vtkImageData* image, int orientation, const std::string& name
-         );
-
-         // TODO: std::vector< vtkProp* > GetActors( const std::string& name ) const;
-         int GetOrientation( ) const;
-         void SetSliceNumber( int slice );
-
-
-         void GetScalarRange( double r[ 2 ] ) const;
-         void GetWindowLevel( double wl[ 2 ] ) const;
-         double GetImageOpacity( ) const;
-         unsigned char GetImageInterpolation( ) const;
-
-         void SetScalarRange( double r[ 2 ] );
-         void SetWindowLevel( double wl[ 2 ] );
-         void SetImageOpacity( double o );
-         void SetImageInterpolation( unsigned char i );
-
-         vtkProp* GetImageActor( );
-         const vtkProp* GetImageActor( ) const;
-      */
-
     protected:
       std::string m_ImageName;
 
@@ -90,15 +66,6 @@ namespace cpExtensions
       std::vector< TActor* > m_Actors;
 
       vtkSmartPointer< TStyle > m_Style;
-
-      /* TODO
-         protected:
-         vtkSmartPointer< cpExtensions::Visualization::ImageViewerActors >
-         m_ImageViewerActors;
-         vtkSmartPointer< cpExtensions::Interaction::ImageSliceStyle >
-         m_ImageSliceStyle;
-         std::string m_ImageName;
-      */
     };
 
   } // ecapseman