]> Creatis software - cpPlugins.git/blobdiff - plugins/Widgets/SplineWidget.cxx
PolyLine updated.
[cpPlugins.git] / plugins / Widgets / SplineWidget.cxx
index 057d4e783d10e7407d6ec8ae5a62cc24b997242d..a1b153885924ac396e6d634f2ea62cf8d6b6cdca 100644 (file)
@@ -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( )