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
5d78a007
Commit
5d78a007
authored
Feb 17, 2015
by
Tomasz Włostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ClassOf() for DRAWSEGMENTs, PADs and PCB_TEXTs
parent
0879b457
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
class_drawsegment.h
pcbnew/class_drawsegment.h
+5
-0
class_pad.h
pcbnew/class_pad.h
+5
-0
class_pcb_text.h
pcbnew/class_pcb_text.h
+5
-0
No files found.
pcbnew/class_drawsegment.h
View file @
5d78a007
...
@@ -69,6 +69,11 @@ public:
...
@@ -69,6 +69,11 @@ public:
/// skip the linked list stuff, and parent
/// skip the linked list stuff, and parent
const
DRAWSEGMENT
&
operator
=
(
const
DRAWSEGMENT
&
rhs
);
const
DRAWSEGMENT
&
operator
=
(
const
DRAWSEGMENT
&
rhs
);
static
inline
bool
ClassOf
(
const
EDA_ITEM
*
aItem
)
{
return
aItem
&&
PCB_LINE_T
==
aItem
->
Type
();
}
void
SetWidth
(
int
aWidth
)
{
m_Width
=
aWidth
;
}
void
SetWidth
(
int
aWidth
)
{
m_Width
=
aWidth
;
}
int
GetWidth
()
const
{
return
m_Width
;
}
int
GetWidth
()
const
{
return
m_Width
;
}
...
...
pcbnew/class_pad.h
View file @
5d78a007
...
@@ -94,6 +94,11 @@ public:
...
@@ -94,6 +94,11 @@ public:
///< used for edge board connectors
///< used for edge board connectors
static
LSET
UnplatedHoleMask
();
///< layer set for a mechanical unplated through hole pad
static
LSET
UnplatedHoleMask
();
///< layer set for a mechanical unplated through hole pad
static
inline
bool
ClassOf
(
const
EDA_ITEM
*
aItem
)
{
return
aItem
&&
PCB_PAD_T
==
aItem
->
Type
();
}
void
Copy
(
D_PAD
*
source
);
void
Copy
(
D_PAD
*
source
);
D_PAD
*
Next
()
const
{
return
static_cast
<
D_PAD
*>
(
Pnext
);
}
D_PAD
*
Next
()
const
{
return
static_cast
<
D_PAD
*>
(
Pnext
);
}
...
...
pcbnew/class_pcb_text.h
View file @
5d78a007
...
@@ -49,6 +49,11 @@ public:
...
@@ -49,6 +49,11 @@ public:
~
TEXTE_PCB
();
~
TEXTE_PCB
();
static
inline
bool
ClassOf
(
const
EDA_ITEM
*
aItem
)
{
return
aItem
&&
PCB_TEXT_T
==
aItem
->
Type
();
}
virtual
const
wxPoint
&
GetPosition
()
const
virtual
const
wxPoint
&
GetPosition
()
const
{
{
return
m_Pos
;
return
m_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