2007-08-09 01:41:30 +00:00
|
|
|
/*************************************************************************/
|
|
|
|
/* classe EQUIPOT: definition des elements relatifs aux equipotentielles */
|
|
|
|
/*************************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Representation des descriptions des equipotentielles */
|
|
|
|
|
2007-08-23 04:28:46 +00:00
|
|
|
class EQUIPOT : public BOARD_ITEM
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2007-10-13 06:18:44 +00:00
|
|
|
private:
|
|
|
|
int m_NetCode; // numero de code interne du net
|
|
|
|
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
public:
|
2007-08-09 01:41:30 +00:00
|
|
|
wxString m_Netname; // nom du net
|
|
|
|
int status; // no route, hight light...
|
|
|
|
int m_NbNodes; // nombre de pads appartenant au net
|
|
|
|
int m_NbLink; // nombre de chevelus
|
|
|
|
int m_NbNoconn; // nombre de chevelus actifs
|
|
|
|
int m_Masque_Layer; // couches interdites (bit 0 = layer 0...)
|
|
|
|
int m_Masque_Plan; // couches mises en plan de cuivre
|
|
|
|
int m_ForceWidth; // specific width (O = default width)
|
|
|
|
LISTE_PAD* m_PadzoneStart; // pointeur sur debut de liste pads du net
|
|
|
|
LISTE_PAD* m_PadzoneEnd; // pointeur sur fin de liste pads du net
|
|
|
|
CHEVELU* m_RatsnestStart; // pointeur sur debut de liste ratsnests du net
|
|
|
|
CHEVELU* m_RatsnestEnd; // pointeur sur fin de liste ratsnests du net
|
|
|
|
|
2007-08-23 04:28:46 +00:00
|
|
|
EQUIPOT( BOARD_ITEM* StructFather );
|
|
|
|
~EQUIPOT();
|
2007-08-09 01:41:30 +00:00
|
|
|
|
|
|
|
/* Effacement memoire de la structure */
|
2007-09-01 12:00:30 +00:00
|
|
|
void UnLink();
|
2007-08-09 01:41:30 +00:00
|
|
|
|
|
|
|
/* Readind and writing data on files */
|
|
|
|
int ReadEquipotDescr( FILE* File, int* LineNum );
|
|
|
|
int WriteEquipotDescr( FILE* File );
|
|
|
|
|
2007-10-13 06:18:44 +00:00
|
|
|
/**
|
|
|
|
* Function GetNet
|
|
|
|
* @return int - the netcode
|
|
|
|
*/
|
|
|
|
int GetNet() const { return m_NetCode; }
|
|
|
|
void SetNet( int aNetCode ) { m_NetCode = aNetCode; }
|
|
|
|
|
2007-08-09 01:41:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function GetClass
|
|
|
|
* returns the class name.
|
|
|
|
* @return wxString
|
|
|
|
*/
|
|
|
|
wxString GetClass() const
|
|
|
|
{
|
|
|
|
return wxT("NET");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-09-13 11:28:58 +00:00
|
|
|
#if defined(DEBUG)
|
2007-08-09 01:41:30 +00:00
|
|
|
/**
|
|
|
|
* Function Show
|
|
|
|
* is used to output the object tree, currently for debugging only.
|
|
|
|
* @param nestLevel An aid to prettier tree indenting, and is the level
|
|
|
|
* of nesting of this object within the overall tree.
|
|
|
|
* @param os The ostream& to output to.
|
|
|
|
*/
|
|
|
|
virtual void Show( int nestLevel, std::ostream& os );
|
|
|
|
#endif
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|