X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FDataObjects%2FSkeleton.cxx;h=098595af6539ead281cb5bd45ceb3532b8fa0964;hb=cd024359dba23dd50e197abf1ed7d70737deb7fd;hp=72a141d993e03f691cf6a1a9c2cc0506bb00a697;hpb=aee3cafa7e93f996580777976636ed625dbc43f5;p=cpPlugins.git diff --git a/lib/cpPlugins/DataObjects/Skeleton.cxx b/lib/cpPlugins/DataObjects/Skeleton.cxx index 72a141d..098595a 100644 --- a/lib/cpPlugins/DataObjects/Skeleton.cxx +++ b/lib/cpPlugins/DataObjects/Skeleton.cxx @@ -1,32 +1,17 @@ #include #include +#include +#include // ------------------------------------------------------------------------- void cpPlugins::DataObjects::Skeleton:: SetITK( itk::LightObject* o ) { - /* TODO - typedef cpExtensions::DataStructures::Skeleton< 1 > _T1; - typedef cpExtensions::DataStructures::Skeleton< 2 > _T2; - typedef cpExtensions::DataStructures::Skeleton< 3 > _T3; - typedef cpExtensions::DataStructures::Skeleton< 4 > _T4; - - this->Superclass::SetITK( o ); - auto l1 = dynamic_cast< _T1* >( o ); - auto l2 = dynamic_cast< _T2* >( o ); - auto l3 = dynamic_cast< _T3* >( o ); - auto l4 = dynamic_cast< _T4* >( o ); - if ( l1 != NULL ) this->_ITK_2_VTK( l1 ); - else if( l2 != NULL ) this->_ITK_2_VTK( l2 ); - else if( l3 != NULL ) this->_ITK_2_VTK( l3 ); - else if( l4 != NULL ) this->_ITK_2_VTK( l4 ); - else - { - this->m_VTK = NULL; - this->m_ITKvVTK = NULL; - - } // fi - */ + cpPlugins_Demangle_Skeleton_All_1( o, _ITK_2_VTK ) + { + this->m_VTK = NULL; + this->m_ITKvVTK = NULL; + } } // -------------------------------------------------------------------------