27#ifndef __VIEW_OVERLAY_H
28#define __VIEW_OVERLAY_H
66 struct COMMAND_POLYLINE;
67 struct COMMAND_POINT_POLYLINE;
74 virtual const BOX2I ViewBBox()
const override;
75 virtual void ViewDraw(
int aLayer,
VIEW *aView )
const override;
76 virtual std::vector<int> ViewGetLayers()
const override;
80 void Line(
const SEG& aSeg );
81 void Segment(
const VECTOR2D& aStartPoint,
const VECTOR2D& aEndPoint,
double aWidth );
82 void Circle(
const VECTOR2D& aCenterPoint,
double aRadius );
83 void Arc(
const VECTOR2D& aCenterPoint,
double aRadius,
const EDA_ANGLE& aStartAngle,
86 void Cross(
const VECTOR2D& aP,
int aSize );
89 void Polygon(
const std::deque<VECTOR2D>& aPointList );
92 void Polygon(
const VECTOR2D aPointList[],
int aListSize );
94 void BitmapText(
const wxString& aText,
const VECTOR2I& aPosition,
const EDA_ANGLE& aAngle );
97 void SetIsFill(
bool aIsFillEnabled );
98 void SetIsStroke(
bool aIsStrokeEnabled );
99 void SetFillColor(
const COLOR4D& aColor );
100 void SetStrokeColor(
const COLOR4D& aColor );
101 void SetGlyphSize(
const VECTOR2I& aSize );
102 void SetLineWidth(
double aLineWidth );
108 void releaseCommands();
A color representation with 4 components: red, green, blue, alpha.
An abstract base class for deriving all objects that can be added to a VIEW.
std::vector< COMMAND * > m_commands
const COLOR4D & GetFillColor() const
const COLOR4D & GetStrokeColor() const
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
Represent a set of closed polygons.
The Cairo implementation of the graphics abstraction layer.