mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1321 Made zoom all and snapshot work
This commit is contained in:
parent
a6ce3c9ef4
commit
960e6833c4
@ -49,6 +49,7 @@
|
|||||||
#include "RimEclipseWellCollection.h"
|
#include "RimEclipseWellCollection.h"
|
||||||
#include "RimFaultCollection.h"
|
#include "RimFaultCollection.h"
|
||||||
#include "RimFormationNamesCollection.h"
|
#include "RimFormationNamesCollection.h"
|
||||||
|
#include "RimFlowCharacteristicsPlot.h"
|
||||||
#include "RimGeoMechCase.h"
|
#include "RimGeoMechCase.h"
|
||||||
#include "RimGeoMechCellColors.h"
|
#include "RimGeoMechCellColors.h"
|
||||||
#include "RimGeoMechModels.h"
|
#include "RimGeoMechModels.h"
|
||||||
@ -83,6 +84,7 @@
|
|||||||
#include "RiuViewer.h"
|
#include "RiuViewer.h"
|
||||||
#include "RiuWellLogPlot.h"
|
#include "RiuWellLogPlot.h"
|
||||||
#include "RiuWellAllocationPlot.h"
|
#include "RiuWellAllocationPlot.h"
|
||||||
|
#include "RiuFlowCharacteristicsPlot.h"
|
||||||
|
|
||||||
#include "RicImportSummaryCaseFeature.h"
|
#include "RicImportSummaryCaseFeature.h"
|
||||||
#include "RicSnapshotViewToClipboardFeature.h"
|
#include "RicSnapshotViewToClipboardFeature.h"
|
||||||
@ -1648,6 +1650,12 @@ RimViewWindow* RiaApplication::activeViewWindow()
|
|||||||
{
|
{
|
||||||
viewWindow = wellAllocationPlot->ownerPlotDefinition();
|
viewWindow = wellAllocationPlot->ownerPlotDefinition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RiuFlowCharacteristicsPlot* flowCharacteristicsPlot = dynamic_cast<RiuFlowCharacteristicsPlot*>(subwindows.back()->widget());
|
||||||
|
if (flowCharacteristicsPlot)
|
||||||
|
{
|
||||||
|
viewWindow = flowCharacteristicsPlot->ownerPlotDefinition();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QMdiSubWindow>
|
#include <QMdiSubWindow>
|
||||||
|
#include "RiuFlowCharacteristicsPlot.h"
|
||||||
|
#include "RimFlowCharacteristicsPlot.h"
|
||||||
|
|
||||||
CAF_CMD_SOURCE_INIT(RicViewZoomAllFeature, "RicViewZoomAllFeature");
|
CAF_CMD_SOURCE_INIT(RicViewZoomAllFeature, "RicViewZoomAllFeature");
|
||||||
|
|
||||||
@ -100,6 +102,18 @@ void RicViewZoomAllFeature::onActionTriggered(bool isChecked)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
RiuFlowCharacteristicsPlot* flowCharPlot = dynamic_cast<RiuFlowCharacteristicsPlot*>(subwindows.back()->widget());
|
||||||
|
if (flowCharPlot)
|
||||||
|
{
|
||||||
|
RimFlowCharacteristicsPlot* viewWindow = flowCharPlot->ownerPlotDefinition();
|
||||||
|
viewWindow->zoomAll();
|
||||||
|
flowCharPlot->update();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user