2013-12-19 02:00:00 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-24 00:14:52 -05:00
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2018-09-19 02:51:55 -05:00
|
|
|
//
|
2013-12-19 02:00:00 -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.
|
2018-09-19 02:51:55 -05:00
|
|
|
//
|
2013-12-19 02:00:00 -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.
|
2018-09-19 02:51:55 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2013-12-19 02:00:00 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-09-19 04:01:11 -05:00
|
|
|
#include "RivCellSetEnum.h"
|
2018-09-19 02:51:55 -05:00
|
|
|
#include "RivObjectSourceInfo.h"
|
|
|
|
|
|
|
|
#include "cvfArray.h"
|
2019-09-05 02:43:17 -05:00
|
|
|
|
2013-12-19 02:00:00 -06:00
|
|
|
#include "cvfObject.h"
|
2018-09-19 02:51:55 -05:00
|
|
|
|
2014-06-24 10:19:30 -05:00
|
|
|
#include "cvfStructGridGeometryGenerator.h"
|
2013-12-19 02:00:00 -06:00
|
|
|
|
2018-09-19 02:51:55 -05:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RivSourceInfo : public RivObjectSourceInfo
|
2013-12-19 02:00:00 -06:00
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
explicit RivSourceInfo( caf::PdmObject* pdmObject, size_t gridIndex );
|
2015-06-11 04:38:51 -05:00
|
|
|
|
2018-09-19 02:51:55 -05:00
|
|
|
size_t gridIndex() const;
|
|
|
|
bool hasCellFaceMapping() const;
|
|
|
|
bool hasNNCIndices() const;
|
2013-12-19 02:00:00 -06:00
|
|
|
|
2018-09-19 04:01:11 -05:00
|
|
|
RivCellSetEnum cellSetType() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
void setCellSetType( RivCellSetEnum cellSetType );
|
2018-09-19 04:01:11 -05:00
|
|
|
|
2013-12-19 02:00:00 -06:00
|
|
|
public:
|
2014-06-24 10:19:30 -05:00
|
|
|
cvf::cref<cvf::StuctGridTriangleToCellFaceMapper> m_cellFaceFromTriangleMapper;
|
2018-09-19 02:51:55 -05:00
|
|
|
cvf::ref<cvf::Array<size_t>> m_NNCIndices;
|
|
|
|
|
|
|
|
private:
|
2018-09-19 04:01:11 -05:00
|
|
|
size_t m_gridIndex;
|
|
|
|
RivCellSetEnum m_cellSetType;
|
2013-12-19 02:00:00 -06:00
|
|
|
};
|