X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FVisualization%2FImageSliceMapper.cxx;fp=lib%2FcpExtensions%2FVisualization%2FImageSliceMapper.cxx;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=5bf36fc7943f804fc2d9b0873140af4998d4d2af;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpExtensions/Visualization/ImageSliceMapper.cxx b/lib/cpExtensions/Visualization/ImageSliceMapper.cxx deleted file mode 100644 index 5bf36fc..0000000 --- a/lib/cpExtensions/Visualization/ImageSliceMapper.cxx +++ /dev/null @@ -1,64 +0,0 @@ -#include -#include -#include -#include -#include -#include - -// ------------------------------------------------------------------------- -cpExtensions::Visualization::ImageSliceMapper:: -Self* cpExtensions::Visualization::ImageSliceMapper:: -New( ) -{ - return( new Self( ) ); -} - -// ------------------------------------------------------------------------- -cpExtensions::Visualization::ImageSliceMapper:: -ImageSliceMapper( ) - : Superclass( ) -{ -#ifdef cpPlugins_OpenGL_BackEnd_OpenGL2 - // Complete polydatas to avoid bizarre rendering errors (multi-thread) - vtkActor* a[ 3 ]; - a[ 0 ] = this->PolyDataActor; - a[ 1 ] = this->BackingPolyDataActor; - a[ 2 ] = this->BackgroundPolyDataActor; - for( unsigned int i = 0; i < 3; ++i ) - { - if( a[ i ] != NULL ) - { - auto m = - dynamic_cast< vtkOpenGLPolyDataMapper* >( a[ i ]->GetMapper( ) ); - if( m != NULL ) - { - auto p = m->GetInput( ); - if( p != NULL ) - { - vtkNew< vtkCellArray > verts; - vtkNew< vtkCellArray > lines; - vtkNew< vtkCellArray > strips; - p->SetVerts( verts.Get( ) ); - p->SetLines( lines.Get( ) ); - p->SetStrips( strips.Get( ) ); - p->Modified( ); - m->Modified( ); - a[ i ]->Modified( ); - - } // fi - - } // fi - - } // fi - - } // rof -#endif // cpPlugins_OpenGL_BackEnd_OpenGL2 -} - -// ------------------------------------------------------------------------- -cpExtensions::Visualization::ImageSliceMapper:: -~ImageSliceMapper( ) -{ -} - -// eof - $RCSfile$