ResInsight/ApplicationCode/ModelVisualization/RivReservoirFaultsPartMgr.h

71 lines
2.3 KiB
C
Raw Normal View History

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
}
class RimEclipseCellColors;
class RimCellEdgeColors;
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:
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
void setOpacityLevel(float opacity);
2014-01-02 04:21:35 -06:00
void applySingleColorEffect();
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);
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;
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
};