|
KiCad PCB EDA Suite
|
Sink for the shared DOCUMENT_GEOMETRY walk. More...
#include <diff_scene.h>
Public Member Functions | |
| virtual | ~GEOMETRY_SINK ()=default |
| virtual void | FillPolygon (const DOCUMENT_POLYGON &aPoly)=0 |
| virtual void | StrokePolygon (const DOCUMENT_POLYGON &aPoly)=0 |
| virtual void | DrawSegment (const DOCUMENT_SEGMENT &aSegment)=0 |
| virtual void | DrawCircle (const DOCUMENT_CIRCLE &aCircle)=0 |
Sink for the shared DOCUMENT_GEOMETRY walk.
The walk (IterateDocumentGeometry) owns the iteration order common to every renderer; each sink owns the API-specific draw calls and per-primitive guards.
Polygons are visited in two passes (every fill, then every stroke) so a filled-and-stroked outline gets both and a later filled polygon does not cover an earlier outline. A renderer that draws each polygon in a single call (e.g. the plotter, whose PlotPoly either fills or strokes) does its work in FillPolygon and leaves StrokePolygon empty.
Definition at line 183 of file diff_scene.h.
|
virtualdefault |
|
pure virtual |
Referenced by KICAD_DIFF::IterateDocumentGeometry().
|
pure virtual |
Referenced by KICAD_DIFF::IterateDocumentGeometry().
|
pure virtual |
Referenced by KICAD_DIFF::IterateDocumentGeometry().
|
pure virtual |
Referenced by KICAD_DIFF::IterateDocumentGeometry().