#3723 Annotations. User editable polyline, both in in view and in property editor

This commit is contained in:
Bjørn Erik Jensen
2018-12-07 09:11:03 +01:00
parent 55f980eeb7
commit b4482d20b0
21 changed files with 1208 additions and 171 deletions

View File

@@ -63,6 +63,7 @@ void RicCreateUserDefinedPolylinesAnnotationFeature::onActionTriggered(bool isCh
auto newAnnotation = new RimUserDefinedPolylinesAnnotation();
auto newColor = RiaColorTables::categoryPaletteColors().cycledColor3f(coll->lineBasedAnnotationsCount());
newAnnotation->appearance()->setColor(newColor);
newAnnotation->enablePicking(true);
coll->addAnnotation(newAnnotation);
coll->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(newAnnotation);