Added paste on gridcollection, case collection and cases

Moved creation of objects into rimUiTreeModelPdm
p4#: 20968
This commit is contained in:
Magne Sjaastad committed 2013-03-19 12:47:38 +01:00
1 parent 4368a644bf
commit 27dee4d4e2
7 files changed
+89 -24

No files matched your search

@@ -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;
}