2014-08-13 04:00:47 -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-13 04:00:47 -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-13 04:00:47 -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-13 04:00:47 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
class DrawableGeo;
|
|
|
|
class StructGridQuadToCellFaceMapper;
|
|
|
|
} // namespace cvf
|
2014-08-13 04:00:47 -05:00
|
|
|
|
2015-06-25 06:41:55 -05:00
|
|
|
class RimCellEdgeColors;
|
2015-06-25 05:04:46 -05:00
|
|
|
class RimEclipseCellColors;
|
2014-08-13 04:00:47 -05:00
|
|
|
class RigGridBase;
|
|
|
|
class RigResultAccessor;
|
2017-01-10 02:51:39 -06:00
|
|
|
class RigEclipseCaseData;
|
2014-08-13 04:00:47 -05:00
|
|
|
|
|
|
|
class RivCellEdgeGeometryUtils
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
static void addCellEdgeResultsToDrawableGeo( size_t timeStepIndex,
|
|
|
|
RimEclipseCellColors* cellResultColors,
|
|
|
|
RimCellEdgeColors* cellEdgeResultColors,
|
|
|
|
const cvf::StructGridQuadToCellFaceMapper* quadToCellFaceMapper,
|
|
|
|
cvf::DrawableGeo* geo,
|
|
|
|
size_t gridIndex,
|
|
|
|
bool useDefaultValueForHugeVals,
|
|
|
|
float opacityLevel );
|
2014-08-13 04:00:47 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static void addTernaryCellEdgeResultsToDrawableGeo( size_t timeStepIndex,
|
|
|
|
RimEclipseCellColors* cellResultColors,
|
|
|
|
RimCellEdgeColors* cellEdgeResultColors,
|
|
|
|
const cvf::StructGridQuadToCellFaceMapper* quadToCellFaceMapper,
|
|
|
|
cvf::DrawableGeo* geo,
|
|
|
|
size_t gridIndex,
|
|
|
|
float opacityLevel );
|
2014-08-13 04:00:47 -05:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
static cvf::ref<RigResultAccessor> createCellCenterResultAccessor( RimEclipseCellColors* cellResultColors,
|
|
|
|
size_t timeStepIndex,
|
|
|
|
RigEclipseCaseData* eclipseCase,
|
|
|
|
const RigGridBase* grid );
|
2017-01-19 03:37:59 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static cvf::ref<RigResultAccessor> createCellEdgeResultAccessor( RimEclipseCellColors* cellResultColors,
|
|
|
|
RimCellEdgeColors* cellEdgeResultColors,
|
|
|
|
size_t timeStepIndex,
|
|
|
|
RigEclipseCaseData* eclipseCase,
|
|
|
|
const RigGridBase* grid );
|
2014-08-28 04:24:41 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static bool hideScalarValue( double scalarValue, double scalarValueToHide, double tolerance );
|
2014-08-13 04:00:47 -05:00
|
|
|
};
|