KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eda_shape.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2018 Jean-Pierre Charras jp.charras at wanadoo.fr
5 * Copyright (C) 1992-2024 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#pragma once
26
27#include <core/mirror.h>
30#include <properties/property.h>
31#include <stroke_params.h>
32#include <trigo.h>
33#include <api/serializable.h>
34
35class LINE_READER;
36class EDA_DRAW_FRAME;
37class FOOTPRINT;
38class MSG_PANEL_ITEM;
39
40using KIGFX::COLOR4D;
41
42enum class SHAPE_T : int
43{
44 UNDEFINED = -1,
45 SEGMENT = 0,
46 RECTANGLE,
47 ARC,
48 CIRCLE,
49 POLY,
50 BEZIER
51};
52
53
54// WARNING: Do not change these values without updating dialogs that depend on their position values
55enum class FILL_T : int
56{
57 NO_FILL = 1,
58 FILLED_SHAPE, // Fill with object color
59 FILLED_WITH_BG_BODYCOLOR, // Fill with background body color
60 FILLED_WITH_COLOR // Fill with a separate color
61};
62
63
64// Holding struct to keep originating midpoint
65struct ARC_MID
66{
71};
72
73class EDA_SHAPE : public SERIALIZABLE
74{
75public:
76 EDA_SHAPE( SHAPE_T aType, int aLineWidth, FILL_T aFill );
77
78 // Construct an EDA_SHAPE from an abstract SHAPE geometry
79 EDA_SHAPE( const SHAPE& aShape );
80
81 // Do not create a copy constructor & operator=.
82 // The ones generated by the compiler are adequate.
83
84 virtual ~EDA_SHAPE();
85
86 void SwapShape( EDA_SHAPE* aImage );
87
88 void Serialize( google::protobuf::Any &aContainer ) const override;
89 bool Deserialize( const google::protobuf::Any &aContainer ) override;
90
91 wxString ShowShape() const;
92
93 wxString SHAPE_T_asString() const;
94
95 virtual bool IsProxyItem() const { return m_proxyItem; }
96 virtual void SetIsProxyItem( bool aIsProxy = true ) { m_proxyItem = aIsProxy; }
97
98 bool IsFilled() const
99 {
100 return GetFillMode() != FILL_T::NO_FILL;
101 }
102
103 virtual bool IsFilledForHitTesting() const
104 {
105 return IsFilled();
106 }
107
108 void SetFilled( bool aFlag )
109 {
110 setFilled( aFlag );
111 }
112
113 void SetFillMode( FILL_T aFill ) { m_fill = aFill; }
114 FILL_T GetFillMode() const { return m_fill; }
115
116 bool IsClosed() const;
117
118 COLOR4D GetFillColor() const { return m_fillColor; }
119 void SetFillColor( const COLOR4D& aColor ) { m_fillColor = aColor; }
120
121 void SetWidth( int aWidth ) { m_stroke.SetWidth( aWidth ); }
122 virtual int GetWidth() const { return m_stroke.GetWidth(); }
123 virtual int GetEffectiveWidth() const { return GetWidth(); }
124
125 void SetLineStyle( const LINE_STYLE aStyle );
126 LINE_STYLE GetLineStyle() const;
127
128 void SetLineColor( const COLOR4D& aColor ) { m_stroke.SetColor( aColor ); }
129 COLOR4D GetLineColor() const { return m_stroke.GetColor(); }
130
131 void SetShape( SHAPE_T aShape ) { m_shape = aShape; }
132 SHAPE_T GetShape() const { return m_shape; }
133
137 const VECTOR2I& GetStart() const { return m_start; }
138 int GetStartY() const { return m_start.y; }
139 int GetStartX() const { return m_start.x; }
140
141 void SetStart( const VECTOR2I& aStart )
142 {
143 m_start = aStart;
144 m_endsSwapped = false;
145 }
146
147 void SetStartY( int y )
148 {
149 m_start.y = y;
150 m_endsSwapped = false;
151 }
152
153 void SetStartX( int x )
154 {
155 m_start.x = x;
156 m_endsSwapped = false;
157 }
158
159 void SetCenterY( int y )
160 {
161 m_end.y += y - m_start.y;
162 m_start.y = y;
163 }
164
165 void SetCenterX( int x )
166 {
167 m_end.x += x - m_start.x;
168 m_start.x = x;
169 }
170
174 const VECTOR2I& GetEnd() const { return m_end; }
175 int GetEndY() const { return m_end.y; }
176 int GetEndX() const { return m_end.x; }
177
178 void SetEnd( const VECTOR2I& aEnd )
179 {
180 m_end = aEnd;
181 m_endsSwapped = false;
182 }
183
184 void SetEndY( int aY )
185 {
186 m_end.y = aY;
187 m_endsSwapped = false;
188 }
189
190 void SetEndX( int aX )
191 {
192 m_end.x = aX;
193 m_endsSwapped = false;
194 }
195
196 void SetRadius( int aX )
197 {
198 m_end = m_start + VECTOR2I( aX, 0 );
199 }
200
201 virtual VECTOR2I GetTopLeft() const { return GetStart(); }
202 virtual VECTOR2I GetBotRight() const { return GetEnd(); }
203
204 virtual void SetTop( int val ) { SetStartY( val ); }
205 virtual void SetLeft( int val ) { SetStartX( val ); }
206 virtual void SetRight( int val ) { SetEndX( val ); }
207 virtual void SetBottom( int val ) { SetEndY( val ); }
208
209 void SetBezierC1( const VECTOR2I& aPt ) { m_bezierC1 = aPt; }
210 const VECTOR2I& GetBezierC1() const { return m_bezierC1; }
211
212 void SetBezierC2( const VECTOR2I& aPt ) { m_bezierC2 = aPt; }
213 const VECTOR2I& GetBezierC2() const { return m_bezierC2; }
214
215 VECTOR2I getCenter() const;
216 void SetCenter( const VECTOR2I& aCenter );
217
224 void SetArcAngleAndEnd( const EDA_ANGLE& aAngle, bool aCheckNegativeAngle = false );
225
226 EDA_ANGLE GetArcAngle() const;
227
229
234 bool EndsSwapped() const { return m_endsSwapped; }
235
236 // Some attributes are read only, since they are derived from m_Start, m_End, and m_Angle.
237 // No Set...() function for these attributes.
238
239 VECTOR2I GetArcMid() const;
240 std::vector<VECTOR2I> GetRectCorners() const;
241
246 void CalcArcAngles( EDA_ANGLE& aStartAngle, EDA_ANGLE& aEndAngle ) const;
247
248 int GetRadius() const;
249
256 void SetArcGeometry( const VECTOR2I& aStart, const VECTOR2I& aMid, const VECTOR2I& aEnd );
257
267 void SetCachedArcData( const VECTOR2I& aStart, const VECTOR2I& aMid, const VECTOR2I& aEnd, const VECTOR2I& aCenter );
268
269 const std::vector<VECTOR2I>& GetBezierPoints() const { return m_bezierPoints; }
270
278 void DupPolyPointsList( std::vector<VECTOR2I>& aBuffer ) const;
279
283 int GetPointCount() const;
284
285 // Accessors to the polygonal shape
287 const SHAPE_POLY_SET& GetPolyShape() const { return m_poly; }
288
292 bool IsPolyShapeValid() const;
293
294 void SetPolyShape( const SHAPE_POLY_SET& aShape )
295 {
296 m_poly = aShape;
297
298 for( int ii = 0; ii < m_poly.OutlineCount(); ++ii )
299 {
300 if( m_poly.HoleCount( ii ) )
301 {
303 break;
304 }
305 }
306 }
307
308 void SetPolyPoints( const std::vector<VECTOR2I>& aPoints );
309
318 void RebuildBezierToSegmentsPointsList( int aMaxError );
319
326 virtual std::vector<SHAPE*> MakeEffectiveShapes( bool aEdgeOnly = false ) const
327 {
328 return makeEffectiveShapes( aEdgeOnly );
329 }
330
331 void ShapeGetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList );
332
333 void SetLength( const double& aLength );
334
335 void SetRectangleHeight( const int& aHeight );
336
337 void SetRectangleWidth( const int& aWidth );
338
339 void SetRectangle( const long long int& aHeight, const long long int& aWidth );
340
341 void SetSegmentAngle( const EDA_ANGLE& aAngle );
342
343 bool IsClockwiseArc() const;
344
348 double GetLength() const;
349
350 int GetRectangleHeight() const;
351 int GetRectangleWidth() const;
352
363 void TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, int aClearance, int aError,
364 ERROR_LOC aErrorLoc, bool ignoreLineWidth = false ) const;
365
366 int Compare( const EDA_SHAPE* aOther ) const;
367
368 double Similarity( const EDA_SHAPE& aOther ) const;
369
370 bool operator==( const EDA_SHAPE& aOther ) const;
371
372protected:
373 wxString getFriendlyName() const;
374
375 void setPosition( const VECTOR2I& aPos );
376 VECTOR2I getPosition() const;
377
378 virtual void setFilled( bool aFlag )
379 {
380 m_fill = aFlag ? FILL_T::FILLED_SHAPE : FILL_T::NO_FILL;
381 }
382
383 void move( const VECTOR2I& aMoveVector );
384 void rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle );
385 void flip( const VECTOR2I& aCentre, FLIP_DIRECTION aFlipDirection );
386 void scale( double aScale );
387
388 const BOX2I getBoundingBox() const;
389
390 void computeArcBBox( BOX2I& aBBox ) const;
391
392 bool hitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const;
393 bool hitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const;
394
395 const std::vector<VECTOR2I> buildBezierToSegmentsPointsList( int aMaxError ) const;
396
397 void beginEdit( const VECTOR2I& aStartPoint );
398 bool continueEdit( const VECTOR2I& aPosition );
399 void calcEdit( const VECTOR2I& aPosition );
400
405 void endEdit( bool aClosed = true );
406 void setEditState( int aState ) { m_editState = aState; }
407
416 // fixme: move to shape_compound
417 std::vector<SHAPE*> makeEffectiveShapes( bool aEdgeOnly, bool aLineChainOnly = false ) const;
418
419protected:
420 bool m_endsSwapped; // true if start/end were swapped e.g. SetArcAngleAndEnd
421 SHAPE_T m_shape; // Shape: line, Circle, Arc
422 STROKE_PARAMS m_stroke; // Line style, width, etc.
425
426 long long int m_rectangleHeight;
427 long long int m_rectangleWidth;
428
431
432 VECTOR2I m_start; // Line start point or Circle center
433 VECTOR2I m_end; // Line end point or Circle 3 o'clock point
434
435 VECTOR2I m_arcCenter; // Used only for Arcs: arc end point
436 ARC_MID m_arcMidData; // Used to store originating data
437
438 VECTOR2I m_bezierC1; // Bezier Control Point 1
439 VECTOR2I m_bezierC2; // Bezier Control Point 2
440
441 std::vector<VECTOR2I> m_bezierPoints;
442 SHAPE_POLY_SET m_poly; // Stores the S_POLYGON shape
443
445 bool m_proxyItem; // A shape storing proxy information (ie: a pad
446 // number box, thermal spoke template, etc.)
447};
448
449#ifndef SWIG
452#endif
ERROR_LOC
When approximating an arc or circle, should the error be placed on the outside or inside of the curve...
Definition: approximation.h:32
Generic cubic Bezier representation.
Definition: bezier_curves.h:95
The base class for create windows for drawing purpose.
EDA_ANGLE GetArcAngle() const
Definition: eda_shape.cpp:896
SHAPE_T m_shape
Definition: eda_shape.h:421
void SetStartX(int x)
Definition: eda_shape.h:153
bool m_proxyItem
Definition: eda_shape.h:445
bool m_endsSwapped
Definition: eda_shape.h:420
const VECTOR2I & GetBezierC2() const
Definition: eda_shape.h:213
void SetBezierC2(const VECTOR2I &aPt)
Definition: eda_shape.h:212
void SetCenter(const VECTOR2I &aCenter)
Definition: eda_shape.cpp:778
VECTOR2I getCenter() const
Definition: eda_shape.cpp:752
int GetStartY() const
Definition: eda_shape.h:138
void SetLength(const double &aLength)
Definition: eda_shape.cpp:430
int m_editState
Definition: eda_shape.h:444
virtual VECTOR2I GetTopLeft() const
Definition: eda_shape.h:201
void rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle)
Definition: eda_shape.cpp:625
const std::vector< VECTOR2I > buildBezierToSegmentsPointsList(int aMaxError) const
Definition: eda_shape.cpp:739
FILL_T GetFillMode() const
Definition: eda_shape.h:114
virtual ~EDA_SHAPE()
Definition: eda_shape.cpp:62
long long int m_rectangleHeight
Definition: eda_shape.h:426
void SetEndY(int aY)
Definition: eda_shape.h:184
virtual int GetEffectiveWidth() const
Definition: eda_shape.h:123
COLOR4D GetLineColor() const
Definition: eda_shape.h:129
int GetEndX() const
Definition: eda_shape.h:176
int GetRectangleWidth() const
Definition: eda_shape.cpp:417
void SetLineStyle(const LINE_STYLE aStyle)
Definition: eda_shape.cpp:2035
void calcEdit(const VECTOR2I &aPosition)
Definition: eda_shape.cpp:1661
void SetStartY(int y)
Definition: eda_shape.h:147
virtual std::vector< SHAPE * > MakeEffectiveShapes(bool aEdgeOnly=false) const
Make a set of SHAPE objects representing the EDA_SHAPE.
Definition: eda_shape.h:326
SHAPE_POLY_SET & GetPolyShape()
Definition: eda_shape.h:286
bool IsFilled() const
Definition: eda_shape.h:98
void SetCenterY(int y)
Definition: eda_shape.h:159
void CalcArcAngles(EDA_ANGLE &aStartAngle, EDA_ANGLE &aEndAngle) const
Calc arc start and end angles such that aStartAngle < aEndAngle.
Definition: eda_shape.cpp:810
void ShapeGetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
Definition: eda_shape.cpp:966
void SetFilled(bool aFlag)
Definition: eda_shape.h:108
bool operator==(const EDA_SHAPE &aOther) const
Definition: eda_shape.cpp:2050
int GetRadius() const
Definition: eda_shape.cpp:826
SHAPE_T GetShape() const
Definition: eda_shape.h:132
void SetPolyShape(const SHAPE_POLY_SET &aShape)
Definition: eda_shape.h:294
virtual VECTOR2I GetBotRight() const
Definition: eda_shape.h:202
virtual void SetBottom(int val)
Definition: eda_shape.h:207
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
Definition: eda_shape.cpp:234
void SetRectangleHeight(const int &aHeight)
Definition: eda_shape.cpp:442
VECTOR2I m_arcCenter
Definition: eda_shape.h:435
double m_segmentLength
Definition: eda_shape.h:429
void SetCenterX(int x)
Definition: eda_shape.h:165
virtual void SetTop(int val)
Definition: eda_shape.h:204
virtual bool IsFilledForHitTesting() const
Definition: eda_shape.h:103
bool continueEdit(const VECTOR2I &aPosition)
Definition: eda_shape.cpp:1627
wxString ShowShape() const
Definition: eda_shape.cpp:313
ARC_MID m_arcMidData
Definition: eda_shape.h:436
void SetFillColor(const COLOR4D &aColor)
Definition: eda_shape.h:119
int GetEndY() const
Definition: eda_shape.h:175
std::vector< SHAPE * > makeEffectiveShapes(bool aEdgeOnly, bool aLineChainOnly=false) const
Make a set of SHAPE objects representing the EDA_SHAPE.
Definition: eda_shape.cpp:1461
bool hitTest(const VECTOR2I &aPosition, int aAccuracy=0) const
Definition: eda_shape.cpp:1077
void SetCachedArcData(const VECTOR2I &aStart, const VECTOR2I &aMid, const VECTOR2I &aEnd, const VECTOR2I &aCenter)
Set the data used for mid point caching.
Definition: eda_shape.cpp:849
void SetEndX(int aX)
Definition: eda_shape.h:190
void RebuildBezierToSegmentsPointsList(int aMaxError)
Rebuild the m_bezierPoints vertex list that approximate the Bezier curve by a list of segments.
Definition: eda_shape.cpp:725
void flip(const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection)
Definition: eda_shape.cpp:682
void beginEdit(const VECTOR2I &aStartPoint)
Definition: eda_shape.cpp:1586
VECTOR2I m_start
Definition: eda_shape.h:432
int GetPointCount() const
Definition: eda_shape.cpp:1578
const VECTOR2I & GetEnd() const
Return the ending point of the graphic.
Definition: eda_shape.h:174
bool IsClosed() const
Definition: eda_shape.cpp:498
void SetRadius(int aX)
Definition: eda_shape.h:196
void SetStart(const VECTOR2I &aStart)
Definition: eda_shape.h:141
void DupPolyPointsList(std::vector< VECTOR2I > &aBuffer) const
Duplicate the list of corners in a std::vector<VECTOR2I>
Definition: eda_shape.cpp:1554
LINE_STYLE GetLineStyle() const
Definition: eda_shape.cpp:2041
void endEdit(bool aClosed=true)
Finishes editing the shape.
Definition: eda_shape.cpp:1815
const VECTOR2I & GetStart() const
Return the starting point of the graphic.
Definition: eda_shape.h:137
void SetLineColor(const COLOR4D &aColor)
Definition: eda_shape.h:128
COLOR4D GetFillColor() const
Definition: eda_shape.h:118
void SetRectangle(const long long int &aHeight, const long long int &aWidth)
Definition: eda_shape.cpp:470
void SetShape(SHAPE_T aShape)
Definition: eda_shape.h:131
void SwapShape(EDA_SHAPE *aImage)
Definition: eda_shape.cpp:1852
std::vector< VECTOR2I > GetRectCorners() const
Definition: eda_shape.cpp:1386
void SetSegmentAngle(const EDA_ANGLE &aAngle)
Definition: eda_shape.cpp:485
std::vector< VECTOR2I > m_bezierPoints
Definition: eda_shape.h:441
void setPosition(const VECTOR2I &aPos)
Definition: eda_shape.cpp:357
virtual void setFilled(bool aFlag)
Definition: eda_shape.h:378
const std::vector< VECTOR2I > & GetBezierPoints() const
Definition: eda_shape.h:269
virtual bool IsProxyItem() const
Definition: eda_shape.h:95
void computeArcBBox(BOX2I &aBBox) const
Definition: eda_shape.cpp:1401
void SetEnd(const VECTOR2I &aEnd)
Definition: eda_shape.h:178
bool EndsSwapped() const
Have the start and end points been swapped since they were set?
Definition: eda_shape.h:234
void SetRectangleWidth(const int &aWidth)
Definition: eda_shape.cpp:456
const SHAPE_POLY_SET & GetPolyShape() const
Definition: eda_shape.h:287
void SetBezierC1(const VECTOR2I &aPt)
Definition: eda_shape.h:209
void SetArcGeometry(const VECTOR2I &aStart, const VECTOR2I &aMid, const VECTOR2I &aEnd)
Set the three controlling points for an arc.
Definition: eda_shape.cpp:858
virtual void SetLeft(int val)
Definition: eda_shape.h:205
double GetLength() const
Definition: eda_shape.cpp:374
wxString SHAPE_T_asString() const
Definition: eda_shape.cpp:340
int GetStartX() const
Definition: eda_shape.h:139
double Similarity(const EDA_SHAPE &aOther) const
Definition: eda_shape.cpp:2095
const VECTOR2I & GetBezierC1() const
Definition: eda_shape.h:210
VECTOR2I m_end
Definition: eda_shape.h:433
const BOX2I getBoundingBox() const
Definition: eda_shape.cpp:1023
void SetArcAngleAndEnd(const EDA_ANGLE &aAngle, bool aCheckNegativeAngle=false)
Set the end point from the angle center and start.
Definition: eda_shape.cpp:924
SHAPE_POLY_SET m_poly
Definition: eda_shape.h:442
int GetRectangleHeight() const
Definition: eda_shape.cpp:404
virtual int GetWidth() const
Definition: eda_shape.h:122
VECTOR2I getPosition() const
Definition: eda_shape.cpp:363
bool IsClockwiseArc() const
Definition: eda_shape.cpp:907
STROKE_PARAMS m_stroke
Definition: eda_shape.h:422
EDA_ANGLE m_segmentAngle
Definition: eda_shape.h:430
void setEditState(int aState)
Definition: eda_shape.h:406
void SetPolyPoints(const std::vector< VECTOR2I > &aPoints)
Definition: eda_shape.cpp:1451
void TransformShapeToPolygon(SHAPE_POLY_SET &aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=false) const
Convert the shape to a closed polygon.
Definition: eda_shape.cpp:1916
wxString getFriendlyName() const
Definition: eda_shape.cpp:939
VECTOR2I m_bezierC1
Definition: eda_shape.h:438
FILL_T m_fill
Definition: eda_shape.h:423
COLOR4D m_fillColor
Definition: eda_shape.h:424
void SetWidth(int aWidth)
Definition: eda_shape.h:121
EDA_ANGLE GetSegmentAngle() const
Definition: eda_shape.cpp:887
virtual void SetRight(int val)
Definition: eda_shape.h:206
void SetFillMode(FILL_T aFill)
Definition: eda_shape.h:113
virtual void SetIsProxyItem(bool aIsProxy=true)
Definition: eda_shape.h:96
long long int m_rectangleWidth
Definition: eda_shape.h:427
VECTOR2I m_bezierC2
Definition: eda_shape.h:439
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
Definition: eda_shape.cpp:146
bool IsPolyShapeValid() const
Definition: eda_shape.cpp:1571
int Compare(const EDA_SHAPE *aOther) const
Definition: eda_shape.cpp:1875
VECTOR2I GetArcMid() const
Definition: eda_shape.cpp:796
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:104
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
Definition: richio.h:93
EDA_MSG_PANEL items for displaying messages.
Definition: msgpanel.h:54
Interface for objects that can be serialized to Protobuf messages.
Definition: serializable.h:37
Represent a set of closed polygons.
void Fracture(POLYGON_MODE aFastMode)
Convert a set of polygons with holes to a single outline with "slits"/"fractures" connecting the oute...
int HoleCount(int aOutline) const
Returns the number of holes in a given outline.
int OutlineCount() const
Return the number of outlines in the set.
An abstract shape on 2D plane.
Definition: shape.h:126
Simple container to manage line stroke parameters.
Definition: stroke_params.h:79
int GetWidth() const
Definition: stroke_params.h:89
void SetWidth(int aWidth)
Definition: stroke_params.h:90
void SetColor(const KIGFX::COLOR4D &aColor)
Definition: stroke_params.h:96
KIGFX::COLOR4D GetColor() const
Definition: stroke_params.h:95
SHAPE_T
Definition: eda_shape.h:43
@ ARC
use RECTANGLE instead of RECT to avoid collision in a Windows header
FILL_T
Definition: eda_shape.h:56
@ FILLED_WITH_COLOR
@ FILLED_WITH_BG_BODYCOLOR
@ FILLED_SHAPE
FLIP_DIRECTION
Definition: mirror.h:27
#define DECLARE_ENUM_TO_WXANY(type)
Definition: property.h:729
const int scale
LINE_STYLE
Dashed line types.
Definition: stroke_params.h:46
VECTOR2I end
Definition: eda_shape.h:69
VECTOR2I center
Definition: eda_shape.h:70
VECTOR2I start
Definition: eda_shape.h:68
VECTOR2I mid
Definition: eda_shape.h:67
VECTOR2< int32_t > VECTOR2I
Definition: vector2d.h:691