ResInsight/ApplicationLibCode/ModelVisualization/RivReservoirFaultsPartMgr.h

72 lines
2.4 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.
//
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.
//
// 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
{
class Transform;
class ModelBasicList;
} // namespace cvf
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 );
~RivReservoirFaultsPartMgr() override;
2013-12-10 00:56:58 -06:00
void setTransform( cvf::Transform* scaleTransform );
void setCellVisibility( cvf::UByteArray* cellVisibilities );
2016-11-18 08:57:57 -06:00
void forceWatertightGeometryOn();
2016-11-18 08:57:57 -06:00
void clearWatertightGeometryFlag();
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:
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
};