viewer2D->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _refLineControl );
_refLineModel->SetCloseContour(false);
_refLineControl->CreateNewManualContour();
-/*
+
double z = _refLineControl->GetZ();
+/*
+ _refLineControl->AddPoint(50,100,z);
+ _refLineControl->AddPoint(80,40,z);
+ _refLineControl->SetCompleteCreation(true);
_refLineModel->AddPoint(50,100,z);
_refLineModel->AddPoint(80,40,z);
-
- _refLineControl->AddPoint(50,100,z);
- _refLineControl->AddPoint(80,40,z);
+ _refLineModel->UpdateSpline();
_refLineView->UpdateViewPoint(0);
_refLineView->UpdateViewPoint(1);
-
- _refLineControl->SetCompleteCreation(true);
- _refLineControl->SetEditable(true);
*/
+
_refLineControl->SetActive(true);
_refLineView->RefreshContour();
}
{
if (_refLineControl!=NULL)
{
- _refLineView->RemoveCompleteContourActor();
+ _refLineView->RemoveCompleteContourActor();
+ _refLineControl->SetEditable(false);
+ _refLineControl->SetActive(false);
}
}
_refLineControl->SetModelView( _refLineModel , _refLineView );
viewer2D->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _refLineControl );
_refLineControl->CreateNewManualContour();
- //_refLineControl->SetActive(true);
- //_refLineControl->SetEditable(true);
+ _refLineControl->SetActive(true);
_refLineView->RefreshContour();
}
}