#include <cpExtensions/Utility.h>
#include <cpExtensions/Interaction/ImageSliceStyle.h>
#include <cpExtensions/Visualization/CursorActors.h>
+#include <cpExtensions/Visualization/LUTImageActor.h>
#include <cpExtensions/Visualization/WindowLevelImageActor.h>
#include <vtkAssemblyPath.h>
#include <vtkImageData.h>
s += ( this->Interactor->GetShiftKey( ) == 1 )? 10: 1;
this->m_WLActor->SetSliceNumber( s );
s = this->m_WLActor->GetSliceNumber( );
+ if( this->m_LUTActor.GetPointer( ) != NULL )
+ this->m_LUTActor->SetSliceNumber( s );
this->InvokeEvent( vtkCommand::UserEvent + 2, &s );
this->Interactor->Render( );
this->OnMouseMove( );
s -= ( this->Interactor->GetShiftKey( ) == 1 )? 10: 1;
this->m_WLActor->SetSliceNumber( s );
s = this->m_WLActor->GetSliceNumber( );
+ if( this->m_LUTActor.GetPointer( ) != NULL )
+ this->m_LUTActor->SetSliceNumber( s );
this->InvokeEvent( vtkCommand::UserEvent + 2, &s );
this->Interactor->Render( );
this->OnMouseMove( );
this->m_PropPicker->GetPickList( )->RemoveAllItems( );
this->m_PropPicker->AddPickList( curr_actor );
+ auto props = this->CurrentRenderer->GetViewProps( );
+ this->m_LUTActor = NULL;
+ props->InitTraversal( );
+ vtkProp* prop;
+ while( ( ( prop = props->GetNextProp( ) ) != NULL ) && ( this->m_LUTActor.GetPointer( ) == NULL ) )
+ this->m_LUTActor = dynamic_cast< TLUTActor* >( prop );
+
this->m_Cursor->SetImageBounds( curr_actor->GetImage( )->GetBounds( ) );
this->m_Cursor->SetImageOrientation( curr_actor->GetOrientation( ) );
this->m_Cursor->InitTraversal( );