X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FWidgets%2FSeedWidget.cxx;h=ee8a59dfe3062d763e09ac186fe6164295af5c29;hb=7e29f3aec097ba1bff1894fed6eb1094276c5b72;hp=97e96fa2353c512d9c0c0adf535f77adcd8403a8;hpb=f69098bd941d8753926760dead2792584eb95f53;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/Widgets/SeedWidget.cxx b/lib/cpPlugins/Plugins/Widgets/SeedWidget.cxx index 97e96fa..ee8a59d 100644 --- a/lib/cpPlugins/Plugins/Widgets/SeedWidget.cxx +++ b/lib/cpPlugins/Plugins/Widgets/SeedWidget.cxx @@ -35,9 +35,6 @@ _GenerateData( ) auto image = this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" ); - if( image == NULL ) - return( "SeedWidget: No input image." ); - itk::DataObject* itk_image = image->GetITK< _2DImage >( ); if( itk_image != NULL ) return( this->_GD0< _2DImage >( itk_image ) ); @@ -48,7 +45,6 @@ _GenerateData( ) return( this->_GD0< _3DImage >( itk_image ) ); } // fi - return( "SeedWidget: Input image dimension not supported." ); } @@ -119,33 +115,6 @@ _GD0( itk::DataObject* image ) s->SeedWidgetOn( ); } // fi - - /* TODO - auto iIt = this->m_Interactors.begin( ); - for( ; iIt != this->m_Interactors.end( ); ++iIt ) - { - _S* s = dynamic_cast< _S* >( ( *iIt )->GetInteractorStyle( ) ); - if( s != NULL ) - { - if( this->m_Configured ) - { - for( unsigned int i = 0; i < s->GetNumberOfSeeds( ); ++i ) - { - s->GetSeedAsPoint( i, aux_pnt ); - typename I::PointType seed; - for( unsigned int d = 0; d < dim; ++d ) - seed[ d ] = aux_pnt[ d ]; - out->AddPoint( seed ); - - } // rof - } - else - s->SeedWidgetOn( ); - - } // fi - - } // rof - */ this->m_Configured = true; return( "" ); }