mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2391 intersections. New copy to all views command feature
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "Rim2dIntersectionView.h"
|
||||
#include "Rim2dIntersectionViewCollection.h"
|
||||
#include "RimIntersection.h"
|
||||
#include "RimGridView.h"
|
||||
|
||||
|
||||
CAF_PDM_XML_ABSTRACT_SOURCE_INIT(RimCase, "RimCase");
|
||||
@@ -84,6 +85,21 @@ std::vector<Rim3dView*> RimCase::views() const
|
||||
return allViews;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimGridView*> RimCase::gridViews() const
|
||||
{
|
||||
std::vector<RimGridView*> grViews;
|
||||
|
||||
for (Rim3dView* const view : views())
|
||||
{
|
||||
RimGridView* grView = dynamic_cast<RimGridView*>(view);
|
||||
if (grView) grViews.push_back(grView);
|
||||
}
|
||||
return grViews;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user