added GetLayerName()

This commit is contained in:
dickelbeck 2008-01-23 01:50:16 +00:00
parent 06011d6e6a
commit 5d3ef66843
2 changed files with 27 additions and 0 deletions

View File

@ -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()
{
static wxPoint dummy(0,0);

View File

@ -121,6 +121,21 @@ public:
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 */
int GetNumSegmTrack();