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 The 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,
59 FILLED_WITH_BG_BODYCOLOR, //< Fill with background body color.
60 FILLED_WITH_COLOR //< Fill with a separate color.
61};
62
63
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
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 virtual 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
225 void SetArcAngleAndEnd( const EDA_ANGLE& aAngle, bool aCheckNegativeAngle = false );
226
227 EDA_ANGLE GetArcAngle() const;
228
230
236 bool EndsSwapped() const { return m_endsSwapped; }
237
238 // Some attributes are read only, since they are derived from m_Start, m_End, and m_Angle.
239 // No Set...() function for these attributes.
240
241 VECTOR2I GetArcMid() const;
242 std::vector<VECTOR2I> GetRectCorners() const;
243
248 void CalcArcAngles( EDA_ANGLE& aStartAngle, EDA_ANGLE& aEndAngle ) const;
249
250 int GetRadius() const;
251
258 void SetArcGeometry( const VECTOR2I& aStart, const VECTOR2I& aMid, const VECTOR2I& aEnd );
259
271 void SetCachedArcData( const VECTOR2I& aStart, const VECTOR2I& aMid, const VECTOR2I& aEnd,
272 const VECTOR2I& aCenter );
273
274 const std::vector<VECTOR2I>& GetBezierPoints() const { return m_bezierPoints; }
275
283 void DupPolyPointsList( std::vector<VECTOR2I>& aBuffer ) const;
284
288 int GetPointCount() const;
289
290 // Accessors to the polygonal shape
292 const SHAPE_POLY_SET& GetPolyShape() const { return m_poly; }
293
297 bool IsPolyShapeValid() const;
298
299 void SetPolyShape( const SHAPE_POLY_SET& aShape )
300 {
301 m_poly = aShape;
302
303 for( int ii = 0; ii < m_poly.OutlineCount(); ++ii )
304 {
305 if( m_poly.HoleCount( ii ) )
306 {
308 break;
309 }
310 }
311 }
312
313 void SetPolyPoints( const std::vector<VECTOR2I>& aPoints );
314
323 void RebuildBezierToSegmentsPointsList( int aMaxError );
324
333 virtual std::vector<SHAPE*> MakeEffectiveShapes( bool aEdgeOnly = false ) const
334 {
335 return makeEffectiveShapes( aEdgeOnly );
336 }
337
338 void ShapeGetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList );
339
340 void SetLength( const double& aLength );
341
342 void SetRectangleHeight( const int& aHeight );
343
344 void SetRectangleWidth( const int& aWidth );
345
346 void SetRectangle( const long long int& aHeight, const long long int& aWidth );
347
348 void SetSegmentAngle( const EDA_ANGLE& aAngle );
349
350 bool IsClockwiseArc() const;
351
355 double GetLength() const;
356
357 int GetRectangleHeight() const;
358 int GetRectangleWidth() const;
359
372 void TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, int aClearance, int aError,
373 ERROR_LOC aErrorLoc, bool ignoreLineWidth = false ) const;
374
375 int Compare( const EDA_SHAPE* aOther ) const;
376
377 double Similarity( const EDA_SHAPE& aOther ) const;
378
379 bool operator==( const EDA_SHAPE& aOther ) const;
380
381protected:
382 wxString getFriendlyName() const;
383
384 void setPosition( const VECTOR2I& aPos );
385 VECTOR2I getPosition() const;
386
387 virtual void setFilled( bool aFlag )
388 {
389 m_fill = aFlag ? FILL_T::FILLED_SHAPE : FILL_T::NO_FILL;
390 }
391
392 void move( const VECTOR2I& aMoveVector );
393 void rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle );
394 void flip( const VECTOR2I& aCentre, FLIP_DIRECTION aFlipDirection );
395 void scale( double aScale );
396
397 const BOX2I getBoundingBox() const;
398
399 void computeArcBBox( BOX2I& aBBox ) const;
400
401 bool hitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const;
402 bool hitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const;
403
404 const std::vector<VECTOR2I> buildBezierToSegmentsPointsList( int aMaxError ) const;
405
406 void beginEdit( const VECTOR2I& aStartPoint );
407 bool continueEdit( const VECTOR2I& aPosition );
408 void calcEdit( const VECTOR2I& aPosition );
409
415 void endEdit( bool aClosed = true );
416 void setEditState( int aState ) { m_editState = aState; }
417
428 // fixme: move to shape_compound
429 std::vector<SHAPE*> makeEffectiveShapes( bool aEdgeOnly, bool aLineChainOnly = false ) const;
430
431protected:
432 bool m_endsSwapped; // true if start/end were swapped e.g. SetArcAngleAndEnd
433 SHAPE_T m_shape; // Shape: line, Circle, Arc
434 STROKE_PARAMS m_stroke; // Line style, width, etc.
437
438 long long int m_rectangleHeight;
439 long long int m_rectangleWidth;
440
443
444 VECTOR2I m_start; // Line start point or Circle center
445 VECTOR2I m_end; // Line end point or Circle 3 o'clock point
446
447 VECTOR2I m_arcCenter; // Used only for Arcs: arc end point
448 ARC_MID m_arcMidData; // Used to store originating data
449
450 VECTOR2I m_bezierC1; // Bezier Control Point 1
451 VECTOR2I m_bezierC2; // Bezier Control Point 2
452
453 std::vector<VECTOR2I> m_bezierPoints;
454 SHAPE_POLY_SET m_poly; // Stores the S_POLYGON shape
455
457 bool m_proxyItem; // A shape storing proxy information (ie: a pad
458 // number box, thermal spoke template, etc.)
459};
460
461#ifndef SWIG
464#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:912
SHAPE_T m_shape
Definition: eda_shape.h:433
void SetStartX(int x)
Definition: eda_shape.h:153
bool m_proxyItem
Definition: eda_shape.h:457
bool m_endsSwapped
Definition: eda_shape.h:432
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:792
VECTOR2I getCenter() const
Definition: eda_shape.cpp:766
int GetStartY() const
Definition: eda_shape.h:138
void SetLength(const double &aLength)
Definition: eda_shape.cpp:433
int m_editState
Definition: eda_shape.h:456
virtual VECTOR2I GetTopLeft() const
Definition: eda_shape.h:201
void rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle)
Definition: eda_shape.cpp:635
const std::vector< VECTOR2I > buildBezierToSegmentsPointsList(int aMaxError) const
Definition: eda_shape.cpp:753
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:438
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:419
void SetLineStyle(const LINE_STYLE aStyle)
Definition: eda_shape.cpp:2055
void calcEdit(const VECTOR2I &aPosition)
Definition: eda_shape.cpp:1680
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:333
SHAPE_POLY_SET & GetPolyShape()
Definition: eda_shape.h:291
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:824
void ShapeGetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
Definition: eda_shape.cpp:982
bool operator==(const EDA_SHAPE &aOther) const
Definition: eda_shape.cpp:2070
int GetRadius() const
Definition: eda_shape.cpp:840
SHAPE_T GetShape() const
Definition: eda_shape.h:132
void SetPolyShape(const SHAPE_POLY_SET &aShape)
Definition: eda_shape.h:299
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:446
VECTOR2I m_arcCenter
Definition: eda_shape.h:447
double m_segmentLength
Definition: eda_shape.h:441
void SetCenterX(int x)
Definition: eda_shape.h:165
virtual void SetFilled(bool aFlag)
Definition: eda_shape.h:108
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:1646
wxString ShowShape() const
Definition: eda_shape.cpp:313
ARC_MID m_arcMidData
Definition: eda_shape.h:448
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:1479
bool hitTest(const VECTOR2I &aPosition, int aAccuracy=0) const
Definition: eda_shape.cpp:1095
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:863
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:739
void flip(const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection)
Definition: eda_shape.cpp:696
void beginEdit(const VECTOR2I &aStartPoint)
Definition: eda_shape.cpp:1605
VECTOR2I m_start
Definition: eda_shape.h:444
int GetPointCount() const
Definition: eda_shape.cpp:1597
const VECTOR2I & GetEnd() const
Return the ending point of the graphic.
Definition: eda_shape.h:174
bool IsClosed() const
Definition: eda_shape.cpp:505
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:1573
LINE_STYLE GetLineStyle() const
Definition: eda_shape.cpp:2061
void endEdit(bool aClosed=true)
Finish editing the shape.
Definition: eda_shape.cpp:1834
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:476
void SetShape(SHAPE_T aShape)
Definition: eda_shape.h:131
void SwapShape(EDA_SHAPE *aImage)
Definition: eda_shape.cpp:1871
std::vector< VECTOR2I > GetRectCorners() const
Definition: eda_shape.cpp:1404
void SetSegmentAngle(const EDA_ANGLE &aAngle)
Definition: eda_shape.cpp:491
std::vector< VECTOR2I > m_bezierPoints
Definition: eda_shape.h:453
void setPosition(const VECTOR2I &aPos)
Definition: eda_shape.cpp:357
virtual void setFilled(bool aFlag)
Definition: eda_shape.h:387
const std::vector< VECTOR2I > & GetBezierPoints() const
Definition: eda_shape.h:274
virtual bool IsProxyItem() const
Definition: eda_shape.h:95
void computeArcBBox(BOX2I &aBBox) const
Definition: eda_shape.cpp:1419
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:236
void SetRectangleWidth(const int &aWidth)
Definition: eda_shape.cpp:461
const SHAPE_POLY_SET & GetPolyShape() const
Definition: eda_shape.h:292
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:873
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:2115
const VECTOR2I & GetBezierC1() const
Definition: eda_shape.h:210
VECTOR2I m_end
Definition: eda_shape.h:445
const BOX2I getBoundingBox() const
Definition: eda_shape.cpp:1041
void SetArcAngleAndEnd(const EDA_ANGLE &aAngle, bool aCheckNegativeAngle=false)
Set the end point from the angle center and start.
Definition: eda_shape.cpp:940
SHAPE_POLY_SET m_poly
Definition: eda_shape.h:454
int GetRectangleHeight() const
Definition: eda_shape.cpp:405
virtual int GetWidth() const
Definition: eda_shape.h:122
VECTOR2I getPosition() const
Definition: eda_shape.cpp:363
bool IsClockwiseArc() const
Definition: eda_shape.cpp:923
STROKE_PARAMS m_stroke
Definition: eda_shape.h:434
EDA_ANGLE m_segmentAngle
Definition: eda_shape.h:442
void setEditState(int aState)
Definition: eda_shape.h:416
void SetPolyPoints(const std::vector< VECTOR2I > &aPoints)
Definition: eda_shape.cpp:1469
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:1935
wxString getFriendlyName() const
Definition: eda_shape.cpp:955
VECTOR2I m_bezierC1
Definition: eda_shape.h:450
FILL_T m_fill
Definition: eda_shape.h:435
COLOR4D m_fillColor
Definition: eda_shape.h:436
void SetWidth(int aWidth)
Definition: eda_shape.h:121
EDA_ANGLE GetSegmentAngle() const
Definition: eda_shape.cpp:903
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:439
VECTOR2I m_bezierC2
Definition: eda_shape.h:451
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:1590
int Compare(const EDA_SHAPE *aOther) const
Definition: eda_shape.cpp:1894
VECTOR2I GetArcMid() const
Definition: eda_shape.cpp:810
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()
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:93
int GetWidth() const
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
KIGFX::COLOR4D GetColor() const
SHAPE_T
Definition: eda_shape.h:43
@ RECTANGLE
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
Fill with object color.
FLIP_DIRECTION
Definition: mirror.h:27
#define DECLARE_ENUM_TO_WXANY(type)
Definition: property.h:746
const int scale
LINE_STYLE
Dashed line types.
Definition: stroke_params.h:46
Holding struct to keep originating midpoint.
Definition: eda_shape.h:66
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:695