#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

@@ -25,9 +25,9 @@
///
//--------------------------------------------------------------------------------------------------
RivIntersectionBoxSourceInfo::RivIntersectionBoxSourceInfo(RivIntersectionBoxGeometryGenerator* geometryGenerator)
: m_crossSectionGeometryGenerator(geometryGenerator)
: m_intersectionBoxGeometryGenerator(geometryGenerator)
{
CVF_ASSERT(m_crossSectionGeometryGenerator.notNull());
CVF_ASSERT(m_intersectionBoxGeometryGenerator.notNull());
}
//--------------------------------------------------------------------------------------------------
@@ -35,15 +35,15 @@ RivIntersectionBoxSourceInfo::RivIntersectionBoxSourceInfo(RivIntersectionBoxGeo
//--------------------------------------------------------------------------------------------------
const std::vector<size_t>& RivIntersectionBoxSourceInfo::triangleToCellIndex() const
{
CVF_ASSERT(m_crossSectionGeometryGenerator.notNull());
CVF_ASSERT(m_intersectionBoxGeometryGenerator.notNull());
return m_crossSectionGeometryGenerator->triangleToCellIndex();
return m_intersectionBoxGeometryGenerator->triangleToCellIndex();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const RimIntersectionBox* RivIntersectionBoxSourceInfo::crossSection() const
const RimIntersectionBox* RivIntersectionBoxSourceInfo::intersectionBox() const
{
return m_crossSectionGeometryGenerator->intersectionBox();
return m_intersectionBoxGeometryGenerator->intersectionBox();
}