#1972 Toggle grid collection on range filter creation

This commit is contained in:
Rebecca Cox 2017-11-08 14:08:03 +01:00
parent aa45dd5fcd
commit c3ebcd7bc5
2 changed files with 11 additions and 2 deletions

View File

@ -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();
}
}

View File

@ -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);