2013-04-03 02:09:53 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
2013-02-01 05:25:34 -06:00
|
|
|
//
|
2014-08-06 06:47:15 -05:00
|
|
|
// Copyright (C) Statoil ASA, 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"
|
2014-08-09 08:08:30 -05:00
|
|
|
#include "RimDefines.h"
|
2013-02-01 05:25:34 -06:00
|
|
|
|
2014-08-09 08:08:30 -05:00
|
|
|
#include "cvfStructGridScalarDataAccess.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
|
|
|
|
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:
|
2014-08-07 06:22:09 -05:00
|
|
|
static cvf::ref<RigResultAccessor>
|
|
|
|
createResultAccessor(RigCaseData* eclipseCase,
|
2014-08-06 08:14:01 -05:00
|
|
|
size_t gridIndex,
|
|
|
|
RifReaderInterface::PorosityModelResultType porosityModel,
|
|
|
|
size_t timeStepIndex,
|
2014-08-07 08:30:12 -05:00
|
|
|
const QString& uiResultName);
|
2014-08-06 07:04:26 -05:00
|
|
|
|
2014-08-09 08:08:30 -05:00
|
|
|
static cvf::ref<RigResultAccessor>
|
|
|
|
createResultAccessor(RigCaseData* eclipseCase,
|
|
|
|
size_t gridIndex,
|
|
|
|
RifReaderInterface::PorosityModelResultType porosityModel,
|
|
|
|
size_t timeStepIndex,
|
|
|
|
const QString& uiResultName,
|
|
|
|
RimDefines::ResultCatType resultType);
|
|
|
|
|
2014-08-12 07:36:15 -05:00
|
|
|
static cvf::ref<RigResultAccessor>
|
|
|
|
createResultAccessor(RigCaseData* eclipseCase,
|
|
|
|
size_t gridIndex,
|
|
|
|
RifReaderInterface::PorosityModelResultType porosityModel,
|
|
|
|
size_t timeStepIndex,
|
|
|
|
size_t resultIndex);
|
|
|
|
|
2014-08-06 07:04:26 -05:00
|
|
|
|
2014-08-06 08:14:01 -05:00
|
|
|
// TO BE DELETED
|
|
|
|
static cvf::ref<cvf::StructGridScalarDataAccess>
|
|
|
|
TO_BE_DELETED_createNativeDataAccessObject(RigCaseData* eclipseCase,
|
|
|
|
size_t gridIndex,
|
|
|
|
RifReaderInterface::PorosityModelResultType porosityModel,
|
|
|
|
size_t timeStepIndex,
|
|
|
|
size_t scalarSetIndex);
|
2014-08-06 07:04:26 -05:00
|
|
|
|
|
|
|
|
2014-08-06 08:14:01 -05:00
|
|
|
private:
|
2014-08-07 06:22:09 -05:00
|
|
|
static cvf::ref<RigResultAccessor>
|
|
|
|
createNativeResultAccessor(RigCaseData* eclipseCase,
|
2014-08-06 08:14:01 -05:00
|
|
|
size_t gridIndex,
|
|
|
|
RifReaderInterface::PorosityModelResultType porosityModel,
|
|
|
|
size_t timeStepIndex,
|
2014-08-07 08:30:12 -05:00
|
|
|
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
|
|
|
|