mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
74 lines
2.7 KiB
C++
74 lines
2.7 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron 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
|
|
|
|
#include "cvfArray.h"
|
|
#include "cvfCollection.h"
|
|
|
|
#include "RivReservoirFaultsPartMgr.h"
|
|
|
|
namespace cvf
|
|
{
|
|
class ModelBasicList;
|
|
class Transform;
|
|
}
|
|
|
|
class RimResultSlot;
|
|
class RimCellEdgeResultSlot;
|
|
class RivGridPartMgr;
|
|
class RigCaseData;
|
|
class RimFaultCollection;
|
|
|
|
//==================================================================================================
|
|
///
|
|
/// RivReservoirGeometry: Class to handle visualization structures that embodies a complete reservoir at a specific
|
|
/// time step.
|
|
///
|
|
//==================================================================================================
|
|
|
|
class RivReservoirPartMgr: public cvf::Object
|
|
{
|
|
public:
|
|
void clearAndSetReservoir(const RigCaseData* eclipseCase, const RimFaultCollection* faultCollection);
|
|
void setTransform(cvf::Transform* scaleTransform);
|
|
void setCellVisibility(size_t gridIndex, cvf::UByteArray* cellVisibilities );
|
|
void setFilterPart(bool filterPart);
|
|
|
|
//size_t gridCount() { return m_allGrids.size(); }
|
|
cvf::ref<cvf::UByteArray>
|
|
cellVisibility(size_t gridIdx);
|
|
|
|
void updateCellColor(cvf::Color4f color);
|
|
void updateCellResultColor(size_t timeStepIndex, RimResultSlot* cellResultSlot);
|
|
void updateCellEdgeResultColor(size_t timeStepIndex, RimResultSlot* cellResultSlot,
|
|
RimCellEdgeResultSlot* cellEdgeResultSlot);
|
|
|
|
void appendGridPartsToModel(cvf::ModelBasicList* model, const std::vector<size_t>& gridIdxes);
|
|
void appendGridPartsToModel(cvf::ModelBasicList* model);
|
|
|
|
// Faults
|
|
void updateFaultCellResultColor(size_t timeStepIndex, RimResultSlot* cellResultSlot);
|
|
void appendFaultPartsToModel(cvf::ModelBasicList* model);
|
|
void appendFaultLabelPartsToModel(cvf::ModelBasicList* model);
|
|
private:
|
|
|
|
cvf::Collection<RivGridPartMgr> m_allGrids; // Main grid and all LGR's
|
|
cvf::ref<RivReservoirFaultsPartMgr> m_faultsPartMgr;
|
|
};
|