kicad/pcbnew/class_equipot.h

79 lines
2.5 KiB
C
Raw Normal View History

2007-08-09 01:41:30 +00:00
/*************************************************************************/
/* classe EQUIPOT: definition des elements relatifs aux equipotentielles */
/*************************************************************************/
/* Representation des descriptions des equipotentielles */
2007-08-23 04:28:46 +00:00
class EQUIPOT : public BOARD_ITEM
{
2007-10-13 06:18:44 +00:00
private:
int m_NetCode; // numero de code interne du net
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
2007-10-31 14:14:21 +00:00
EQUIPOT* Next() { return (EQUIPOT*) Pnext; }
2007-08-09 01:41:30 +00:00
/* Effacement memoire de la structure */
2007-10-31 14:14:21 +00:00
void UnLink();
2007-08-09 01:41:30 +00:00
/* Readind and writing data on files */
2007-10-31 14:14:21 +00:00
int ReadEquipotDescr( FILE* File, int* LineNum );
2007-08-09 01:41:30 +00:00
2007-10-30 21:30:58 +00:00
/**
* Function Save
2007-10-31 14:14:21 +00:00
* writes the data structures for this object out to a FILE in "*.brd" format.
2007-10-30 21:30:58 +00:00
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
bool Save( FILE* aFile ) const;
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");
}
#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
};