]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/MPRObjects.h
sphere widget done, finally
[cpPlugins.git] / lib / cpExtensions / Visualization / MPRObjects.h
index 7d33f3f0698dd6e0b483beb7ba852705075d541e..c21fca66f55e2fc36614e1442e502ad0c6af86a7 100644 (file)
@@ -19,7 +19,19 @@ namespace cpExtensions
     {
     public:
       typedef MPRObjects Self;
-      typedef cpExtensions::Visualization::MPRActors TMPRActors;
+
+      typedef MPRActors::TStyle                   TStyle;
+      typedef MPRActors::TMouseCommand            TMouseCommand;
+      typedef MPRActors::TMouseWheelCommand       TMouseWheelCommand;
+      typedef MPRActors::TKeyCommand              TKeyCommand;
+      typedef MPRActors::TVoidCommand             TVoidCommand;
+      typedef MPRActors::TMouseMoveCommand        TMouseMoveCommand;
+      typedef MPRActors::TMouseClickCommand       TMouseClickCommand;
+      typedef MPRActors::TMouseDoubleClickCommand TMouseDoubleClickCommand;
+      typedef MPRActors::TExposeCommand           TExposeCommand;
+      typedef MPRActors::TConfigureCommand        TConfigureCommand;
+      typedef MPRActors::TEnterCommand            TEnterCommand;
+      typedef MPRActors::TLeaveCommand            TLeaveCommand;
 
     public:
       vtkTypeMacro( MPRObjects, vtkObject );
@@ -32,14 +44,14 @@ namespace cpExtensions
         vtkRenderWindow* wx, vtkRenderWindow* wy,
         vtkRenderWindow* wz, vtkRenderWindow* w3D
         );
-      void SetImage( vtkImageData* image );
-      void AddAuxiliaryImage( vtkImageData* image );
-      void ActivateInteractors( );
+      void AddImage( vtkImageData* image );
+      unsigned int GetNumberOfImages( ) const;
+      void ClearAll( );
 
       void ResetCamera( const int& id );
       void ResetCameras( );
-      void Render( const int& id );
-      void RenderAll( );
+      void Render( const int& id, const double& t );
+      void RenderAll( const double& t );
       vtkRenderer* GetXRenderer( );
       vtkRenderer* GetYRenderer( );
       vtkRenderer* GetZRenderer( );
@@ -49,8 +61,11 @@ namespace cpExtensions
       const vtkRenderer* GetZRenderer( ) const;
       const vtkRenderer* Get3DRenderer( ) const;
 
-      TMPRActors* GetMPRActors( );
-      const TMPRActors* GetMPRActors( ) const;
+      MPRActors* GetMPRActors( );
+      const MPRActors* GetMPRActors( ) const;
+
+      double GetWindow( ) const;
+      double GetLevel( ) const;
 
     protected:
       MPRObjects( );
@@ -66,7 +81,7 @@ namespace cpExtensions
       vtkSmartPointer< vtkRenderWindow > m_Windows[ 4 ];
 
       // Internal pipelines
-      vtkSmartPointer< TMPRActors >  m_MPRActors;
+      vtkSmartPointer< MPRActors >   m_MPRActors;
       vtkSmartPointer< vtkRenderer > m_Renderers[ 4 ];
     };