#2727 Legends : Add RimLegendConfig as base for Regular and Ternary

This commit is contained in:
Magne Sjaastad
2018-04-18 10:32:51 +02:00
parent 3bc85ce794
commit 71b7bd21f9
15 changed files with 215 additions and 51 deletions

View File

@@ -338,6 +338,24 @@ bool Rim2dIntersectionView::showDefiningPoints() const
return m_showDefiningPoints;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RimLegendConfig*> Rim2dIntersectionView::legendConfigs() const
{
std::vector<RimLegendConfig*> legendsIn3dView;
Rim3dView* associated3dView = nullptr;
this->firstAncestorOrThisOfType(associated3dView);
if (associated3dView)
{
legendsIn3dView = associated3dView->legendConfigs();
}
return legendsIn3dView;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------