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
|
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.
|
|
|
|
//
|
|
|
|
// 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 "cvfBase.h"
|
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
|
|
|
|
{
|
|
|
|
class Transform;
|
2016-07-16 09:31:55 -05:00
|
|
|
class ModelBasicList;
|
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:
|
2015-05-21 03:05:33 -05:00
|
|
|
RivReservoirFaultsPartMgr(const RigMainGrid* grid, RimEclipseView* reservoirView);
|
2013-12-10 00:56:58 -06:00
|
|
|
~RivReservoirFaultsPartMgr();
|
|
|
|
|
|
|
|
void setTransform(cvf::Transform* scaleTransform);
|
|
|
|
void setCellVisibility(cvf::UByteArray* cellVisibilities);
|
2016-11-17 07:37:10 -06:00
|
|
|
void forceWatertightGeometryOn(bool forceWatertightGeometry);
|
2013-12-10 00:56:58 -06:00
|
|
|
|
2014-07-01 07:28:06 -05:00
|
|
|
void setOpacityLevel(float opacity);
|
2014-01-02 04:21:35 -06:00
|
|
|
void applySingleColorEffect();
|
2015-06-25 07:34:20 -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
|
|
|
|
|
|
|
void appendPartsToModel(cvf::ModelBasicList* model);
|
|
|
|
|
2013-12-18 05:18:15 -06:00
|
|
|
void appendLabelPartsToModel(cvf::ModelBasicList* model);
|
|
|
|
|
2013-12-10 00:56:58 -06:00
|
|
|
|
|
|
|
private:
|
2014-01-06 06:03:57 -06:00
|
|
|
cvf::ref<cvf::Transform> m_scaleTransform;
|
2015-05-21 03:05:33 -05:00
|
|
|
caf::PdmPointer<RimEclipseView> m_reservoirView;
|
2014-01-06 06:03:57 -06:00
|
|
|
cvf::Collection<RivFaultPartMgr> m_faultParts;
|
2016-11-17 07:37:10 -06:00
|
|
|
bool m_forceWatertightGeometry;
|
2013-12-10 00:56:58 -06:00
|
|
|
};
|