Minor cleanups

This commit is contained in:
Jacob Støren 2016-09-29 15:41:49 +02:00
parent 865d1e1d9c
commit cede61dd9a
3 changed files with 1 additions and 28 deletions

View File

@ -156,7 +156,7 @@ void RimIntersectionBox::setToDefaultSizeSlice(SinglePlaneState plane, const cvf
{
case PLANE_STATE_X: m_minXCoord = m_maxXCoord = center[0]; break;
case PLANE_STATE_Y: m_minYCoord = m_maxYCoord = center[1]; break;
case PLANE_STATE_Z: m_minDepth = m_maxDepth = -center[2]; break;
case PLANE_STATE_Z: m_minDepth = m_maxDepth = -center[2]; break;
}
updateVisibility();

View File

@ -136,28 +136,3 @@ void RimIntersectionBoxCollection::fieldChangedByUi(const caf::PdmFieldHandle* c
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimIntersectionBoxCollection::hasActiveCrossSectionForSimulationWell(RimEclipseWell* eclipseWell) const
{
if (!isActive) return false;
/*
for (size_t csIdx = 0; csIdx < m_intersectionBoxes.size(); ++csIdx)
{
RimIntersectionBox* cs = m_intersectionBoxes[csIdx];
if (cs->isActive &&
cs->type() == RimIntersectionBox::CS_SIMULATION_WELL &&
cs->simulationWell() == eclipseWell)
{
return true;
}
}
*/
return true;
}

View File

@ -48,8 +48,6 @@ public:
void appendIntersectionBox(RimIntersectionBox* intersectionBox);
bool hasActiveCrossSectionForSimulationWell(RimEclipseWell* eclipseWell) const;
// Visualization interface
void applySingleColorEffect();