#include <cpExtensions/Visualization/LUTImageActor.h>
#include <cpExtensions/Visualization/WindowLevelImageActor.h>
#include <vtkActor.h>
+#include <vtkImageProperty.h>
#include <vtkPolyData.h>
// -------------------------------------------------------------------------
unsigned int cpExtensions::Visualization::MPR3DActors::
AddLUTImage( vtkImageData* image )
{
+ unsigned int res = 0;
for( int i = 0; i < 3; ++i )
{
- this->m_Slices[ i ]->AddLUTImage( image );
+ res = this->m_Slices[ i ]->AddLUTImage( image );
this->AddItem( this->m_Slices[ i ]->GetLUTImageActor( ) );
} // rof
+ return( res );
}
// -------------------------------------------------------------------------
return( actor.GetActor( ) );
}
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::MPR3DActors::
+SetScalarRange( double r[ 2 ] )
+{
+ this->m_Slices[ 0 ]->GetWindowLevelImageActor( )->SetRange( r );
+ this->m_Slices[ 1 ]->GetWindowLevelImageActor( )->SetRange( r );
+ this->m_Slices[ 2 ]->GetWindowLevelImageActor( )->SetRange( r );
+}
+
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::MPR3DActors::
+SetWindowLevel( double wl[ 2 ] )
+{
+ this->m_Slices[ 0 ]->GetWindowLevelImageActor( )->SetWindowLevel( wl );
+ this->m_Slices[ 1 ]->GetWindowLevelImageActor( )->SetWindowLevel( wl );
+ this->m_Slices[ 2 ]->GetWindowLevelImageActor( )->SetWindowLevel( wl );
+}
+
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::MPR3DActors::
+SetImageOpacity( double o )
+{
+ this->m_Slices[ 0 ]->GetWindowLevelImageActor( )->
+ GetProperty( )->SetOpacity( o );
+ this->m_Slices[ 1 ]->GetWindowLevelImageActor( )->
+ GetProperty( )->SetOpacity( o );
+ this->m_Slices[ 2 ]->GetWindowLevelImageActor( )->
+ GetProperty( )->SetOpacity( o );
+}
+
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::MPR3DActors::
+SetImageInterpolation( unsigned char i )
+{
+ // TODO
+}
+
// -------------------------------------------------------------------------
cpExtensions::Visualization::MPR3DActors::
MPR3DActors( )