MCPcopy Create free account
hub / github.com/MapServer/MapServer / navigate_scanline

Method navigate_scanline

renderers/agg/include/agg_rasterizer_compound_aa.h:620–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618 //------------------------------------------------------------------------
619 template<class Clip>
620 AGG_INLINE bool rasterizer_compound_aa<Clip>::navigate_scanline(int y)
621 {
622 m_outline.sort_cells();
623 if(m_outline.total_cells() == 0)
624 {
625 return false;
626 }
627 if(m_max_style < m_min_style)
628 {
629 return false;
630 }
631 if(y < m_outline.min_y() || y > m_outline.max_y())
632 {
633 return false;
634 }
635 m_scan_y = y;
636 m_styles.allocate(m_max_style - m_min_style + 2, 128);
637 allocate_master_alpha();
638 return true;
639 }
640
641 //------------------------------------------------------------------------
642 template<class Clip>

Callers

nothing calls this directly

Calls 5

sort_cellsMethod · 0.80
total_cellsMethod · 0.80
min_yMethod · 0.45
max_yMethod · 0.45
allocateMethod · 0.45

Tested by

no test coverage detected