2015-05-15 18:51:49 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
|
//
|
|
|
|
|
// 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
|
2015-11-16 07:16:30 +01:00
|
|
|
|
2016-08-24 15:19:39 +02:00
|
|
|
#include "cafPdmPtrField.h"
|
2015-05-15 18:51:49 +02:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
#include "cafPdmObject.h"
|
2017-08-11 07:34:54 +02:00
|
|
|
#include "cafPdmChildField.h"
|
2018-01-17 08:00:36 +01:00
|
|
|
#include "cafPdmChildArrayField.h"
|
2015-05-15 18:51:49 +02:00
|
|
|
|
2015-11-17 05:00:35 -08:00
|
|
|
#include "cvfBase.h"
|
2015-11-16 07:16:30 +01:00
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
|
2015-05-15 18:51:49 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
2018-01-09 10:11:28 +01:00
|
|
|
class Rim3dView;
|
2018-02-05 13:23:44 +01:00
|
|
|
class RimGridView;
|
2016-08-24 15:19:39 +02:00
|
|
|
class RimFormationNames;
|
2017-08-11 07:34:54 +02:00
|
|
|
class RimTimeStepFilter;
|
2018-01-17 08:00:36 +01:00
|
|
|
class Rim2dIntersectionView;
|
2018-01-17 11:05:31 +01:00
|
|
|
class RimIntersection;
|
2018-01-23 14:23:28 +01:00
|
|
|
class Rim2dIntersectionViewCollection;
|
2015-05-15 18:51:49 +02:00
|
|
|
|
2015-11-16 07:16:30 +01:00
|
|
|
namespace cvf {
|
|
|
|
|
class BoundingBox;
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-15 18:51:49 +02:00
|
|
|
class RimCase : public caf::PdmObject
|
|
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
public:
|
|
|
|
|
RimCase();
|
2018-10-18 19:45:57 +02:00
|
|
|
~RimCase() override;
|
2015-05-15 18:51:49 +02:00
|
|
|
|
2016-05-31 13:37:50 +02:00
|
|
|
caf::PdmField<int> caseId;
|
2015-05-15 18:51:49 +02:00
|
|
|
caf::PdmField<QString> caseUserDescription;
|
|
|
|
|
|
2016-08-24 15:19:39 +02:00
|
|
|
caf::PdmPtrField<RimFormationNames*> activeFormationNames;
|
|
|
|
|
|
2018-01-17 08:00:36 +01:00
|
|
|
std::vector<Rim3dView*> views() const;
|
2018-02-05 13:23:44 +01:00
|
|
|
std::vector<RimGridView*> gridViews() const;
|
2015-05-15 18:51:49 +02:00
|
|
|
|
|
|
|
|
virtual void updateFilePathsFromProjectPath(const QString& projectPath, const QString& oldProjectPath) = 0;
|
|
|
|
|
|
2017-06-16 17:20:08 +02:00
|
|
|
virtual std::vector<QDateTime> timeStepDates() const = 0;
|
2017-06-16 16:45:14 +02:00
|
|
|
virtual QStringList timeStepStrings() const = 0;
|
|
|
|
|
virtual QString timeStepName(int frameIdx) const = 0;
|
2015-09-21 11:20:07 +02:00
|
|
|
|
2015-11-16 07:16:30 +01:00
|
|
|
virtual cvf::BoundingBox activeCellsBoundingBox() const = 0;
|
|
|
|
|
virtual cvf::BoundingBox allCellsBoundingBox() const = 0;
|
|
|
|
|
|
|
|
|
|
virtual cvf::Vec3d displayModelOffset() const;
|
|
|
|
|
|
2016-09-06 10:27:30 +02:00
|
|
|
virtual void updateFormationNamesData() = 0;
|
2017-12-01 13:24:43 +01:00
|
|
|
virtual void setFormationNames(RimFormationNames* formationNames);
|
2016-09-06 10:27:30 +02:00
|
|
|
|
2017-06-19 20:55:58 +02:00
|
|
|
virtual double characteristicCellSize() const = 0;
|
|
|
|
|
|
2017-10-19 09:57:10 +02:00
|
|
|
size_t uiToNativeTimeStepIndex(size_t uiTimeStepIndex);
|
|
|
|
|
|
2018-01-23 14:23:28 +01:00
|
|
|
Rim2dIntersectionViewCollection* intersectionViewCollection();
|
2017-04-06 18:37:43 +02:00
|
|
|
protected:
|
2018-10-18 19:45:57 +02:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
2018-01-17 08:00:36 +01:00
|
|
|
virtual std::vector<Rim3dView*> allSpecialViews() const = 0;
|
|
|
|
|
|
2017-04-06 18:37:43 +02:00
|
|
|
private:
|
2018-10-18 19:45:57 +02:00
|
|
|
caf::PdmFieldHandle* userDescriptionField() override { return &caseUserDescription; }
|
2017-08-11 07:34:54 +02:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
caf::PdmChildField<RimTimeStepFilter*> m_timeStepFilter;
|
2018-01-23 14:23:28 +01:00
|
|
|
caf::PdmChildField<Rim2dIntersectionViewCollection*> m_2dIntersectionViewCollection;
|
2018-01-17 08:00:36 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool m_isInActiveDestruction;
|
2015-05-15 18:51:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|