2015-06-18 19:42:38 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
|
//
|
|
|
|
|
// 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.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2018-01-10 15:23:00 +01:00
|
|
|
|
2015-06-18 19:42:38 +02:00
|
|
|
#include "cvfBase.h"
|
|
|
|
|
#include "cvfArray.h"
|
|
|
|
|
|
2018-01-10 15:23:00 +01:00
|
|
|
#include "RimCellFilter.h"
|
|
|
|
|
|
2015-06-18 19:42:38 +02:00
|
|
|
namespace cvf
|
|
|
|
|
{
|
|
|
|
|
class CellRangeFilter;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class RigFemPart;
|
2015-06-22 08:16:46 +02:00
|
|
|
class RimGeoMechPropertyFilterCollection;
|
2015-09-24 11:29:01 +02:00
|
|
|
class RimViewController;
|
2015-06-18 19:42:38 +02:00
|
|
|
|
|
|
|
|
class RivFemElmVisibilityCalculator
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static void computeAllVisible(cvf::UByteArray* elmVisibilities, const RigFemPart* femPart );
|
2015-06-22 08:16:46 +02:00
|
|
|
static void computeRangeVisibility(cvf::UByteArray* elmVisibilities, RigFemPart* femPart,
|
|
|
|
|
const cvf::CellRangeFilter& rangeFilter);
|
|
|
|
|
|
|
|
|
|
static void computePropertyVisibility(cvf::UByteArray* cellVisibility,
|
|
|
|
|
const RigFemPart* grid,
|
|
|
|
|
int timeStepIndex,
|
|
|
|
|
const cvf::UByteArray* rangeFilterVisibility,
|
|
|
|
|
RimGeoMechPropertyFilterCollection* propFilterColl);
|
2015-09-14 16:14:44 +02:00
|
|
|
|
2018-01-11 11:35:08 +01:00
|
|
|
static void evaluateAndSetCellVisibiliy(int cellIndex,
|
|
|
|
|
double scalarValue,
|
|
|
|
|
double lowerBound,
|
|
|
|
|
double upperBound,
|
2018-01-10 15:23:00 +01:00
|
|
|
const RimCellFilter::FilterModeType filterType,
|
2018-01-11 11:35:08 +01:00
|
|
|
cvf::UByteArray* cellVisibility);
|
2018-01-10 15:23:00 +01:00
|
|
|
|
2015-09-14 16:14:44 +02:00
|
|
|
static void computeOverriddenCellVisibility(cvf::UByteArray* elmVisibilities,
|
|
|
|
|
const RigFemPart* femPart ,
|
2015-09-24 11:29:01 +02:00
|
|
|
RimViewController* masterViewLink);
|
2015-06-18 19:42:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|