2012-05-18 09:45:23 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2014-09-23 15:04:57 +02:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2012-05-18 09:45:23 +02: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 10:40:57 +02:00
|
|
|
//
|
2012-05-18 09:45:23 +02: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 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2012-05-18 09:45:23 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-09-19 11:01:11 +02:00
|
|
|
#include "RivCellSetEnum.h"
|
|
|
|
|
|
2012-05-18 09:45:23 +02:00
|
|
|
#include "cvfArray.h"
|
|
|
|
|
#include "cvfCollection.h"
|
|
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
class ModelBasicList;
|
|
|
|
|
class Transform;
|
|
|
|
|
} // namespace cvf
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2015-06-25 12:04:46 +02:00
|
|
|
class RimEclipseCellColors;
|
2015-06-25 13:41:55 +02:00
|
|
|
class RimCellEdgeColors;
|
2018-09-19 09:51:55 +02:00
|
|
|
class RimEclipseCase;
|
2017-01-10 09:51:39 +01:00
|
|
|
class RigEclipseCaseData;
|
2015-05-21 10:05:33 +02:00
|
|
|
class RimEclipseView;
|
2016-07-16 16:31:55 +02:00
|
|
|
class RivReservoirFaultsPartMgr;
|
|
|
|
|
class RivGridPartMgr;
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
2019-09-06 10:40:57 +02:00
|
|
|
/// RivReservoirGeometry: Class to handle visualization structures that embodies a complete reservoir at a specific
|
|
|
|
|
/// time step.
|
2012-05-18 09:45:23 +02:00
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
class RivReservoirPartMgr : public cvf::Object
|
2012-05-18 09:45:23 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
void clearAndSetReservoir( RivCellSetEnum cellSetType, RimEclipseCase* eclipseCase, RimEclipseView* reservoirView );
|
|
|
|
|
void setTransform( cvf::Transform* scaleTransform );
|
|
|
|
|
void setCellVisibility( size_t gridIndex, cvf::UByteArray* cellVisibilities );
|
|
|
|
|
|
|
|
|
|
void forceWatertightGeometryOn();
|
|
|
|
|
void clearWatertightGeometryFlag();
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
// size_t gridCount() { return m_allGrids.size(); }
|
|
|
|
|
cvf::ref<cvf::UByteArray> cellVisibility( size_t gridIdx );
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void updateCellColor( cvf::Color4f color );
|
|
|
|
|
void updateCellResultColor( size_t timeStepIndex, RimEclipseCellColors* cellResultColors );
|
|
|
|
|
void updateCellEdgeResultColor( size_t timeStepIndex,
|
|
|
|
|
RimEclipseCellColors* cellResultColors,
|
|
|
|
|
RimCellEdgeColors* cellEdgeResultColors );
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendGridPartsToModel( cvf::ModelBasicList* model, const std::vector<size_t>& gridIdxes );
|
|
|
|
|
void appendGridPartsToModel( cvf::ModelBasicList* model );
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2013-12-09 14:17:36 +01:00
|
|
|
// Faults
|
2019-09-06 10:40:57 +02:00
|
|
|
void updateFaultColors( size_t timeStepIndex, RimEclipseCellColors* cellResultColors );
|
|
|
|
|
void updateFaultCellEdgeResultColor( size_t timeStepIndex,
|
|
|
|
|
RimEclipseCellColors* cellResultColors,
|
|
|
|
|
RimCellEdgeColors* cellEdgeResultColors );
|
|
|
|
|
void appendFaultPartsToModel( cvf::ModelBasicList* model );
|
|
|
|
|
void appendFaultLabelPartsToModel( cvf::ModelBasicList* model );
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2018-09-19 11:01:11 +02:00
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
cvf::Collection<RivGridPartMgr> m_allGrids; // Main grid and all LGR's
|
2013-12-09 14:17:36 +01:00
|
|
|
cvf::ref<RivReservoirFaultsPartMgr> m_faultsPartMgr;
|
2018-09-19 11:01:11 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
RivCellSetEnum m_cellSetType;
|
2012-05-18 09:45:23 +02:00
|
|
|
};
|