void cpExtensions::QT::MPR3DWidget::
SetScalarRange( double r[ 2 ] )
{
+ this->m_Actors->SetScalarRange( r );
+ this->Render( );
}
// -------------------------------------------------------------------------
void cpExtensions::QT::MPR3DWidget::
SetWindowLevel( double wl[ 2 ] )
{
+ this->m_Actors->SetWindowLevel( wl );
+ this->Render( );
}
// -------------------------------------------------------------------------
void cpExtensions::QT::MPR3DWidget::
SetImageOpacity( double o )
{
+ this->m_Actors->SetImageOpacity( o );
+ this->Render( );
}
// -------------------------------------------------------------------------
void cpExtensions::QT::MPR3DWidget::
SetImageInterpolation( unsigned char i )
{
+ this->m_Actors->SetImageInterpolation( i );
+ this->Render( );
}
#endif // cpExtensions_QT4
#include <cpExtensions/Visualization/LUTImageActor.h>
#include <cpExtensions/Visualization/WindowLevelImageActor.h>
#include <vtkActor.h>
+#include <vtkImageProperty.h>
#include <vtkPolyData.h>
// -------------------------------------------------------------------------
return( actor.GetActor( ) );
}
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::MPR3DActors::
+SetScalarRange( double r[ 2 ] )
+{
+ this->m_Slices[ 0 ]->
+ GetWindowLevelImageActor( )->ConfigureWindowLevel( r[ 0 ], r[ 1 ] );
+ this->m_Slices[ 1 ]->
+ GetWindowLevelImageActor( )->ConfigureWindowLevel( r[ 0 ], r[ 1 ] );
+ this->m_Slices[ 2 ]->
+ GetWindowLevelImageActor( )->ConfigureWindowLevel( r[ 0 ], r[ 1 ] );
+}
+
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::MPR3DActors::
+SetWindowLevel( double wl[ 2 ] )
+{
+ this->m_Slices[ 0 ]->
+ GetWindowLevelImageActor( )->SetWindowLevel( wl[ 0 ], wl[ 1 ] );
+ this->m_Slices[ 1 ]->
+ GetWindowLevelImageActor( )->SetWindowLevel( wl[ 0 ], wl[ 1 ] );
+ this->m_Slices[ 2 ]->
+ GetWindowLevelImageActor( )->SetWindowLevel( wl[ 0 ], wl[ 1 ] );
+}
+
+// -------------------------------------------------------------------------
+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( )