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