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
8e90a616
Commit
8e90a616
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rotate support for pads.
parent
583de985
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
class_pad.cpp
pcbnew/class_pad.cpp
+7
-0
class_pad.h
pcbnew/class_pad.h
+1
-0
No files found.
pcbnew/class_pad.cpp
View file @
8e90a616
...
...
@@ -829,6 +829,13 @@ int D_PAD::Compare( const D_PAD* padref, const D_PAD* padcmp )
}
void
D_PAD
::
Rotate
(
const
wxPoint
&
aRotCentre
,
double
aAngle
)
{
RotatePoint
(
&
m_Pos
,
aRotCentre
,
aAngle
);
m_Orient
+=
aAngle
;
}
wxString
D_PAD
::
ShowPadShape
()
const
{
switch
(
GetShape
()
)
...
...
pcbnew/class_pad.h
View file @
8e90a616
...
...
@@ -400,6 +400,7 @@ public:
SetLocalCoord
();
}
void
Rotate
(
const
wxPoint
&
aRotCentre
,
double
aAngle
);
wxString
GetSelectMenuText
()
const
;
...
...
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