kicad/pcbnew/trpiste.cpp

34 lines
876 B
C++
Raw Normal View History

/********************************/
/* Routines for plotting traces */
/********************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "pcbnew.h"
#include "trigo.h"
#include "protos.h"
/**
* Draw a list of trace segmants.
*
* Parameters:
* Pt_start_trace = first segment in the list
* Nbsegment = number of segments traced
* Draw_mode = mode (GR_XOR, GR_OR ..)
* CAUTION:
* The starting point of a track following MUST exist: may be
* then put a 0 before calling a routine if the track is the last drawn.
*/
void DrawTraces( EDA_DRAW_PANEL* panel, wxDC* DC, TRACK* aTrackList, int nbsegment, int draw_mode )
{
// preserve the start of the list for debugging.
for( TRACK* track = aTrackList; nbsegment > 0 && track; nbsegment--, track = track->Next() )
2007-08-23 04:28:46 +00:00
{
track->Draw( panel, DC, draw_mode );
2007-08-23 04:28:46 +00:00
}
}