mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3868 Annotations. Draw spheres on polylines + toggles conotrolling visibility
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "RimAnnotationCollection.h"
|
||||
#include "RimAnnotationGroupCollection.h"
|
||||
#include "RimAnnotationInViewCollection.h"
|
||||
#include "RimAnnotationLineAppearance.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimOilField.h"
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "RimAnnotationCollection.h"
|
||||
#include "RimAnnotationGroupCollection.h"
|
||||
#include "RimAnnotationInViewCollection.h"
|
||||
#include "RimAnnotationLineAppearance.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimOilField.h"
|
||||
|
||||
@@ -63,6 +64,7 @@ void RicCreateUserDefinedPolylinesAnnotationFeature::onActionTriggered(bool isCh
|
||||
auto newAnnotation = new RimUserDefinedPolylinesAnnotation();
|
||||
auto newColor = RiaColorTables::categoryPaletteColors().cycledColor3f(coll->lineBasedAnnotationsCount());
|
||||
newAnnotation->appearance()->setColor(newColor);
|
||||
newAnnotation->appearance()->setSphereColor(newColor);
|
||||
newAnnotation->enablePicking(true);
|
||||
coll->addAnnotation(newAnnotation);
|
||||
coll->updateConnectedEditors();
|
||||
|
||||
@@ -54,7 +54,8 @@
|
||||
#include "RimWellRftPlot.h"
|
||||
#include "RimWellPathValve.h"
|
||||
#include "RimTextAnnotation.h"
|
||||
#include "RimLineBasedAnnotation.h"
|
||||
#include "RimReachCircleAnnotation.h"
|
||||
#include "RimPolylinesAnnotation.h"
|
||||
#include "RimEllipseFractureTemplate.h"
|
||||
#include "RimSimWellFracture.h"
|
||||
#include "RimSimWellFractureCollection.h"
|
||||
@@ -127,7 +128,8 @@ bool isDeletable(caf::PdmUiItem* uiItem)
|
||||
if (dynamic_cast<RimDerivedEnsembleCaseCollection*>(uiItem)) return true;
|
||||
if (dynamic_cast<RimWellPathValve*>(uiItem)) return true;
|
||||
if (dynamic_cast<RimTextAnnotation*>(uiItem)) return true;
|
||||
if (dynamic_cast<RimLineBasedAnnotation*>(uiItem)) return true;
|
||||
if (dynamic_cast<RimReachCircleAnnotation*>(uiItem)) return true;
|
||||
if (dynamic_cast<RimPolylinesAnnotation*>(uiItem)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user