]> Creatis software - cpPlugins.git/blobdiff - plugins/Widgets/LineWidget.cxx
PolyLine updated.
[cpPlugins.git] / plugins / Widgets / LineWidget.cxx
index 8887463e1252e9a175bdf7ac8cbdc9d2eafcf24b..953aa4dd0337f5567081af275fb46e6745e405c4 100644 (file)
@@ -30,6 +30,20 @@ SetEnabled( bool v )
   } // fi
 }
 
+// -------------------------------------------------------------------------
+bool cpPluginsWidgets::LineWidget::
+GetEnabled( ) const
+{
+  auto wdg = this->GetVTK< const vtkLineWidget2 >( );
+  if( wdg != NULL )
+  {
+    vtkLineWidget2* w = const_cast< vtkLineWidget2* >( wdg );
+    return( w->GetEnabled( ) != 0 );
+  }
+  else
+    return( false );
+}
+
 // -------------------------------------------------------------------------
 cpPluginsWidgets::LineWidget::
 LineWidget( )