Files
ResInsight/ApplicationLibCode/ModelVisualization/RivSingleCellPartGenerator.h
T

61 lines
2.3 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Statoil ASA
// Copyright (C) Ceetron Solutions AS
//
// 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
2015-11-10 01:53:24 -08:00
#include "cvfDrawableGeo.h"
namespace cvf
{
class Part;
}
2017-01-10 09:51:39 +01:00
class RigEclipseCaseData;
2025-09-29 11:46:28 +02:00
class RigGridBase;
2015-11-11 13:38:54 +01:00
class RimGeoMechCase;
//==================================================================================================
///
///
//==================================================================================================
class RivSingleCellPartGenerator
{
public:
2023-02-26 10:48:40 +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 );
2025-09-19 16:31:58 +02:00
void setShowLgrMeshLines( bool enable );
2025-09-29 11:46:28 +02:00
cvf::ref<cvf::Part> createPart( const cvf::Color3f color );
static cvf::ref<cvf::DrawableGeo> createMeshLinesOfParentGridCells( RigGridBase const* grid,
std::vector<size_t>& localGridCellIndices,
const cvf::Vec3d& displayModelOffset );
private:
cvf::ref<cvf::DrawableGeo> createMeshDrawable();
2025-09-19 16:31:58 +02:00
cvf::ref<cvf::DrawableGeo> createMeshDrawableFromLgrGridCells();
private:
RigEclipseCaseData* m_rigCaseData;
RimGeoMechCase* m_geoMechCase;
size_t m_gridIndex;
size_t m_cellIndex;
cvf::Vec3d m_displayModelOffset;
2025-09-19 16:31:58 +02:00
bool m_showLgrMeshLines{ false };
};