2016-12-20 08:28:37 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-12-20 08:28:37 -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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-12-20 08:28:37 -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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2016-12-20 08:28:37 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2017-01-02 07:01:31 -06:00
|
|
|
#include "RicNewWellPathFractureAtPosFeature.h"
|
2016-12-20 08:28:37 -06:00
|
|
|
|
2017-06-09 06:05:32 -05:00
|
|
|
#include "RicNewWellPathFractureFeature.h"
|
2017-01-02 04:59:30 -06:00
|
|
|
|
2018-01-23 00:28:32 -06:00
|
|
|
#include "RimProject.h"
|
|
|
|
|
2018-11-30 05:53:46 -06:00
|
|
|
#include "Riu3dSelectionManager.h"
|
2017-01-02 04:59:30 -06:00
|
|
|
|
2017-01-02 03:10:45 -06:00
|
|
|
#include <QAction>
|
2016-12-21 06:40:53 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
CAF_CMD_SOURCE_INIT( RicNewWellPathFractureAtPosFeature, "RicNewWellPathFractureAtPosFeature" );
|
2016-12-20 08:28:37 -06:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2016-12-20 08:28:37 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RicNewWellPathFractureAtPosFeature::onActionTriggered( bool isChecked )
|
2016-12-20 08:28:37 -06:00
|
|
|
{
|
2021-06-29 02:59:45 -05:00
|
|
|
RiuWellPathSelectionItem* wellPathItem = RiuWellPathSelectionItem::wellPathSelectionItem();
|
2019-09-06 03:40:57 -05:00
|
|
|
if ( !wellPathItem ) return;
|
2016-12-20 08:28:37 -06:00
|
|
|
|
2017-01-04 02:08:10 -06:00
|
|
|
RimWellPath* wellPath = wellPathItem->m_wellpath;
|
2019-09-06 03:40:57 -05:00
|
|
|
if ( !wellPath ) return;
|
2017-01-05 07:52:59 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
RicNewWellPathFractureFeature::addFracture( wellPath, wellPathItem->m_measuredDepth );
|
2016-12-20 08:28:37 -06:00
|
|
|
}
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2016-12-20 08:28:37 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2016-12-20 08:28:37 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RicNewWellPathFractureAtPosFeature::setupActionLook( QAction* actionToSetup )
|
2016-12-20 08:28:37 -06:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
actionToSetup->setIcon( QIcon( ":/FractureSymbol16x16.png" ) );
|
|
|
|
actionToSetup->setText( "Create Fracture at this Depth" );
|
2016-12-20 08:28:37 -06:00
|
|
|
}
|