Commit 738d00ba authored by CHARRAS's avatar CHARRAS
Browse files

more about new zone handling: fill zones now exists

parent cbea44a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -554,7 +554,7 @@ enum main_id {
	ID_POPUP_PCB_DELETE_ZONE_CORNER,
	ID_POPUP_PCB_STOP_CURRENT_EDGE_ZONE,
	ID_POPUP_PCB_DELETE_EDGE_ZONE,
	ID_POPUP_PCB_DELETE_ZONE_LIMIT,
	ID_POPUP_PCB_FILL_ALL_ZONES,
	ID_POPUP_PCB_FILL_ZONE,
	ID_POPUP_PCB_DELETE_ZONE_CONTAINER,
	ID_POPUP_PCB_PLACE_ZONE_CORNER,
+31 −6
Original line number Diff line number Diff line
@@ -748,7 +748,15 @@ public:
    bool                Genere_Pad_Connexion( wxDC* DC, int layer );

    // zone handling
    void                Delete_Zone( wxDC* DC, SEGZONE* Track );
/** Function Delete_Zone
 * Remove the zone which include the segment aZone, or the zone which have the given time stamp.
 *  A zone is a group of segments which have the same TimeStamp
 * @param DC = current Device Context (can be NULL)
 * @param aZone = zone segment within the zone to delete. Can be NULL
 * @param aTimestamp = Timestamp for the zone to delete, used if aZone == NULL
 */
    void                Delete_Zone( wxDC* DC, SEGZONE* Track, long aTimestamp = 0 );

    EDGE_ZONE*          Del_SegmEdgeZone( wxDC* DC, EDGE_ZONE* edge_zone );
    /**
     * Function Begin_Zone
@@ -760,14 +768,31 @@ public:
    /**
     * Function End_Zone
     * terminates the zone edge creation process
	 * @param DC = current Device Context
     */
    void                End_Zone( wxDC* DC );
    
    /**
     * Function Fill_Zone
     * Fills an outline.
	/** Function Fill_Zone()
	 *  Calculate the zone filling for the outline zone_container
	 *  The zone outline is a frontier, and can be complex (with holes)
	 *  The filling starts from starting points like pads, tracks.
	 * If exists the old filling is removed
	 * @param DC = current Device Context
	 * @param zone_container = zone to fill
	 * @param verbose = true to show error messages
	 * @return error level (0 = no error)
	 */
    int                Fill_Zone( wxDC* DC, ZONE_CONTAINER * zone_container, bool verbose = TRUE );

	/** Function Fill_All_Zones()
	 *  Fill all zones on the board
	 * The old fillings are removed
	 * @param frame = reference to the main frame
	 * @param DC = current Device Context
	 * @param verbose = true to show error messages
	 * @return error level (0 = no error)
	 */
    void                Fill_Zone( wxDC* DC, ZONE_CONTAINER * zone_container );
    int                Fill_All_Zones( wxDC* DC, bool verbose = TRUE );

	/**
	 * Function Edit_Zone_Params
+1.88 KiB (137 KiB)

File changed.

No diff preview for this file type.

Loading