manViewerContour->RefreshContour();
+
+ double x,y,z;
+ startPort->getCenter(x,y,z);
+
+ manContourControl->SetState(1);
+ manContourModel->SetCloseContour(false);
+
+ manContourModel->AddPoint(x,y,z);
+ manViewerContour->AddPoint();
+
+ manContourModel->AddPoint(x,y,z);
+ manViewerContour->AddPoint();
+
+ int bak= manContourControl->GetNumberOfPointsManualContour() - 1;
+ manContourControl->_bakIdPoint=bak;
+ manViewerContour->Refresh();
+
+ manContourControl->SetMoving( false );
+
registerController((InteractorStyleMaracas*) manContourControl);
}
//=========================================================================
- void wxVtkSceneManager::update(int idObservable,int command)
+ void wxVtkSceneManager::update(int idController,int command)
{
if(command==INIT_CREATION_CONTOUR)
{
- GObjectController* cont = _controllers[idObservable];
+ GObjectController* cont = _controllers[idController];
if(cont->getGObjectType() == GPORT)
{
GPortController* controller = (GPortController*)cont;