Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
fffd3be6
Commit
fffd3be6
authored
Oct 11, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some issues with arcs (Arcs are a nightmare in graphic applications).
parent
c5668298
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
151 additions
and
110 deletions
+151
-110
class_GERBER.cpp
gerbview/class_GERBER.cpp
+2
-1
class_GERBER.h
gerbview/class_GERBER.h
+1
-1
class_gerber_draw_item.cpp
gerbview/class_gerber_draw_item.cpp
+6
-0
test-polygon_with_arc-fill.gbr
gerbview/gerber_test_files/test-polygon_with_arc-fill.gbr
+18
-0
rs274d.cpp
gerbview/rs274d.cpp
+123
-107
tracepcb.cpp
gerbview/tracepcb.cpp
+1
-1
No files found.
gerbview/class_GERBER.cpp
View file @
fffd3be6
...
...
@@ -57,7 +57,7 @@
GERBER
::
GERBER
(
WinEDA_GerberFrame
*
aParent
,
int
aLayer
)
{
m_Parent
=
aParent
;
m_
Layer
=
aLayer
;
// L
ayer Number
m_
GraphicLayer
=
aLayer
;
// Graphic l
ayer Number
m_Selected_Tool
=
FIRST_DCODE
;
...
...
@@ -157,6 +157,7 @@ void GERBER::ResetDefaultValues()
m_FilesPtr
=
0
;
m_PolygonFillMode
=
false
;
m_PolygonFillModeState
=
0
;
m_Selected_Tool
=
FIRST_DCODE
;
}
...
...
gerbview/class_GERBER.h
View file @
fffd3be6
...
...
@@ -33,7 +33,7 @@ public:
wxString
m_FileName
;
// Full File Name for this layer
wxString
m_ImageName
;
// Image name, from IN <name>* command
wxString
m_LayerName
;
// Layer name, from LN <name>* command
int
m_
Layer
;
// L
ayer Number
int
m_
GraphicLayer
;
// Graphic l
ayer Number
bool
m_LayerNegative
;
// true = Negative Layer
bool
m_GerbMetric
;
// false = Inches, true = metric
bool
m_Relative
;
// false = absolute Coord, true = relative Coord
...
...
gerbview/class_gerber_draw_item.cpp
View file @
fffd3be6
...
...
@@ -352,6 +352,12 @@ void GERBER_DRAW_ITEM::Draw( WinEDA_DrawPanel* aPanel, wxDC* aDC, int aDrawMode,
break
;
case
GBR_ARC
:
#if 0 // for arc debug only
GRLine( &aPanel->m_ClipBox, aDC, GetABPosition( m_Start ),
GetABPosition( m_ArcCentre ), 0, color );
GRLine( &aPanel->m_ClipBox, aDC, GetABPosition( m_End ),
GetABPosition( m_ArcCentre ), 0, color );
#endif
if
(
!
isFilled
)
{
GRArc1
(
&
aPanel
->
m_ClipBox
,
aDC
,
GetABPosition
(
m_Start
),
...
...
gerbview/gerber_test_files/test-polygon_with_arc-fill.gbr
0 → 100644
View file @
fffd3be6
G04 Draw a rectangle with a rounded right side
G04 Hand coded by Julian Lamb *
%MOIN*%
%FSLAX23Y23*%
%ADD10C,0.050*%
G04 Draw a rectangle with a rounded right side*
G36*
G01X0Y0D02*
X00200Y0D01*
G75*
G03X00200Y00200I0J00100D01*
G01X0Y00200D01*
G04 Do not close with a final line, so let gerbv automatically close*
G37*
M02*
gerbview/rs274d.cpp
View file @
fffd3be6
This diff is collapsed.
Click to expand it.
gerbview/tracepcb.cpp
View file @
fffd3be6
...
...
@@ -159,7 +159,7 @@ void Show_Items_DCode_Value( WinEDA_DrawPanel* aPanel, wxDC* aDC, BOARD* aPcb, i
if
(
gerb_item
->
m_DCode
<=
0
)
continue
;
if
(
gerb_item
->
m_Flashed
)
if
(
gerb_item
->
m_Flashed
||
gerb_item
->
m_Shape
==
GBR_ARC
)
pos
=
gerb_item
->
m_Start
;
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment