-#include <plugins/Widgets/LineWidget.h>
+#include <Widgets/LineWidget.h>
#include <cpPlugins/DataObjects/Image.h>
#include <cpPlugins/DataObjects/Mesh.h>
#include <cpExtensions/Visualization/WindowLevelImageActor.h>
#include <vtkInteractorObserver.h>
#include <vtkLineRepresentation.h>
#include <vtkMapper.h>
+#include <vtkPolyData.h>
#include <vtkRenderer.h>
// -------------------------------------------------------------------------
} // 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( )