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

This commit is contained in:
Magne Sjaastad committed 2016-09-22 10:09:03 +02:00
1 parent 8f501d96ea
commit e3cec5bfec
7 files changed
+81 -79

No files matched your search

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