2015-11-09 10:42:55 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-11-09 10:42:55 -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
|
|
|
//
|
2015-11-09 10:42:55 -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>
|
2015-11-09 10:42:55 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
2015-11-10 03:53:24 -06:00
|
|
|
|
2015-11-09 10:42:55 -06:00
|
|
|
#include "cvfDrawableGeo.h"
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
class Part;
|
2015-11-09 10:42:55 -06:00
|
|
|
}
|
|
|
|
|
2017-01-10 02:51:39 -06:00
|
|
|
class RigEclipseCaseData;
|
2015-11-11 06:38:54 -06:00
|
|
|
class RimGeoMechCase;
|
2015-11-09 10:42:55 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
class RivSingleCellPartGenerator
|
2015-11-09 10:42:55 -06:00
|
|
|
{
|
|
|
|
public:
|
2023-02-26 03:48:40 -06:00
|
|
|
RivSingleCellPartGenerator( RigEclipseCaseData* rigCaseData, size_t gridIndex, size_t cellIndex, const cvf::Vec3d& displayModelOffset );
|
|
|
|
RivSingleCellPartGenerator( RimGeoMechCase* rimGeoMechCase, size_t gridIndex, size_t cellIndex, const cvf::Vec3d& displayModelOffset );
|
2015-11-09 10:42:55 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
cvf::ref<cvf::Part> createPart( const cvf::Color3f color );
|
2015-11-09 10:42:55 -06:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
cvf::ref<cvf::DrawableGeo> createMeshDrawable();
|
2015-11-09 10:42:55 -06:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
RigEclipseCaseData* m_rigCaseData;
|
|
|
|
RimGeoMechCase* m_geoMechCase;
|
|
|
|
size_t m_gridIndex;
|
|
|
|
size_t m_cellIndex;
|
2019-11-28 03:31:01 -06:00
|
|
|
cvf::Vec3d m_displayModelOffset;
|
2015-11-09 10:42:55 -06:00
|
|
|
};
|