}
//=========================================================================
- void manualConnectorContourController::MouseClickLeft(int x, int y){
+
+ void manualConnectorContourController::MouseClickLeft(int x, int y)
+ {
bool ok = false;
int z = GetZ();
if ((GetState()==1) && (_easyCreation==true) && GetNumberOfPointsManualContour()==2)
{
ok=true;
-
- SetCompleteCreation( true );
- SetKeyBoardMoving( false );
- GetManualContourModel()->SetCloseContour(false);
-
- SetEditable( false );
- SetPosibleToMove( false );
- SetState(0);
+ endContourCreation();
}
// Continue to Insert Control Points with ClickLeft (After being empty the contour)
GetManualViewBaseContour()->Refresh();
}
}
+
+ //=========================================================================
+
+ void manualConnectorContourController::endContourCreation()
+ {
+ SetCompleteCreation( true );
+ SetKeyBoardMoving( false );
+ GetManualContourModel()->SetCloseContour(false);
+
+ SetEditable( false );
+ SetPosibleToMove( false );
+ SetState(0);
+ }
+
+
//=========================================================================
} // EO namespace bbtk