Commit 5d3ef668 authored by dickelbeck's avatar dickelbeck

added GetLayerName()

parent 06011d6e
...@@ -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);
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment