2015-05-15 18:51:49 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-05-15 18:51:49 +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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-05-15 18:51:49 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-05-15 18:51:49 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2015-11-16 07:16:30 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
|
#include "cafPdmChildField.h"
|
2015-05-15 18:51:49 +02:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
#include "cafPdmObject.h"
|
2019-09-06 10:40:57 +02:00
|
|
|
#include "cafPdmPtrField.h"
|
2019-09-05 09:43:17 +02:00
|
|
|
|
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;
|
2019-11-26 11:35:21 +01:00
|
|
|
class RimExtrudedCurveIntersection;
|
2018-01-23 14:23:28 +01:00
|
|
|
class Rim2dIntersectionViewCollection;
|
2015-05-15 18:51:49 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
namespace cvf
|
|
|
|
|
{
|
|
|
|
|
class BoundingBox;
|
2015-11-16 07:16:30 +01:00
|
|
|
}
|
|
|
|
|
|
2015-05-15 18:51:49 +02:00
|
|
|
class RimCase : public caf::PdmObject
|
|
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2015-05-15 18:51:49 +02:00
|
|
|
public:
|
|
|
|
|
RimCase();
|
2018-10-18 19:45:57 +02:00
|
|
|
~RimCase() override;
|
2015-05-15 18:51:49 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
caf::PdmField<int> caseId;
|
|
|
|
|
caf::PdmField<QString> caseUserDescription;
|
|
|
|
|
|
2020-02-21 12:07:15 +01:00
|
|
|
void setGridFileName( const QString& fileName );
|
|
|
|
|
QString gridFileName() const;
|
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
std::vector<Rim3dView*> views() const;
|
|
|
|
|
std::vector<RimGridView*> gridViews() const;
|
2016-08-24 15:19:39 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual void updateFilePathsFromProjectPath( const QString& projectPath, const QString& oldProjectPath ) = 0;
|
2015-05-15 18:51:49 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual std::vector<QDateTime> timeStepDates() const = 0;
|
|
|
|
|
virtual QStringList timeStepStrings() const = 0;
|
|
|
|
|
virtual QString timeStepName( int frameIdx ) const = 0;
|
2015-05-15 18:51:49 +02:00
|
|
|
|
2020-01-23 14:43:51 +01:00
|
|
|
virtual cvf::BoundingBox reservoirBoundingBox() = 0;
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual cvf::BoundingBox activeCellsBoundingBox() const = 0;
|
|
|
|
|
virtual cvf::BoundingBox allCellsBoundingBox() const = 0;
|
2015-09-21 11:20:07 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual cvf::Vec3d displayModelOffset() const;
|
2015-11-16 07:16:30 +01:00
|
|
|
|
2020-01-06 14:33:54 +01:00
|
|
|
void setFormationNames( RimFormationNames* formationNames );
|
|
|
|
|
RimFormationNames* activeFormationNames() const;
|
|
|
|
|
virtual void updateFormationNamesData() = 0;
|
2015-11-16 07:16:30 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual double characteristicCellSize() const = 0;
|
2016-09-06 10:27:30 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
size_t uiToNativeTimeStepIndex( size_t uiTimeStepIndex );
|
2017-06-19 20:55:58 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
Rim2dIntersectionViewCollection* intersectionViewCollection();
|
2017-10-19 09:57:10 +02:00
|
|
|
|
2017-04-06 18:37:43 +02:00
|
|
|
protected:
|
2019-09-06 10:40:57 +02:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
|
|
|
|
bool* useOptionsOnly ) override;
|
|
|
|
|
virtual std::vector<Rim3dView*> allSpecialViews() const = 0;
|
2019-10-09 09:21:28 +02:00
|
|
|
void initAfterRead() override;
|
2018-01-17 08:00:36 +01:00
|
|
|
|
2017-04-06 18:37:43 +02:00
|
|
|
private:
|
2020-01-06 14:33:54 +01:00
|
|
|
caf::PdmFieldHandle* userDescriptionField() override;
|
2017-08-11 07:34:54 +02:00
|
|
|
|
|
|
|
|
protected:
|
2020-02-21 12:07:15 +01:00
|
|
|
caf::PdmField<caf::FilePath> m_caseFileName;
|
2019-09-06 10:40:57 +02:00
|
|
|
caf::PdmChildField<RimTimeStepFilter*> m_timeStepFilter;
|
2018-01-23 14:23:28 +01:00
|
|
|
caf::PdmChildField<Rim2dIntersectionViewCollection*> m_2dIntersectionViewCollection;
|
2020-01-06 14:33:54 +01:00
|
|
|
caf::PdmPtrField<RimFormationNames*> m_activeFormationNames;
|
2018-01-17 08:00:36 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
private:
|
|
|
|
|
bool m_isInActiveDestruction;
|
2015-05-15 18:51:49 +02:00
|
|
|
};
|