#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
+}
+
// -------------------------------------------------------------------------
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