X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FWidgets%2FSplineWidget.cxx;h=a1b153885924ac396e6d634f2ea62cf8d6b6cdca;hb=211cd32b53b9739923f6c5135a704ce1852deca1;hp=057d4e783d10e7407d6ec8ae5a62cc24b997242d;hpb=1f5c3516bf4240bcdd91979ac303298ef1f75fc3;p=cpPlugins.git diff --git a/plugins/Widgets/SplineWidget.cxx b/plugins/Widgets/SplineWidget.cxx index 057d4e7..a1b1538 100644 --- a/plugins/Widgets/SplineWidget.cxx +++ b/plugins/Widgets/SplineWidget.cxx @@ -26,6 +26,20 @@ SetEnabled( bool v ) } // fi } +// ------------------------------------------------------------------------- +bool cpPluginsWidgets::SplineWidget:: +GetEnabled( ) const +{ + auto wdg = this->GetVTK< const vtkSplineWidget >( ); + if( wdg != NULL ) + { + vtkSplineWidget* w = const_cast< vtkSplineWidget* >( wdg ); + return( w->GetEnabled( ) != 0 ); + } + else + return( false ); +} + // ------------------------------------------------------------------------- cpPluginsWidgets::SplineWidget:: SplineWidget( )