Browse Source

added GetLayerName()

pull/1/head
dickelbeck 18 years ago
parent
commit
5d3ef66843
  1. 12
      pcbnew/class_board.cpp
  2. 15
      pcbnew/class_board.h

12
pcbnew/class_board.cpp

@ -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);

15
pcbnew/class_board.h

@ -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();

Loading…
Cancel
Save