47 for(
int i = 0; i < aLockedInPts.
PointCount(); ++i )
50 for(
int i = 0; i < aLeaderPts.
PointCount(); ++i )
virtual void DrawPolyline(const std::deque< VECTOR2D > &aPointList)
Draw a polyline.
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
static const double POLY_LINE_WIDTH
int OutlineCount() const
Return the number of vertices in a given outline/hole.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
VECTOR2D ToWorld(const VECTOR2D &aCoord, bool aAbsolute=true) const
Converts a screen space point/vector to a point/vector in world space coordinates.
SIMPLE_OVERLAY_ITEM is class that represents a visual area drawn on a canvas, used to temporarily dem...
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
SHAPE_POLY_SET m_polyfill
int PointCount() const
Function PointCount()
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
virtual void SetLineWidth(float aLineWidth)
Set the line width.
const VECTOR2I & CPoint(int aIndex) const
Function Point()
Auxiliary items (guides, rule, etc)
void drawPreviewShape(KIGFX::VIEW *aView) const override
< Draw rectangle and center line onto GAL
int NewOutline()
Creates a new hole in a given outline.
SHAPE_LINE_CHAIN m_leaderChain
polygon fill
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
virtual void SetStrokeColor(const COLOR4D &aColor)
Set the stroke color.
virtual void DrawPolygon(const std::deque< VECTOR2D > &aPointList)
Draw a polygon.
const SHAPE_LINE_CHAIN & COutline(int aIndex) const
void SetPoints(const SHAPE_LINE_CHAIN &aLockedInPts, const SHAPE_LINE_CHAIN &aLeaderPts)
Set the polygon points.
POLYGON_ITEM()
Gets the bounding box of the polygon.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
SHAPE_LINE_CHAIN m_lockedChain
const BOX2I BBox(int aClearance=0) const override
Compute a bounding box of the shape, with a margin of aClearance a collision.
Abstract interface for drawing on a 2D-surface.
int Append(int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=false)
Add a new vertex to the contour indexed by aOutline and aHole (defaults to the outline of the last po...