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