SetCompleteCreation( true );
SetKeyBoardMoving( false );
+ this->GetManualContourModel()->SetCloseContour(true);
MouseClickRight(X,Y);
}
return true;
return true;
}
// ----------------------------------------------------------------------------
-void manualContourBaseControler::SetModelView(manualContourModel *manContModel, manualViewBaseContour *manViewBaseCont){
+void manualContourBaseControler::SetModelView(manualBaseModel *manContModel, manualViewBaseContour *manViewBaseCont){
_manContModel = manContModel;
_manViewBaseCont = manViewBaseCont;
_manViewBaseCont->SetEditable( &_editable );
}
// ----------------------------------------------------------------------------
-manualContourModel* manualContourBaseControler::GetManualContourModel()
+manualBaseModel* manualContourBaseControler::GetManualContourModel()
{
return _manContModel;
}
{
if (_state==0)
{
+
int z=GetZ();
- GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
- GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);
- if ( GetManualViewBaseContour()->GetPosibleSelected() )
+ bool temp = _manViewBaseCont->SelectPosibleContour(x,y,z);
+
+ _manViewBaseCont->SelectPosiblePoint(x,y,z);
+
+ if ( _manViewBaseCont->GetPosibleSelected() )
{
_editable = true;
}
double xx = x;
double yy = y;
double zz = z;
+
+
GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
/*int id =*/ GetManualContourModel()->AddPoint(xx,yy,zz); // JPRx
GetManualViewBaseContour()->AddPoint();
double xx = x;
double yy = y;
double zz = z;
+
GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
manualPoint *mp = _manContModel->GetManualPoint(id);
mp->SetPoint(xx,yy,zz);