KiCad PCB EDA Suite
tracepcb.cpp File Reference

Functions to redraw the current board. More...

#include <fctsys.h>
#include <class_drawpanel.h>
#include <wxPcbStruct.h>
#include <base_units.h>
#include <class_board.h>
#include <class_module.h>
#include <class_track.h>
#include <class_zone.h>
#include <class_marker_pcb.h>
#include <pcbnew.h>
#include <module_editor_frame.h>
#include <pcbplot.h>
#include <wx/overlay.h>

Go to the source code of this file.

Functions

static void Trace_Pads_Only (EDA_DRAW_PANEL *panel, wxDC *DC, MODULE *Module, int ox, int oy, LSET LayerMask, GR_DRAWMODE draw_mode)
 

Detailed Description

Functions to redraw the current board.

Definition in file tracepcb.cpp.

Function Documentation

static void Trace_Pads_Only ( EDA_DRAW_PANEL panel,
wxDC *  DC,
MODULE Module,
int  ox,
int  oy,
LSET  LayerMask,
GR_DRAWMODE  draw_mode 
)
static

Definition at line 295 of file tracepcb.cpp.

References EDA_DRAW_PANEL::GetDisplayOptions(), DISPLAY_OPTIONS::m_DisplayPadFill, D_PAD::Next(), and MODULE::PadsList().

Referenced by BOARD::Draw().

297 {
298  DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
299 
300  int tmp = displ_opts->m_DisplayPadFill;
301 
302  displ_opts->m_DisplayPadFill = false;
303 
304  // Draw pads.
305  for( D_PAD* pad = aModule->PadsList(); pad; pad = pad->Next() )
306  {
307  if( (pad->GetLayerSet() & aLayerMask) == 0 )
308  continue;
309 
310  pad->Draw( panel, DC, draw_mode, wxPoint( ox, oy ) );
311  }
312 
313  displ_opts->m_DisplayPadFill = tmp;
314 }
D_PAD * Next() const
Definition: class_pad.h:106
Class DISPLAY_OPTIONS handles display options like enable/disable some optional drawings.
Definition: pcbstruct.h:62
bool m_DisplayPadFill
Definition: pcbstruct.h:65
void * GetDisplayOptions()
Function GetDisplayOptions A way to pass info to draw functions.
Definition: draw_panel.cpp:182