#815 Wired up infrastructure for intersection box from view to geometry generators

This commit is contained in:
Magne Sjaastad
2016-09-22 08:51:16 +02:00
parent 8f501d96ea
commit e3cec5bfec
7 changed files with 81 additions and 79 deletions

View File

@@ -22,6 +22,8 @@
#include "RimIntersectionBox.h"
#include "RimView.h"
#include "RivIntersectionBoxPartMgr.h"
#include "RiuMainWindow.h"
#include "cvfBoundingBox.h"
@@ -69,7 +71,7 @@ void RimIntersectionBoxCollection::applySingleColorEffect()
RimIntersectionBox* cs = m_intersectionBoxes[csIdx];
if (cs->isActive)
{
// cs->crossSectionPartMgr()->applySingleColorEffect();
cs->intersectionBoxPartMgr()->applySingleColorEffect();
}
}
}
@@ -84,7 +86,7 @@ void RimIntersectionBoxCollection::updateCellResultColor(size_t timeStepIndex)
RimIntersectionBox* cs = m_intersectionBoxes[csIdx];
if (cs->isActive)
{
// cs->crossSectionPartMgr()->updateCellResultColor(timeStepIndex);
cs->intersectionBoxPartMgr()->updateCellResultColor(timeStepIndex);
}
}
}
@@ -101,13 +103,8 @@ void RimIntersectionBoxCollection::appendPartsToModel(cvf::ModelBasicList* model
RimIntersectionBox* cs = m_intersectionBoxes[csIdx];
if (cs->isActive)
{
// cs->crossSectionPartMgr()->appendNativeCrossSectionFacesToModel(model, scaleTransform);
// cs->crossSectionPartMgr()->appendMeshLinePartsToModel(model, scaleTransform);
// if (cs->inputFromViewerEnabled)
// {
// // cs->crossSectionPartMgr()->appendPolylinePartsToModel(model, scaleTransform);
// }
cs->intersectionBoxPartMgr()->appendNativeCrossSectionFacesToModel(model, scaleTransform);
cs->intersectionBoxPartMgr()->appendMeshLinePartsToModel(model, scaleTransform);
}
}
}