2014-08-08 09:07:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-24 00:14:52 -05:00
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2014-08-08 09:07:05 -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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2014-08-08 09:07:05 -05: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 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2014-08-08 09:07:05 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cvfArray.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cvfObject.h"
|
2014-08-08 09:07:05 -05:00
|
|
|
|
2015-06-25 05:04:46 -05:00
|
|
|
class RimEclipseCellColors;
|
2014-08-08 09:07:05 -05:00
|
|
|
class RigResultAccessor;
|
|
|
|
class RivResultToTextureMapper;
|
2017-06-14 05:41:37 -05:00
|
|
|
class RigPipeInCellEvaluator;
|
2014-08-08 09:07:05 -05:00
|
|
|
|
2014-08-11 00:46:08 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
class StructGridQuadToCellFaceMapper;
|
2014-08-08 09:07:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
class RivTextureCoordsCreator
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
RivTextureCoordsCreator( RimEclipseCellColors* cellResultColors,
|
|
|
|
size_t timeStepIndex,
|
|
|
|
size_t gridIndex,
|
|
|
|
const cvf::StructGridQuadToCellFaceMapper* quadMapper );
|
2014-08-08 09:07:05 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
bool isValid();
|
2014-08-11 04:02:16 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void createTextureCoords( cvf::Vec2fArray* quadTextureCoords );
|
|
|
|
void setResultToTextureMapper( RivResultToTextureMapper* textureMapper );
|
2017-06-14 05:41:37 -05:00
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
static RigPipeInCellEvaluator* createPipeInCellEvaluator( RimEclipseCellColors* cellColors, size_t timeStep, size_t gridIndex );
|
2014-08-08 09:07:05 -05:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
static void createTextureCoords( cvf::Vec2fArray* quadTextureCoords,
|
|
|
|
const cvf::StructGridQuadToCellFaceMapper* quadMapper,
|
|
|
|
const RigResultAccessor* resultAccessor,
|
|
|
|
const RivResultToTextureMapper* texMapper );
|
|
|
|
cvf::cref<cvf::StructGridQuadToCellFaceMapper> m_quadMapper;
|
|
|
|
cvf::ref<RigResultAccessor> m_resultAccessor;
|
|
|
|
cvf::ref<RivResultToTextureMapper> m_texMapper;
|
2014-08-08 09:07:05 -05:00
|
|
|
};
|