2013-04-03 02:09:53 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
2013-02-01 05:25:34 -06:00
|
|
|
//
|
2014-09-24 00:14:52 -05:00
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2013-04-03 02:09:53 -05: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.
|
2013-02-01 05:25:34 -06:00
|
|
|
//
|
2013-04-03 02:09:53 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
2013-02-01 05:25:34 -06:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2013-02-01 07:39:32 -06:00
|
|
|
#include "RifReaderInterface.h"
|
2014-08-09 08:21:46 -05:00
|
|
|
#include "RigResultAccessor.h"
|
2015-12-09 02:17:13 -06:00
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
#include "RiaDefines.h"
|
2013-02-01 05:25:34 -06:00
|
|
|
|
2013-02-12 07:46:45 -06:00
|
|
|
class RigActiveCellInfo;
|
|
|
|
class RigGridBase;
|
2013-02-07 05:16:04 -06:00
|
|
|
|
2015-12-09 02:17:13 -06:00
|
|
|
class RimEclipseResultDefinition;
|
|
|
|
|
2014-08-07 06:22:09 -05:00
|
|
|
class RigResultAccessorFactory
|
2013-02-12 07:46:45 -06:00
|
|
|
{
|
2013-02-01 05:25:34 -06:00
|
|
|
public:
|
2015-12-09 02:17:13 -06:00
|
|
|
static cvf::ref<RigResultAccessor>
|
2017-01-19 03:37:59 -06:00
|
|
|
createFromResultDefinition(RigEclipseCaseData* eclipseCase,
|
|
|
|
size_t gridIndex,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t timeStepIndex,
|
|
|
|
RimEclipseResultDefinition* resultDefinition);
|
2015-12-09 02:17:13 -06:00
|
|
|
|
2016-12-14 07:51:53 -06:00
|
|
|
static cvf::ref<RigResultAccessor>
|
2017-01-10 02:51:39 -06:00
|
|
|
createFromUiResultName(RigEclipseCaseData* eclipseCase,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t gridIndex,
|
2017-08-11 07:05:59 -05:00
|
|
|
RiaDefines::PorosityModelType porosityModel,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t timeStepIndex,
|
|
|
|
const QString& uiResultName);
|
2014-08-06 07:04:26 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
static cvf::ref<RigResultAccessor>
|
2017-01-10 02:51:39 -06:00
|
|
|
createFromNameAndType(RigEclipseCaseData* eclipseCase,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t gridIndex,
|
2017-08-11 07:05:59 -05:00
|
|
|
RiaDefines::PorosityModelType porosityModel,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t timeStepIndex,
|
|
|
|
const QString& uiResultName,
|
2017-06-13 08:41:52 -05:00
|
|
|
RiaDefines::ResultCatType resultType);
|
2014-08-09 08:08:30 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
static cvf::ref<RigResultAccessor>
|
2017-01-10 02:51:39 -06:00
|
|
|
createFromResultIdx(RigEclipseCaseData* eclipseCase,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t gridIndex,
|
2017-08-11 07:05:59 -05:00
|
|
|
RiaDefines::PorosityModelType porosityModel,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t timeStepIndex,
|
|
|
|
size_t resultIndex);
|
2014-08-12 07:36:15 -05:00
|
|
|
|
2014-08-06 08:14:01 -05:00
|
|
|
private:
|
2016-12-14 07:51:53 -06:00
|
|
|
static cvf::ref<RigResultAccessor>
|
2017-01-10 02:51:39 -06:00
|
|
|
createNativeFromUiResultName(RigEclipseCaseData* eclipseCase,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t gridIndex,
|
2017-08-11 07:05:59 -05:00
|
|
|
RiaDefines::PorosityModelType porosityModel,
|
2016-12-14 07:51:53 -06:00
|
|
|
size_t timeStepIndex,
|
|
|
|
const QString& resultName);
|
2014-08-06 07:04:26 -05:00
|
|
|
|
2013-02-01 05:25:34 -06:00
|
|
|
};
|
|
|
|
|
2013-02-12 07:46:45 -06:00
|
|
|
|