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