- vtkWindowLevelLookupTable* lut = this->GetLookupTableAsWindowLevel( );
- if( lut != NULL )
- return( lut->GetWindow( ) );
- else
- return( double( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRActors::
-GetLevel( ) const
-{
- vtkWindowLevelLookupTable* lut = this->GetLookupTableAsWindowLevel( );
- if( lut != NULL )
- return( lut->GetLevel( ) );
- else
- return( double( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetWindow( const double& w )
-{
- vtkWindowLevelLookupTable* lut = this->GetLookupTableAsWindowLevel( );
- if( lut != NULL )
- {
- lut->SetWindow( w );
- lut->Build( );
- this->ImageMapToColors->Modified( );
- this->Modified( );
-
- } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetLevel( const double& l )
-{
- vtkWindowLevelLookupTable* lut = this->GetLookupTableAsWindowLevel( );
- if( lut != NULL )
- {
- lut->SetLevel( l );
- lut->Build( );
- this->ImageMapToColors->Modified( );
- this->Modified( );
-
- } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetWindowLevel( const double& w, const double& l )
-{
- vtkWindowLevelLookupTable* lut = this->GetLookupTableAsWindowLevel( );
- if( lut != NULL )
- {
- lut->SetWindow( l );
- lut->SetLevel( l );
- lut->Build( );
- this->ImageMapToColors->Modified( );
- this->Modified( );
-
- } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-ResetWindowLevel( )
-{
- vtkImageData* image = this->_InputImage( );
- vtkWindowLevelLookupTable* lut = this->GetLookupTableAsWindowLevel( );
- if( image != NULL && lut != NULL )
- {
- double r[ 2 ];
- image->GetScalarRange( r );
- lut->SetTableRange( r );
- lut->Build( );
- this->ImageMapToColors->Modified( );
- this->Modified( );
-
- } // fi