2012-05-18 09:45:23 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2014-09-23 15:04:57 +02:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2012-05-18 09:45:23 +02:00
|
|
|
//
|
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cafPdmDocument.h"
|
|
|
|
|
|
2013-06-06 15:07:31 +02:00
|
|
|
class RimOilField;
|
2013-03-22 15:43:42 +01:00
|
|
|
class RimCase;
|
|
|
|
|
class RigGridManager;
|
2013-05-06 10:55:00 +02:00
|
|
|
class RimScriptCollection;
|
|
|
|
|
class RimIdenticalGridCaseGroup;
|
|
|
|
|
class RigMainGrid;
|
|
|
|
|
class RigCaseData;
|
2014-07-24 10:11:43 +02:00
|
|
|
class RimWellPathImport;
|
|
|
|
|
class RimCommandObject;
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RimProject : public caf::PdmDocument
|
|
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
|
|
public:
|
2013-05-08 10:41:56 +02:00
|
|
|
RimProject(void);
|
|
|
|
|
virtual ~RimProject(void);
|
|
|
|
|
|
2013-06-06 15:07:31 +02:00
|
|
|
caf::PdmPointersField<RimOilField*> oilFields;
|
2013-02-14 14:30:01 +01:00
|
|
|
caf::PdmField<RimScriptCollection*> scriptCollection;
|
2013-09-06 13:06:39 +02:00
|
|
|
caf::PdmField<RimWellPathImport*> wellPathImport;
|
2013-09-12 08:11:56 +02:00
|
|
|
caf::PdmPointersField<RimCommandObject*> commandObjects;
|
2013-04-19 13:20:46 +02:00
|
|
|
caf::PdmField<QString> treeViewState;
|
2013-04-26 19:05:35 +02:00
|
|
|
caf::PdmField<QString> currentModelIndexPath;
|
2013-05-08 10:41:56 +02:00
|
|
|
caf::PdmField<int> nextValidCaseId; // Unique case ID within a project, used to identify a case from Octave scripts
|
2013-05-10 15:35:33 +02:00
|
|
|
caf::PdmField<int> nextValidCaseGroupId; // Unique case group ID within a project, used to identify a case group from Octave scripts
|
2013-06-06 15:07:31 +02:00
|
|
|
caf::PdmPointersField<RimCase*> casesObsolete; // obsolete
|
|
|
|
|
caf::PdmPointersField<RimIdenticalGridCaseGroup*> caseGroupsObsolete; // obsolete
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2013-05-08 10:41:56 +02:00
|
|
|
void setScriptDirectories(const QString& scriptDirectories);
|
|
|
|
|
QString projectFileVersionString() const;
|
|
|
|
|
void close();
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2013-05-08 10:41:56 +02:00
|
|
|
void setProjectFileNameAndUpdateDependencies(const QString& fileName);
|
2013-04-08 08:44:33 +02:00
|
|
|
|
2013-05-08 10:41:56 +02:00
|
|
|
void assignCaseIdToCase(RimCase* reservoirCase);
|
2013-05-10 15:35:33 +02:00
|
|
|
void assignIdToCaseGroup(RimIdenticalGridCaseGroup* caseGroup);
|
2013-05-15 10:51:41 +02:00
|
|
|
|
2013-06-06 15:07:31 +02:00
|
|
|
void allCases(std::vector<RimCase*>& cases); // VL endre impl
|
|
|
|
|
void createDisplayModelAndRedrawAllViews(); // VL endre impl
|
2013-05-16 14:10:22 +02:00
|
|
|
|
2013-09-08 10:53:25 +02:00
|
|
|
void computeUtmAreaOfInterest();
|
2013-05-31 13:57:16 +02:00
|
|
|
|
2013-06-06 15:07:31 +02:00
|
|
|
RimOilField* activeOilField();
|
2013-02-14 13:16:56 +01:00
|
|
|
|
2012-05-18 09:45:23 +02:00
|
|
|
protected:
|
|
|
|
|
// Overridden methods
|
2013-05-16 14:10:22 +02:00
|
|
|
void initScriptDirectories();
|
2013-05-08 10:41:56 +02:00
|
|
|
virtual void initAfterRead();
|
|
|
|
|
virtual void setupBeforeSave();
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
|
private:
|
2013-02-15 10:01:41 +01:00
|
|
|
caf::PdmField<QString> m_projectFileVersionString;
|
2012-05-18 09:45:23 +02:00
|
|
|
};
|