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
5d3ef668
Commit
5d3ef668
authored
Jan 23, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added GetLayerName()
parent
06011d6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
class_board.cpp
pcbnew/class_board.cpp
+12
-0
class_board.h
pcbnew/class_board.h
+15
-0
No files found.
pcbnew/class_board.cpp
View file @
5d3ef668
...
@@ -78,6 +78,18 @@ BOARD::~BOARD()
...
@@ -78,6 +78,18 @@ BOARD::~BOARD()
}
}
wxString
BOARD
::
GetLayerName
(
int
aLayerIndex
)
const
{
return
ReturnPcbLayerName
(
aLayerIndex
,
true
);
}
int
BOARD
::
GetCopperLayerCount
()
const
{
return
m_BoardSettings
->
m_CopperLayerCount
;
}
wxPoint
&
BOARD
::
GetPosition
()
wxPoint
&
BOARD
::
GetPosition
()
{
{
static
wxPoint
dummy
(
0
,
0
);
static
wxPoint
dummy
(
0
,
0
);
...
...
pcbnew/class_board.h
View file @
5d3ef668
...
@@ -121,6 +121,21 @@ public:
...
@@ -121,6 +121,21 @@ public:
return
(
int
)
m_markers
.
size
();
return
(
int
)
m_markers
.
size
();
}
}
/**
* Function GetCopperLayerCount
* @return int - The number of copper layers in the BOARD.
*/
int
GetCopperLayerCount
()
const
;
/**
* Function GetLayerName
* returns the name of the requested layer. Hopefully layer names will
* be stored in the BOARD. This function anticipates that.
*
* @param aLayerIndex A layer index, like COPPER_LAYER_N, etc.
* @return wxString - the layer name.
*/
wxString
GetLayerName
(
int
aLayerIndex
)
const
;
/* Routines de calcul des nombres de segments pistes et zones */
/* Routines de calcul des nombres de segments pistes et zones */
int
GetNumSegmTrack
();
int
GetNumSegmTrack
();
...
...
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