mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3788 Annotations. Mirror global annotations into view annotation collection. Not thorougly testet yet
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "RimGridView.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimAnnotationCollection.h"
|
||||
#include "RimAnnotationGroupCollection.h"
|
||||
#include "AnnotationCommands/RicTextAnnotation3dEditor.h"
|
||||
|
||||
|
||||
@@ -149,6 +150,20 @@ bool RimTextAnnotation::isActive()
|
||||
return m_isActive();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Returns true if annotation can be displayed due to all toggles that affect this annotation
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimTextAnnotation::isVisible() const
|
||||
{
|
||||
RimAnnotationGroupCollection* coll;
|
||||
firstAncestorOrThisOfType(coll);
|
||||
|
||||
bool visible = true;
|
||||
if (coll) visible = coll->isVisible();
|
||||
if(visible) visible = m_isActive;
|
||||
return visible;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user