ResInsight/ApplicationLibCode/ReservoirDataModel/RigGridManager.h

58 lines
1.8 KiB
C
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
2019-03-25 01:38:33 -05: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-03-25 01:38:33 -05: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-03-25 01:38:33 -05:00
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cvfCollection.h"
2019-03-25 01:38:33 -05:00
#include "cvfObject.h"
#include <vector>
class RigMainGrid;
2017-01-10 02:51:39 -06:00
class RigEclipseCaseData;
class RigGridManager : public cvf::Object
{
public:
void addCase( RigEclipseCaseData* eclipseCase );
2019-03-25 01:38:33 -05:00
void removeCase( RigEclipseCaseData* eclipseCase );
2019-03-25 01:38:33 -05:00
RigMainGrid* findEqualGrid( RigMainGrid* candidateGrid );
void clear();
static bool isEqual( RigMainGrid* gridA, RigMainGrid* gridB );
static bool isMainGridDimensionsEqual( const RigMainGrid* gridA, const RigMainGrid* gridB );
static bool isGridDimensionsEqual( const std::vector<std::vector<int>>& mainCaseGridDimensions,
const std::vector<std::vector<int>>& caseGridDimensions );
private:
class CaseToGridMap : public cvf::Object
{
public:
CaseToGridMap( RigEclipseCaseData* eclipseCase, RigMainGrid* mainGrid );
2019-03-25 01:38:33 -05:00
RigEclipseCaseData* m_eclipseCase;
RigMainGrid* m_mainGrid;
};
private:
cvf::Collection<CaseToGridMap> m_caseToGrid;
2013-02-28 02:59:36 -06:00
};