2015-08-27 16:13:49 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- 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.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#include "RicNewWellLogPlotFeature.h"
|
|
|
|
|
|
2015-09-15 18:21:38 +02:00
|
|
|
#include "RicNewWellLogPlotFeatureImpl.h"
|
2015-09-21 14:02:33 +02:00
|
|
|
#include "RicNewWellLogFileCurveFeature.h"
|
|
|
|
|
#include "RicNewWellLogCurveExtractionFeature.h"
|
2015-09-15 18:21:38 +02:00
|
|
|
|
2015-08-28 10:42:57 +02:00
|
|
|
#include "RimProject.h"
|
2015-09-03 09:46:26 +02:00
|
|
|
#include "RimWellLogPlot.h"
|
2015-11-04 16:14:42 +01:00
|
|
|
#include "RimWellLogTrack.h"
|
2015-11-04 16:22:53 +01:00
|
|
|
#include "RimWellLogCurve.h"
|
2015-09-21 14:02:33 +02:00
|
|
|
|
2017-10-09 14:30:27 +02:00
|
|
|
#include "RicWellLogTools.h"
|
|
|
|
|
|
2015-08-28 10:42:57 +02:00
|
|
|
#include "RiaApplication.h"
|
2015-08-27 16:13:49 +02:00
|
|
|
|
|
|
|
|
#include <QAction>
|
|
|
|
|
|
2015-09-07 10:44:48 +02:00
|
|
|
#include "cvfAssert.h"
|
|
|
|
|
|
2015-08-27 16:13:49 +02:00
|
|
|
|
|
|
|
|
CAF_CMD_SOURCE_INIT(RicNewWellLogPlotFeature, "RicNewWellLogPlotFeature");
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
bool RicNewWellLogPlotFeature::isCommandEnabled()
|
|
|
|
|
{
|
2015-09-07 10:44:48 +02:00
|
|
|
return true;
|
2015-08-27 16:13:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
void RicNewWellLogPlotFeature::onActionTriggered(bool isChecked)
|
|
|
|
|
{
|
2015-11-04 15:57:06 +01:00
|
|
|
RimWellLogTrack* plotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack();
|
2017-12-07 14:51:58 +01:00
|
|
|
RicWellLogTools::addExtractionCurve(plotTrack, nullptr, nullptr, nullptr, -1, true);
|
2015-08-27 16:13:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
void RicNewWellLogPlotFeature::setupActionLook(QAction* actionToSetup)
|
|
|
|
|
{
|
|
|
|
|
actionToSetup->setText("New Well Log Plot");
|
2016-11-17 17:37:01 +01:00
|
|
|
actionToSetup->setIcon(QIcon(":/WellLogPlot16x16.png"));
|
2015-08-27 16:13:49 +02:00
|
|
|
}
|