mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added paste on gridcollection, case collection and cases
Moved creation of objects into rimUiTreeModelPdm p4#: 20968
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "RimCaseCollection.h"
|
||||
|
||||
#include "RimReservoirView.h"
|
||||
#include "RimIdenticalGridCaseGroup.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimCaseCollection, "RimCaseCollection");
|
||||
|
||||
@@ -42,3 +43,19 @@ RimCaseCollection::~RimCaseCollection()
|
||||
{
|
||||
reservoirs.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimIdenticalGridCaseGroup* RimCaseCollection::parentCaseGroup()
|
||||
{
|
||||
std::vector<RimIdenticalGridCaseGroup*> parentObjects;
|
||||
this->parentObjectsOfType(parentObjects);
|
||||
|
||||
if (parentObjects.size() > 0)
|
||||
{
|
||||
return parentObjects[0];
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user