#3249 Well path target point picking operational.

Still work to do, however.
This commit is contained in:
Jacob Støren
2018-08-29 16:03:31 +02:00
parent 9cd9173000
commit dc432e976b
10 changed files with 271 additions and 52 deletions

View File

@@ -27,6 +27,8 @@ CAF_CMD_SOURCE_INIT(RicNewEditableWellPathFeature, "RicNewEditableWellPathFeatur
#include "RimModeledWellPath.h"
#include <QAction>
#include "RimOilField.h"
#include "Riu3DMainWindowTools.h"
#include "RimWellPathGeometryDef.h"
//--------------------------------------------------------------------------------------------------
///
@@ -74,7 +76,14 @@ void RicNewEditableWellPathFeature::onActionTriggered(bool isChecked)
newWellPaths.back()->setName("UWell-" + QString::number(wellPathCollection->modelledWellPathCount()+1));
wellPathCollection->addWellPaths(newWellPaths);
wellPathCollection->uiCapability()->updateConnectedEditors();
wellPathCollection->scheduleRedrawAffectedViews();
newModeledWellPath->geometryDefinition()->enableTargetPointPicking(true);
RimProject* project;
wellPathCollection->firstAncestorOrThisOfTypeAsserted(project);
project->createDisplayModelAndRedrawAllViews();
Riu3DMainWindowTools::selectAsCurrentItem(newModeledWellPath->geometryDefinition());
}
}
}