2013-12-10 07:56:58 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2014-09-24 07:14:52 +02:00
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2013-12-10 07:56:58 +01: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
|
|
|
//
|
2013-12-10 07:56:58 +01: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>
|
2013-12-10 07:56:58 +01:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2016-07-16 18:35:15 +02:00
|
|
|
#include "cvfArray.h"
|
2016-07-16 16:31:55 +02:00
|
|
|
#include "cvfCollection.h"
|
2013-12-10 07:56:58 +01:00
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
2016-07-16 16:31:55 +02:00
|
|
|
#include "cafPdmPointer.h"
|
2013-12-10 07:56:58 +01:00
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
class Transform;
|
|
|
|
|
class ModelBasicList;
|
|
|
|
|
} // namespace cvf
|
2013-12-10 07:56:58 +01:00
|
|
|
|
2015-06-25 12:04:46 +02:00
|
|
|
class RimEclipseCellColors;
|
2015-06-25 13:41:55 +02:00
|
|
|
class RimCellEdgeColors;
|
2015-05-21 10:05:33 +02:00
|
|
|
class RimEclipseView;
|
2016-07-16 16:31:55 +02:00
|
|
|
class RivFaultPartMgr;
|
|
|
|
|
class RigMainGrid;
|
2013-12-10 07:56:58 +01:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RivReservoirFaultsPartMgr : public cvf::Object
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
RivReservoirFaultsPartMgr( const RigMainGrid* grid, RimEclipseView* reservoirView );
|
2018-10-18 19:45:57 +02:00
|
|
|
~RivReservoirFaultsPartMgr() override;
|
2013-12-10 07:56:58 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void setTransform( cvf::Transform* scaleTransform );
|
|
|
|
|
void setCellVisibility( cvf::UByteArray* cellVisibilities );
|
2016-11-18 15:57:57 +01:00
|
|
|
|
2016-11-18 14:05:50 +01:00
|
|
|
void forceWatertightGeometryOn();
|
2016-11-18 15:57:57 +01:00
|
|
|
void clearWatertightGeometryFlag();
|
2013-12-10 07:56:58 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void setOpacityLevel( float opacity );
|
2014-01-02 11:21:35 +01:00
|
|
|
void applySingleColorEffect();
|
2019-09-06 10:40:57 +02:00
|
|
|
void updateColors( size_t timeStepIndex, RimEclipseCellColors* cellResultColors );
|
|
|
|
|
void updateCellEdgeResultColor( size_t timeStepIndex,
|
|
|
|
|
RimEclipseCellColors* cellResultColors,
|
|
|
|
|
RimCellEdgeColors* cellEdgeResultColors );
|
2013-12-10 07:56:58 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendPartsToModel( cvf::ModelBasicList* model );
|
2013-12-18 12:18:15 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendLabelPartsToModel( cvf::ModelBasicList* model );
|
2013-12-10 07:56:58 +01:00
|
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
cvf::ref<cvf::Transform> m_scaleTransform;
|
|
|
|
|
caf::PdmPointer<RimEclipseView> m_reservoirView;
|
|
|
|
|
cvf::Collection<RivFaultPartMgr> m_faultParts;
|
|
|
|
|
bool m_forceWatertightGeometry;
|
2013-12-10 07:56:58 +01:00
|
|
|
};
|