#2331 Introduce new intermediate class RimGridView

This commit is contained in:
Jacob Støren
2018-01-15 14:52:22 +01:00
parent 1bbd3ade7b
commit b092565a61
48 changed files with 1387 additions and 508 deletions

View File

@@ -63,7 +63,7 @@ void RicAppendIntersectionBoxFeature::onActionTriggered(bool isChecked)
coll->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBox);
Rim3dView* rimView = nullptr;
RimGridView* rimView = nullptr;
coll->firstAncestorOrThisOfTypeAsserted(rimView);
rimView->showGridCells(false);
}

View File

@@ -50,7 +50,7 @@ bool RicIntersectionBoxAtPosFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicIntersectionBoxAtPosFeature::onActionTriggered(bool isChecked)
{
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
RimGridView* activeView = RiaApplication::instance()->activeGridView();
if (activeView)
{
RimIntersectionCollection* coll = activeView->crossSectionCollection();
@@ -67,7 +67,7 @@ void RicIntersectionBoxAtPosFeature::onActionTriggered(bool isChecked)
coll->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBox);
Rim3dView* rimView = NULL;
RimGridView* rimView = NULL;
coll->firstAncestorOrThisOfType(rimView);
if (rimView)
{

View File

@@ -50,7 +50,7 @@ bool RicIntersectionBoxXSliceFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicIntersectionBoxXSliceFeature::onActionTriggered(bool isChecked)
{
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
RimGridView* activeView = RiaApplication::instance()->activeGridView();
if (activeView)
{
RimIntersectionCollection* coll = activeView->crossSectionCollection();
@@ -67,7 +67,7 @@ void RicIntersectionBoxXSliceFeature::onActionTriggered(bool isChecked)
coll->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBox);
Rim3dView* rimView = NULL;
RimGridView* rimView = NULL;
coll->firstAncestorOrThisOfType(rimView);
if (rimView)
{

View File

@@ -50,7 +50,7 @@ bool RicIntersectionBoxYSliceFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicIntersectionBoxYSliceFeature::onActionTriggered(bool isChecked)
{
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
RimGridView* activeView = RiaApplication::instance()->activeGridView();
if (activeView)
{
RimIntersectionCollection* coll = activeView->crossSectionCollection();
@@ -67,7 +67,7 @@ void RicIntersectionBoxYSliceFeature::onActionTriggered(bool isChecked)
coll->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBox);
Rim3dView* rimView = NULL;
RimGridView* rimView = NULL;
coll->firstAncestorOrThisOfType(rimView);
if (rimView)
{

View File

@@ -50,7 +50,7 @@ bool RicIntersectionBoxZSliceFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicIntersectionBoxZSliceFeature::onActionTriggered(bool isChecked)
{
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
RimGridView* activeView = RiaApplication::instance()->activeGridView();
if (activeView)
{
RimIntersectionCollection* coll = activeView->crossSectionCollection();
@@ -66,7 +66,7 @@ void RicIntersectionBoxZSliceFeature::onActionTriggered(bool isChecked)
coll->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBox);
Rim3dView* rimView = NULL;
RimGridView* rimView = NULL;
coll->firstAncestorOrThisOfType(rimView);
if (rimView)
{