- this->m_2DSlices[ i ]->SetInputData( image, i );
- this->m_2DSlices[ i ]->PushInto( this->m_Renderers[ i ] );
- this->m_VTK[ i ]->GetRenderWindow( )->GetInteractor( )->
- SetInteractorStyle( this->m_2DSlices[ i ]->GetStyle( ) );
-
- this->m_3DSlices[ i ] = vtkSmartPointer< TSliceActors >::New( );
- this->m_3DSlices[ i ]->SetInputData( image, i );
- this->m_3DSlices[ i ]->PushInto( this->m_Renderers[ 3 ] );
- this->m_3DSlices[ i ]->SetStyle(
- dynamic_cast< vtkInteractorStyle* >(
- this->m_Renderers[ 3 ]->GetRenderWindow( )->
- GetInteractor( )->GetInteractorStyle( )
- )
- );
-
- this->m_NamedActors[ name ].insert(
- this->m_2DSlices[ i ]->GetImageActor( )
- );
- this->m_NamedActors[ name ].insert(
- this->m_3DSlices[ i ]->GetImageActor( )
- );
- this->m_2DSlices[ i ]->GetImageActor( )->
- GetProperty( )->SetInterpolationType( interp );
- this->m_3DSlices[ i ]->GetImageActor( )->
- GetProperty( )->SetInterpolationType( interp );
-
- } // rof
- this->_AssociateSlices( );
+ this->SetImage( image, name );
+ }
+ else if( pdata != NULL )
+ this->m_3DView->Add( pdata, name );
+ else
+ success = false;
+ return( success );
+}
+
+// -------------------------------------------------------------------------
+cpExtensions::QT::SimpleMPRWidget::
+TProps cpExtensions::QT::SimpleMPRWidget::
+GetViewProps( const std::string& name ) const
+{
+/*
+ auto x = this->m_XImage->GetViewProps( name );
+ auto y = this->m_YImage->GetViewProps( name );
+ auto z = this->m_ZImage->GetViewProps( name );
+ auto w = this->m_3DView->GetViewProps( name );
+
+ TProps props;
+ if( x != NULL ) props.insert( x );
+ if( y != NULL ) props.insert( y );
+ if( z != NULL ) props.insert( z );
+ if( w != NULL ) props.insert( w );
+ return( props );
+*/
+}
+
+// -------------------------------------------------------------------------
+cpExtensions::QT::SimpleMPRWidget::
+TProps cpExtensions::QT::SimpleMPRWidget::
+GetImageProps( ) const
+{
+ return( this->GetViewProps( this->m_MainImageName ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetXInteractor( )
+{
+ return( this->m_XImage->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+const vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetXInteractor( ) const
+{
+ return( this->m_XImage->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetYInteractor( )
+{
+ return( this->m_YImage->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+const vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetYInteractor( ) const
+{
+ return( this->m_YImage->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetZInteractor( )
+{
+ return( this->m_ZImage->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+const vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetZInteractor( ) const
+{
+ return( this->m_ZImage->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetWInteractor( )
+{
+ return( this->m_3DView->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+const vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
+GetWInteractor( ) const
+{
+ return( this->m_3DView->GetInteractor( ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetXRenderWindow( )
+{
+ return( this->m_XImage->GetRenderWindow( ) );
+}
+
+// -------------------------------------------------------------------------
+const vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetXRenderWindow( ) const
+{
+ return( this->m_XImage->GetRenderWindow( ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetYRenderWindow( )
+{
+ return( this->m_YImage->GetRenderWindow( ) );
+}
+
+// -------------------------------------------------------------------------
+const vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetYRenderWindow( ) const
+{
+ return( this->m_YImage->GetRenderWindow( ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetZRenderWindow( )
+{
+ return( this->m_ZImage->GetRenderWindow( ) );
+}
+
+// -------------------------------------------------------------------------
+const vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetZRenderWindow( ) const
+{
+ return( this->m_ZImage->GetRenderWindow( ) );
+}
+
+// -------------------------------------------------------------------------
+vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetWRenderWindow( )
+{
+ return( this->m_3DView->GetRenderWindow( ) );
+}
+
+
+// -------------------------------------------------------------------------
+const vtkRenderWindow* cpExtensions::QT::SimpleMPRWidget::
+GetWRenderWindow( ) const
+{
+ return( this->m_3DView->GetRenderWindow( ) );