2018-10-19 03:40:54 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2018-11-07 00:00:12 -06:00
|
|
|
#include "ExportCommands/RicLgrSplitType.h"
|
|
|
|
#include "RigCompletionData.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "RigCompletionDataGridCell.h"
|
2018-10-26 06:25:36 -05:00
|
|
|
|
2018-10-19 03:40:54 -05:00
|
|
|
#include "cafCmdFeature.h"
|
2018-10-26 06:25:36 -05:00
|
|
|
#include "cafVecIjk.h"
|
|
|
|
|
2018-10-19 03:40:54 -05:00
|
|
|
#include <limits>
|
2018-10-26 06:25:36 -05:00
|
|
|
#include <memory>
|
2018-10-19 03:40:54 -05:00
|
|
|
|
|
|
|
class LgrInfo;
|
|
|
|
class RigMainGrid;
|
2018-10-29 04:52:59 -05:00
|
|
|
class RigCell;
|
2018-10-19 03:40:54 -05:00
|
|
|
class RimEclipseCase;
|
|
|
|
class RimSimWellInView;
|
|
|
|
class RimWellPath;
|
|
|
|
class RicExportLgrUi;
|
|
|
|
class QFile;
|
|
|
|
class QTextStream;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RicCreateTemporaryLgrFeature : public caf::CmdFeature
|
|
|
|
{
|
|
|
|
CAF_CMD_HEADER_INIT;
|
|
|
|
|
2018-11-07 00:00:12 -06:00
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
void createLgrsForWellPaths( std::vector<RimWellPath*> wellPaths,
|
|
|
|
RimEclipseCase* eclipseCase,
|
|
|
|
size_t timeStep,
|
|
|
|
caf::VecIjk lgrCellCounts,
|
|
|
|
Lgr::SplitType splitType,
|
|
|
|
const std::set<RigCompletionData::CompletionType>& completionTypes,
|
|
|
|
QStringList* wellsIntersectingOtherLgrs );
|
2018-11-07 00:00:12 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void updateViews( RimEclipseCase* eclipseCase );
|
2018-11-07 00:00:12 -06:00
|
|
|
|
2018-10-19 03:40:54 -05:00
|
|
|
protected:
|
2023-06-26 07:28:46 -05:00
|
|
|
bool isCommandEnabled() const override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void onActionTriggered( bool isChecked ) override;
|
|
|
|
void setupActionLook( QAction* actionToSetup ) override;
|
2018-10-19 03:40:54 -05:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void createLgr( const LgrInfo& lgrInfo, RigMainGrid* mainGrid );
|
|
|
|
void computeCachedData( RimEclipseCase* eclipseCase );
|
|
|
|
void deleteAllCachedData( RimEclipseCase* eclipseCase );
|
2018-10-19 03:40:54 -05:00
|
|
|
};
|