mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1972 Toggle grid collection on range filter creation
This commit is contained in:
parent
aa45dd5fcd
commit
c3ebcd7bc5
@ -19,9 +19,12 @@
|
||||
|
||||
#include "RicRangeFilterNewExec.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RimCellRangeFilter.h"
|
||||
#include "RimCellRangeFilterCollection.h"
|
||||
#include "RimView.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
|
||||
@ -73,6 +76,12 @@ void RicRangeFilterNewExec::redo()
|
||||
m_cellRangeFilterCollection->updateConnectedEditors();
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(rangeFilter);
|
||||
|
||||
RimView* view = nullptr;
|
||||
m_cellRangeFilterCollection->firstAncestorOrThisOfTypeAsserted(view);
|
||||
|
||||
//Enable display of grid cells, to be able to show generated range filter
|
||||
view->showGridCells(true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -88,4 +97,4 @@ void RicRangeFilterNewExec::undo()
|
||||
m_cellRangeFilterCollection->updateDisplayModeNotifyManagedViews(NULL);
|
||||
|
||||
m_cellRangeFilterCollection->updateConnectedEditors();
|
||||
}
|
||||
}
|
@ -131,7 +131,7 @@ public:
|
||||
void disableLighting(bool disable);
|
||||
bool isLightingDisabled() const;
|
||||
|
||||
void showGridCells(bool enableHideGridCells);
|
||||
void showGridCells(bool enableGridCells);
|
||||
bool isGridVisualizationMode() const;
|
||||
|
||||
void setScaleZAndUpdate(double scaleZ);
|
||||
|
Loading…
Reference in New Issue
Block a user