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
aa509dda
Commit
aa509dda
authored
Jul 01, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes in common_plotDFX.cpp to avoid compil warnings
parent
2cd70d79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
common_plotDXF_functions.cpp
common/common_plotDXF_functions.cpp
+8
-4
No files found.
common/common_plotDXF_functions.cpp
View file @
aa509dda
...
...
@@ -43,8 +43,9 @@ void DXF_Plotter::start_plot( FILE* fout )
fprintf
(
output_file
,
"0
\n
TABLE
\n
2
\n
LAYER
\n
70
\n
%d
\n
"
,
NBCOLOR
);
for
(
int
i
=
0
;
i
<
NBCOLOR
;
i
++
)
{
wxString
cname
=
ColorRefs
[
i
].
m_Name
;
fprintf
(
output_file
,
"0
\n
LAYER
\n
2
\n
%s
\n
70
\n
0
\n
62
\n
%d
\n
6
\n
CONTINUOUS
\n
"
,
CONV_TO_UTF8
(
ColorRefs
[
i
].
m_N
ame
),
i
+
1
);
CONV_TO_UTF8
(
cn
ame
),
i
+
1
);
}
/* End of layer table, begin entities */
...
...
@@ -104,8 +105,9 @@ void DXF_Plotter::circle( wxPoint centre, int diameter, FILL_T fill, int width )
user_to_device_coordinates
(
centre
);
if
(
rayon
>
0
)
{
wxString
cname
=
ColorRefs
[
current_color
].
m_Name
;
fprintf
(
output_file
,
"0
\n
CIRCLE
\n
8
\n
%s
\n
10
\n
%d.0
\n
20
\n
%d.0
\n
40
\n
%g
\n
"
,
CONV_TO_UTF8
(
ColorRefs
[
current_color
].
m_N
ame
),
CONV_TO_UTF8
(
cn
ame
),
centre
.
x
,
centre
.
y
,
rayon
);
}
}
...
...
@@ -161,8 +163,9 @@ void DXF_Plotter::pen_to( wxPoint pos, char plume )
if
(
pen_lastpos
!=
pos
&&
plume
==
'D'
)
{
/* DXF LINE */
wxString
cname
=
ColorRefs
[
current_color
].
m_Name
;
fprintf
(
output_file
,
"0
\n
LINE
\n
8
\n
%s
\n
10
\n
%d.0
\n
20
\n
%d.0
\n
11
\n
%d.0
\n
21
\n
%d.0
\n
"
,
CONV_TO_UTF8
(
ColorRefs
[
current_color
].
m_N
ame
),
CONV_TO_UTF8
(
cn
ame
),
pen_lastpos
.
x
,
pen_lastpos
.
y
,
pos
.
x
,
pos
.
y
);
}
pen_lastpos
=
pos
;
...
...
@@ -218,8 +221,9 @@ void DXF_Plotter::arc( wxPoint centre, int StAngle, int EndAngle, int rayon,
rayon
=
user_to_device_size
(
rayon
);
/* DXF ARC */
wxString
cname
=
ColorRefs
[
current_color
].
m_Name
;
fprintf
(
output_file
,
"0
\n
ARC
\n
8
\n
%s
\n
10
\n
%d.0
\n
20
\n
%d.0
\n
40
\n
%d.0
\n
50
\n
%d.0
\n
51
\n
%d.0
\n
"
,
CONV_TO_UTF8
(
ColorRefs
[
current_color
].
m_N
ame
),
CONV_TO_UTF8
(
cn
ame
),
centre
.
x
,
centre
.
y
,
rayon
,
StAngle
/
10
,
EndAngle
/
10
);
}
...
...
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