mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2102 Statistics dialog. Support for geo mech data
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "RimProject.h"
|
||||
#include "Rim3dOverlayInfoConfig.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimGeoMechView.h"
|
||||
|
||||
#include "cafSelectionManagerTools.h"
|
||||
|
||||
@@ -47,11 +48,16 @@ bool RicShowGridStatisticsFeature::isCommandEnabled()
|
||||
void RicShowGridStatisticsFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
auto eclipseView = caf::firstAncestorOfTypeFromSelectedObject<RimEclipseView*>();
|
||||
auto geoMechView = caf::firstAncestorOfTypeFromSelectedObject<RimGeoMechView*>();
|
||||
|
||||
if (eclipseView && eclipseView->overlayInfoConfig())
|
||||
{
|
||||
eclipseView->overlayInfoConfig()->showStatisticsInfoDialog();
|
||||
}
|
||||
else if (geoMechView && geoMechView->overlayInfoConfig())
|
||||
{
|
||||
geoMechView->overlayInfoConfig()->showStatisticsInfoDialog();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user