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
6167f5fc
Commit
6167f5fc
authored
Oct 07, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More about copper zones filled without grid (by polygons) - work still in progress
parent
3683ab74
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
5 deletions
+30
-5
change_log.txt
change_log.txt
+1
-1
class_zone.cpp
pcbnew/class_zone.cpp
+7
-1
pcbplot.h
pcbnew/pcbplot.h
+2
-0
plot_rtn.cpp
pcbnew/plot_rtn.cpp
+2
-3
plotgerb.cpp
pcbnew/plotgerb.cpp
+9
-0
plotps.cpp
pcbnew/plotps.cpp
+9
-0
No files found.
change_log.txt
View file @
6167f5fc
...
@@ -9,7 +9,7 @@ email address.
...
@@ -9,7 +9,7 @@ email address.
================================================================================
================================================================================
+pcbnew:
+pcbnew:
More about copper zones filled without grid (by polygons)
More about copper zones filled without grid (by polygons)
Currently for eyes and tests only.
Currently for eyes and tests only
(work in progress)
.
now working
now working
thermal reliefs.
thermal reliefs.
texts on copper zones.
texts on copper zones.
...
...
pcbnew/class_zone.cpp
View file @
6167f5fc
...
@@ -392,6 +392,7 @@ void ZONE_CONTAINER::DrawFilledArea( WinEDA_DrawPanel* panel,
...
@@ -392,6 +392,7 @@ void ZONE_CONTAINER::DrawFilledArea( WinEDA_DrawPanel* panel,
{
{
static
int
*
CornersBuffer
=
NULL
;
static
int
*
CornersBuffer
=
NULL
;
static
unsigned
CornersBufferSize
=
0
;
static
unsigned
CornersBufferSize
=
0
;
bool
sketch_mode
=
false
;
// true to show areas outlines only (test and debug purposes)
if
(
DC
==
NULL
)
if
(
DC
==
NULL
)
return
;
return
;
...
@@ -454,7 +455,12 @@ void ZONE_CONTAINER::DrawFilledArea( WinEDA_DrawPanel* panel,
...
@@ -454,7 +455,12 @@ void ZONE_CONTAINER::DrawFilledArea( WinEDA_DrawPanel* panel,
corners_count
++
;
corners_count
++
;
if
(
corner
->
end_contour
)
if
(
corner
->
end_contour
)
{
// Draw the current filled area
{
// Draw the current filled area
GRPoly
(
&
panel
->
m_ClipBox
,
DC
,
corners_count
,
CornersBuffer
,
true
,
0
,
color
,
color
);
if
(
sketch_mode
)
GRClosedPoly
(
&
panel
->
m_ClipBox
,
DC
,
corners_count
,
CornersBuffer
,
false
,
0
,
color
,
color
);
else
GRPoly
(
&
panel
->
m_ClipBox
,
DC
,
corners_count
,
CornersBuffer
,
true
,
0
,
color
,
color
);
corners_count
=
0
;
corners_count
=
0
;
ii
=
0
;
ii
=
0
;
}
}
...
...
pcbnew/pcbplot.h
View file @
6167f5fc
...
@@ -161,6 +161,8 @@ void PlotMirePcb( MIREPCB* PtMire, int format_plot,int masque_layer );
...
@@ -161,6 +161,8 @@ void PlotMirePcb( MIREPCB* PtMire, int format_plot,int masque_layer );
void
Plot_1_EdgeModule
(
int
format_plot
,
EDGE_MODULE
*
PtEdge
);
void
Plot_1_EdgeModule
(
int
format_plot
,
EDGE_MODULE
*
PtEdge
);
void
PlotFilledAreas
(
ZONE_CONTAINER
*
aZone
,
int
aFormat
);
/* PLOTGERB.CPP */
/* PLOTGERB.CPP */
void
PlotGERBERLine
(
wxPoint
start
,
wxPoint
end
,
int
width
);
void
PlotGERBERLine
(
wxPoint
start
,
wxPoint
end
,
int
width
);
void
PlotCircle_GERBER
(
wxPoint
centre
,
int
rayon
,
int
width
);
void
PlotCircle_GERBER
(
wxPoint
centre
,
int
rayon
,
int
width
);
...
...
pcbnew/plot_rtn.cpp
View file @
6167f5fc
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
/* Fonctions locales */
/* Fonctions locales */
static
void
Plot_Edges_Modules
(
BOARD
*
pcb
,
int
format_plot
,
int
masque_layer
);
static
void
Plot_Edges_Modules
(
BOARD
*
pcb
,
int
format_plot
,
int
masque_layer
);
static
void
PlotTextModule
(
TEXTE_MODULE
*
pt_texte
);
static
void
PlotTextModule
(
TEXTE_MODULE
*
pt_texte
);
static
void
PlotFilledAreas
(
ZONE_CONTAINER
*
aZone
,
int
aFormat
);
/**********************************************************/
/**********************************************************/
...
@@ -299,8 +298,8 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( int format_plot,
...
@@ -299,8 +298,8 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( int format_plot,
for
(
int
ii
=
0
;
ii
<
m_Pcb
->
GetAreaCount
();
ii
++
)
for
(
int
ii
=
0
;
ii
<
m_Pcb
->
GetAreaCount
();
ii
++
)
{
{
ZONE_CONTAINER
*
edge_zone
=
m_Pcb
->
GetArea
(
ii
);
ZONE_CONTAINER
*
edge_zone
=
m_Pcb
->
GetArea
(
ii
);
if
(
(
(
1
<<
edge_zone
->
GetLayer
())
&
masque_layer
)
==
0
)
if
(
(
(
1
<<
edge_zone
->
GetLayer
())
&
masque_layer
)
==
0
)
continue
;
continue
;
PlotFilledAreas
(
edge_zone
,
format_plot
);
PlotFilledAreas
(
edge_zone
,
format_plot
);
}
}
...
...
pcbnew/plotgerb.cpp
View file @
6167f5fc
...
@@ -350,6 +350,15 @@ void WinEDA_BasePcbFrame::Plot_Layer_GERBER( FILE* File, int masque_layer,
...
@@ -350,6 +350,15 @@ void WinEDA_BasePcbFrame::Plot_Layer_GERBER( FILE* File, int masque_layer,
msg
.
Printf
(
wxT
(
"%d"
),
nb_items
);
msg
.
Printf
(
wxT
(
"%d"
),
nb_items
);
Affiche_1_Parametre
(
this
,
72
,
wxEmptyString
,
msg
,
YELLOW
);
Affiche_1_Parametre
(
this
,
72
,
wxEmptyString
,
msg
,
YELLOW
);
}
}
/* Plot filled ares */
for
(
int
ii
=
0
;
ii
<
m_Pcb
->
GetAreaCount
();
ii
++
)
{
ZONE_CONTAINER
*
edge_zone
=
m_Pcb
->
GetArea
(
ii
);
if
(
(
(
1
<<
edge_zone
->
GetLayer
())
&
masque_layer
)
==
0
)
continue
;
PlotFilledAreas
(
edge_zone
,
PLOT_FORMAT_GERBER
);
}
}
}
...
...
pcbnew/plotps.cpp
View file @
6167f5fc
...
@@ -425,6 +425,15 @@ void WinEDA_BasePcbFrame::Plot_Layer_PS( FILE* File, int masque_layer,
...
@@ -425,6 +425,15 @@ void WinEDA_BasePcbFrame::Plot_Layer_PS( FILE* File, int masque_layer,
Affiche_1_Parametre
(
this
,
64
,
wxEmptyString
,
msg
,
YELLOW
);
Affiche_1_Parametre
(
this
,
64
,
wxEmptyString
,
msg
,
YELLOW
);
}
}
/* Plot filled ares */
for
(
int
ii
=
0
;
ii
<
m_Pcb
->
GetAreaCount
();
ii
++
)
{
ZONE_CONTAINER
*
edge_zone
=
m_Pcb
->
GetArea
(
ii
);
if
(
(
(
1
<<
edge_zone
->
GetLayer
())
&
masque_layer
)
==
0
)
continue
;
PlotFilledAreas
(
edge_zone
,
PLOT_FORMAT_POST
);
}
// Trace des trous de percage
// Trace des trous de percage
if
(
modetrace
==
FILLED
)
if
(
modetrace
==
FILLED
)
PrintDrillMark
(
m_Pcb
);
PrintDrillMark
(
m_Pcb
);
...
...
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