63    for( 
int i = 0; i < aLockedInPts.
PointCount(); ++i )
 
   66    for( 
int i = 0; i < aLeaderPts.
PointCount(); ++i )
 
   69    for( 
int i = 0; i < aLoopPts.
PointCount(); ++i )
 
 
  103    for( 
int j = 0; j < 
m_polyfill.OutlineCount(); ++j )
 
 
A color representation with 4 components: red, green, blue, alpha.
 
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
 
Abstract interface for drawing on a 2D-surface.
 
virtual void DrawPolygon(const std::deque< VECTOR2D > &aPointList)
Draw a polygon.
 
virtual void SetLineWidth(float aLineWidth)
Set the line width.
 
virtual void DrawPolyline(const std::deque< VECTOR2D > &aPointList)
Draw a polyline.
 
virtual void SetStrokeColor(const COLOR4D &aColor)
Set the stroke color.
 
virtual void SetIsStroke(bool aIsStrokeEnabled)
Enable/disable stroked outlines.
 
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
 
KIGFX::COLOR4D m_lineColor
the preview leader line color
 
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
 
void SetLeaderColor(KIGFX::COLOR4D leaderColor)
Gets the bounding box of the polygon.
 
void drawPreviewShape(KIGFX::VIEW *aView) const override
< Draw rectangle and center line onto GAL
 
KIGFX::COLOR4D m_leaderColor
 
void SetLineColor(KIGFX::COLOR4D lineColor)
Sets the color of the outline leader line.
 
SHAPE_LINE_CHAIN m_lockedChain
 
void SetPoints(const SHAPE_LINE_CHAIN &aLockedInPts, const SHAPE_LINE_CHAIN &aLeaderPts, const SHAPE_LINE_CHAIN &aLoopPts)
Set the polygon points.
 
static const double POLY_LINE_WIDTH
 
SHAPE_LINE_CHAIN m_leaderChain
 
POLYGON_ITEM()
Sets the color of the preview outline.
 
SHAPE_POLY_SET m_polyfill
the preview outline color
 
SHAPE_LINE_CHAIN m_loopChain
polygon fill
 
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
 
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
 
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
 
GAL * GetGAL() const
Return the GAL this view is using to draw graphical primitives.
 
VECTOR2D ToWorld(const VECTOR2D &aCoord, bool aAbsolute=true) const
Converts a screen space point/vector to a point/vector in world space coordinates.
 
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
 
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
 
int PointCount() const
Return the number of points (vertices) in this line chain.
 
const VECTOR2I & CPoint(int aIndex) const
Return a reference to a given point in the line chain.
 
@ LAYER_AUX_ITEMS
Auxiliary items (guides, rule, etc).