#include <vtkRenderer.h>
#include <vtkSplineWidget.h>
+// -------------------------------------------------------------------------
+void cpPluginsWidgets::SplineWidget::
+Clear( )
+{
+}
+
+// -------------------------------------------------------------------------
+void cpPluginsWidgets::SplineWidget::
+SetEnabled( bool v )
+{
+ auto wdg = this->GetVTK< vtkSplineWidget >( );
+ if( wdg != NULL )
+ {
+ wdg->SetEnabled( v );
+ wdg->GetInteractor( )->Render( );
+
+ } // 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( )
if( this->m_Configured )
{
wdg->GetPolyData( this->m_Contour.GetPointer( ) );
- wdg->Off( );
}
else
{
);
wdg->SetHandleSize( 0.005 );
wdg->SetNumberOfHandles( 3 );
- wdg->On( );
this->m_Configured = true;
} // fi