2015-11-09 17:42:55 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-11-09 17:42:55 +01: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 10:40:57 +02:00
|
|
|
//
|
2015-11-09 17:42:55 +01: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 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-11-09 17:42:55 +01:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2015-11-10 01:53:24 -08:00
|
|
|
|
2015-11-09 17:42:55 +01:00
|
|
|
#include "cvfDrawableGeo.h"
|
|
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
class Part;
|
2015-11-09 17:42:55 +01:00
|
|
|
}
|
|
|
|
|
|
2017-01-10 09:51:39 +01:00
|
|
|
class RigEclipseCaseData;
|
2015-11-11 13:38:54 +01:00
|
|
|
class RimGeoMechCase;
|
2015-11-09 17:42:55 +01:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
class RivSingleCellPartGenerator
|
2015-11-09 17:42:55 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2019-11-28 10:31:01 +01: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 17:42:55 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
cvf::ref<cvf::Part> createPart( const cvf::Color3f color );
|
2015-11-09 17:42:55 +01:00
|
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
cvf::ref<cvf::DrawableGeo> createMeshDrawable();
|
2015-11-09 17:42:55 +01:00
|
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
RigEclipseCaseData* m_rigCaseData;
|
|
|
|
|
RimGeoMechCase* m_geoMechCase;
|
|
|
|
|
size_t m_gridIndex;
|
|
|
|
|
size_t m_cellIndex;
|
2019-11-28 10:31:01 +01:00
|
|
|
cvf::Vec3d m_displayModelOffset;
|
2015-11-09 17:42:55 +01:00
|
|
|
};
|