#include <cpExtensions/QT/MPRInteractionCommand.h>
-
-#ifdef cpExtensions_QT4
-
#include <cpExtensions/Interaction/ImageSliceStyle.h>
#include <cpExtensions/Visualization/ImageViewerActors.h>
#include <cpExtensions/QT/ImageWidget.h>
return;
if( evId == _SuperCursor )
{
- auto ori = src->GetActors( )->GetOrientation( );
- auto img = src->GetActors( )->GetImage( );
- auto pos = reinterpret_cast< double* >( data );
- int ijk[ 3 ];
- double pcoords[ 3 ];
- img->ComputeStructuredCoordinates( pos, ijk, pcoords );
+ /* TODO
+ auto ori = src->GetActors( )->GetOrientation( );
+ auto img = src->GetActors( )->GetImage( );
+ auto pos = reinterpret_cast< double* >( data );
+ int ijk[ 3 ];
+ double pcoords[ 3 ];
+ img->ComputeStructuredCoordinates( pos, ijk, pcoords );
- for(
- auto i = this->m_ImageWidgets.begin( );
- i != this->m_ImageWidgets.end( );
- ++i
- )
- if( ( *i )->GetInteractorStyle( ) != src )
- ( *i )->SetSliceNumber( ijk[ ( *i )->GetOrientation( ) ] );
+ for(
+ auto i = this->m_ImageWidgets.begin( );
+ i != this->m_ImageWidgets.end( );
+ ++i
+ )
+ if( ( *i )->GetInteractorStyle( ) != src )
+ ( *i )->SetSliceNumber( ijk[ ( *i )->GetOrientation( ) ] );
- for(
- auto r = this->m_MPR3DWidgets.begin( );
- r != this->m_MPR3DWidgets.end( );
- ++r
- )
- ( *r )->SetSlicesNumbers( ijk[ 0 ], ijk[ 1 ], ijk[ 2 ] );
+ for(
+ auto r = this->m_MPR3DWidgets.begin( );
+ r != this->m_MPR3DWidgets.end( );
+ ++r
+ )
+ ( *r )->SetSlicesNumbers( ijk[ 0 ], ijk[ 1 ], ijk[ 2 ] );
+ */
}
else if( evId == _Slice )
{
- auto slice = *( reinterpret_cast< int* >( data ) );
- auto ori = src->GetActors( )->GetOrientation( );
+ int slc = src->GetSliceNumber( );
+ int ori = src->GetOrientation( );
for(
auto r = this->m_MPR3DWidgets.begin( );
r != this->m_MPR3DWidgets.end( );
++r
)
- ( *r )->SetSliceNumber( ori, slice );
-
+ ( *r )->SetSliceNumber( ori, slc );
+
} // fi
}
{
}
-#endif // cpExtensions_QT4
-
// eof - $RCSfile$