{
if( !myCurve )
return;
+
+ CurveCreator_Widget::SectionToPointList aPoints;
+ startCurveModification( aPoints, false );
myCurve->undo();
+ finishCurveModification();
mySectionView->reset();
updateUndoRedo();
}
{
if( !myCurve )
return;
+ CurveCreator_Widget::SectionToPointList aPoints;
+ startCurveModification( aPoints, false );
myCurve->redo();
+ finishCurveModification();
mySectionView->reset();
updateUndoRedo();
}
bool isBlocked = myLocalPointView->blockSignals(true);
gp_Pnt aPnt;
myLocalPointView->setRowCount( 0 );
+ int anInitialCount = myLocalPointView->rowCount();
for ( aContext->InitSelected(); aContext->MoreSelected(); aContext->NextSelected() ) {
TopoDS_Vertex aVertex;
TopoDS_Shape aShape = aContext->SelectedShape();
addLocalPointToTable( aPnt.X(), aPnt.Y() );
}
}
+ int aFinalCount = myLocalPointView->rowCount();
+ if ( anInitialCount == aFinalCount )
+ int aValue = 9;
myLocalPointView->blockSignals(isBlocked);
}
void CurveCreator_Widget::finishCurveModification(
const CurveCreator_Widget::SectionToPointList& thePoints )
{
- setLocalPointContext( true );
- int aSectionId = 0;
+ if ( getActionMode() == ModificationMode )
+ setLocalPointContext( true );
setSelectedPonts( thePoints );
}
void startCurveModification( SectionToPointList& thePoints,
const bool theFillPoints = true );
- void finishCurveModification( const SectionToPointList& thePoints );
+ void finishCurveModification( const SectionToPointList& thePoints = SectionToPointList() );
// curve algorithm
int findLocalPointIndex( int theSectionId, float theX, float theY );