//-------------------------------------------------------------------------------------------------- /// Returns the overlay item at the given index. /// /// corner and direction are optional parameters to receive the layout attachment of the overlay item //-------------------------------------------------------------------------------------------------- const OverlayItem* Rendering::overlayItem(size_t index, OverlayItem::LayoutCorner* corner, OverlayItem::LayoutDirection* direction) const { CVF_ASSERT(index < overlayItemCount()); if (corner) { *corner = m_overlayItems[index].corner; } if (direction) { *direction = m_overlayItems[index].direction; } return m_overlayItems[index].overlayItem.p(); }
//-------------------------------------------------------------------------------------------------- /// Returns the overlay item at the given index. //-------------------------------------------------------------------------------------------------- const OverlayItem* Rendering::overlayItem(size_t index) const { CVF_ASSERT(index < overlayItemCount()); return m_overlayItems.at(index); }