Loading include/board_item_struct.h +21 −0 Original line number Original line Diff line number Diff line Loading @@ -6,6 +6,20 @@ #define BOARD_ITEM_STRUCT_H #define BOARD_ITEM_STRUCT_H /* Forme des segments (pistes, contours ..) ( parametre .shape ) */ enum Track_Shapes { S_SEGMENT = 0, /* segment rectiligne */ S_RECT, /* segment forme rect (i.e. bouts non arrondis) */ S_ARC, /* segment en arc de cercle (bouts arrondis)*/ S_CIRCLE, /* segment en cercle (anneau)*/ S_ARC_RECT, /* segment en arc de cercle (bouts droits) (GERBER)*/ S_SPOT_OVALE, /* spot ovale (for GERBER)*/ S_SPOT_CIRCLE, /* spot rond (for GERBER)*/ S_SPOT_RECT, /* spot rect (for GERBER)*/ S_POLYGON /* polygon shape */ }; /** /** * Class BOARD_ITEM * Class BOARD_ITEM * is a base class for any item which can be embedded within the BOARD * is a base class for any item which can be embedded within the BOARD Loading Loading @@ -135,6 +149,13 @@ public: const char** MenuIcon() const; const char** MenuIcon() const; /** * Function ShowShape * converts the enum Track_Shapes integer value to a wxString. */ static wxString ShowShape( Track_Shapes aShape ); /** /** * Function Save * Function Save * writes the data structures for this object out to a FILE in "*.brd" format. * writes the data structures for this object out to a FILE in "*.brd" format. Loading Loading
include/board_item_struct.h +21 −0 Original line number Original line Diff line number Diff line Loading @@ -6,6 +6,20 @@ #define BOARD_ITEM_STRUCT_H #define BOARD_ITEM_STRUCT_H /* Forme des segments (pistes, contours ..) ( parametre .shape ) */ enum Track_Shapes { S_SEGMENT = 0, /* segment rectiligne */ S_RECT, /* segment forme rect (i.e. bouts non arrondis) */ S_ARC, /* segment en arc de cercle (bouts arrondis)*/ S_CIRCLE, /* segment en cercle (anneau)*/ S_ARC_RECT, /* segment en arc de cercle (bouts droits) (GERBER)*/ S_SPOT_OVALE, /* spot ovale (for GERBER)*/ S_SPOT_CIRCLE, /* spot rond (for GERBER)*/ S_SPOT_RECT, /* spot rect (for GERBER)*/ S_POLYGON /* polygon shape */ }; /** /** * Class BOARD_ITEM * Class BOARD_ITEM * is a base class for any item which can be embedded within the BOARD * is a base class for any item which can be embedded within the BOARD Loading Loading @@ -135,6 +149,13 @@ public: const char** MenuIcon() const; const char** MenuIcon() const; /** * Function ShowShape * converts the enum Track_Shapes integer value to a wxString. */ static wxString ShowShape( Track_Shapes aShape ); /** /** * Function Save * Function Save * writes the data structures for this object out to a FILE in "*.brd" format. * writes the data structures for this object out to a FILE in "*.brd" format. Loading