Implement creation of combination plots from selected plots

This commit is contained in:
Gaute Lindkvist
2019-10-31 15:12:54 +01:00
parent 30db19a1d0
commit e8c745d704
7 changed files with 115 additions and 17 deletions

View File

@@ -466,10 +466,6 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
menuBuilder << "RicNewWellLogPlotFeature";
menuBuilder << "RicNewWellBoreStabilityPlotFeature";
}
else if ( dynamic_cast<RimGridPlotWindowCollection*>( uiItem ) )
{
menuBuilder << "RicNewGridPlotWindowFeature";
}
else if ( dynamic_cast<RimRftPlotCollection*>( uiItem ) )
{
menuBuilder << "RicNewRftPlotFeature";
@@ -871,6 +867,8 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
menuBuilder << "RicDeleteSummaryCaseCollectionFeature";
menuBuilder << "RicCloseObservedDataFeature";
menuBuilder << "RicNewGridPlotWindowFeature";
// Work in progress -- End
appendCreateCompletions( menuBuilder, menuBuilder.itemCount() > 0u );
bool addedExportWellPaths = appendExportWellPaths( menuBuilder, menuBuilder.itemCount() > 0u ) > 0;

View File

@@ -114,14 +114,14 @@ void RimGridPlotWindow::insertPlot( RimPlotInterface* plot, size_t index )
if ( plot )
{
m_plots.insert( index, toPdmObjectAsserted( plot ) );
plot->setChecked( true );
if ( m_viewer )
{
plot->createPlotWidget();
plot->setChecked( true );
m_viewer->insertPlot( plot->viewer(), index );
plot->updateAfterInsertingIntoGridPlotWindow();
}
plot->updateAfterInsertingIntoGridPlotWindow();
onPlotAdditionOrRemoval();
}

View File

@@ -342,7 +342,6 @@ void RimWellLogExtractionCurve::onLoadDataAndUpdate( bool updateParentPlot )
RimWellLogPlot* wellLogPlot;
firstAncestorOrThisOfType( wellLogPlot );
CVF_ASSERT( wellLogPlot );
if ( !wellLogPlot ) return;
displayUnit = wellLogPlot->depthUnit();

View File

@@ -209,7 +209,7 @@ RimSummaryPlot::RimSummaryPlot()
m_textCurveSetEditor = new RimSummaryPlotFilterTextCurveSetEditor;
m_isCrossPlot = false;
m_isDraggable = false;
m_isDraggable = true;
m_nameHelperAllCurves.reset( new RimSummaryPlotNameHelper );