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
3fa93818
Commit
3fa93818
authored
Feb 12, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplified makeIMAGE()
parent
2b215d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
25 deletions
+9
-25
specctra_export.cpp
pcbnew/specctra_export.cpp
+9
-25
No files found.
pcbnew/specctra_export.cpp
View file @
3fa93818
...
...
@@ -353,39 +353,23 @@ IMAGE* SPECCTRA_DB::makeIMAGE( MODULE* aModule )
pin
->
padstack_id
=
padstack
->
padstack_id
;
pin
->
pin_id
=
CONV_TO_UTF8
(
pad
->
ReturnStringPadName
()
);
#if 0
if( pad->m_Orient )
{
int angle = pad->m_Orient - aModule->m_Orient; // tenths of degrees
NORMALIZE_ANGLE_POS(angle);
pin->SetRotation( angle / 10.0 );
}
#else
{
wxPoint
pos
(
pad
->
m_Pos0
);
wxPoint
offset
(
pad
->
m_Offset
.
x
,
pad
->
m_Offset
.
y
);
int
angle
=
pad
->
m_Orient
-
aModule
->
m_Orient
;
// tenths of degrees
if
(
angle
)
{
NORMALIZE_ANGLE_POS
(
angle
);
pin
->
SetRotation
(
angle
/
10.0
);
}
}
#endif
wxPoint
pos
;
int
angle
=
pad
->
m_Orient
-
aModule
->
m_Orient
;
// tenths of degrees
if
(
angle
&&
(
pad
->
m_Offset
.
x
||
pad
->
m_Offset
.
y
)
)
{
wxPoint
offset
(
pad
->
m_Offset
.
x
,
pad
->
m_Offset
.
y
);
RotatePoint
(
&
offset
,
angle
);
pos
=
pad
->
m_Pos0
+
offset
;
}
else
{
// copper shape's position is hole position + offset
pos
=
pad
->
m_Pos0
+
pad
->
m_Offset
;
if
(
pad
->
m_Offset
.
x
||
pad
->
m_Offset
.
y
)
{
RotatePoint
(
&
offset
,
angle
);
}
}
pos
+=
offset
;
pin
->
SetVertex
(
mapPt
(
pos
)
);
}
}
...
...
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