mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#3706 Annotations. First commit. Not tested
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "RigEclipseCaseData.h"
|
||||
#include "RigGridBase.h"
|
||||
|
||||
#include "RimAnnotationCollection.h"
|
||||
#include "RimCalcScript.h"
|
||||
#include "RimCase.h"
|
||||
#include "RimCaseCollection.h"
|
||||
@@ -707,7 +708,7 @@ void RimProject::allVisibleViews(std::vector<Rim3dView*>& views)
|
||||
void RimProject::allVisibleGridViews(std::vector<RimGridView*>& views)
|
||||
{
|
||||
std::vector<Rim3dView*> visibleViews;
|
||||
this->allVisibleViews(visibleViews);
|
||||
this->allVisibleViews(visibleViews);
|
||||
for ( Rim3dView* view : visibleViews )
|
||||
{
|
||||
RimGridView* gridView = dynamic_cast<RimGridView*>(view);
|
||||
@@ -957,6 +958,57 @@ std::vector<RimWellPath*> RimProject::allWellPaths() const
|
||||
return paths;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimTextAnnotation*> RimProject::textAnnotations() const
|
||||
{
|
||||
std::vector<RimTextAnnotation*> annotations;
|
||||
for (const auto& oilField : oilFields())
|
||||
{
|
||||
auto annotationColl = oilField->annotationCollection();
|
||||
for (const auto& annotation : annotationColl->textAnnotations())
|
||||
{
|
||||
annotations.push_back(annotation);
|
||||
}
|
||||
}
|
||||
return annotations;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimReachCircleAnnotation*> RimProject::reachCircleAnnotations() const
|
||||
{
|
||||
std::vector<RimReachCircleAnnotation*> annotations;
|
||||
for (const auto& oilField : oilFields())
|
||||
{
|
||||
auto annotationColl = oilField->annotationCollection();
|
||||
for (const auto& annotation : annotationColl->reachCircleAnnotations())
|
||||
{
|
||||
annotations.push_back(annotation);
|
||||
}
|
||||
}
|
||||
return annotations;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimPolylineAnnotation*> RimProject::polylineAnnotations() const
|
||||
{
|
||||
std::vector<RimPolylineAnnotation*> annotations;
|
||||
for (const auto& oilField : oilFields())
|
||||
{
|
||||
auto annotationColl = oilField->annotationCollection();
|
||||
for (const auto& annotation : annotationColl->polylineAnnotations())
|
||||
{
|
||||
annotations.push_back(annotation);
|
||||
}
|
||||
}
|
||||
return annotations;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1128,6 +1180,7 @@ void RimProject::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QS
|
||||
if (oilField->wellPathCollection()) uiTreeOrdering.add(oilField->wellPathCollection());
|
||||
if (oilField->formationNamesCollection()) uiTreeOrdering.add(oilField->formationNamesCollection());
|
||||
if (oilField->fractureDefinitionCollection()) uiTreeOrdering.add(oilField->fractureDefinitionCollection());
|
||||
if (oilField->annotationCollection()) uiTreeOrdering.add(oilField->annotationCollection());
|
||||
}
|
||||
|
||||
uiTreeOrdering.add(scriptCollection());
|
||||
|
||||
Reference in New Issue
Block a user