Go to the source code of this file.
◆ REPORT
#define REPORT |
( |
|
s | ) |
{ if( aReporter ) { aReporter->Report( s ); } } |
◆ UNITS
◆ drcPrintDebugMessage()
void drcPrintDebugMessage |
( |
int |
level, |
|
|
const wxString & |
msg, |
|
|
const char * |
function, |
|
|
int |
line |
|
) |
| |
Definition at line 40 of file drc_engine.cpp.
44 if( wxGetEnv(
"DRC_DEBUG", &valueStr ) )
46 int setLevel = wxAtoi( valueStr );
48 if( level <= setLevel )
50 printf(
"%-30s:%d | %s\n",
function, line, (
const char *) msg.c_str() );
◆ formatConstraint()
Definition at line 442 of file drc_engine.cpp.
455 const auto value = c.GetValue();
457 if ( value.HasMin() )
460 if ( value.HasOpt() )
463 if ( value.HasMax() )
469 std::vector<FORMATTER> formats =
487 for( FORMATTER& fmt : formats )
489 if( fmt.type == constraint.
m_Type )
491 wxString rv = fmt.name +
" ";
494 rv += fmt.formatter( constraint );
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
References ANNULAR_WIDTH_CONSTRAINT, CLEARANCE_CONSTRAINT, COURTYARD_CLEARANCE_CONSTRAINT, DISALLOW_CONSTRAINT, EDGE_CLEARANCE_CONSTRAINT, Format(), HOLE_CLEARANCE_CONSTRAINT, HOLE_SIZE_CONSTRAINT, HOLE_TO_HOLE_CONSTRAINT, LENGTH_CONSTRAINT, DRC_CONSTRAINT::m_Type, name, SILK_CLEARANCE_CONSTRAINT, SKEW_CONSTRAINT, TRACK_WIDTH_CONSTRAINT, VIA_COUNT_CONSTRAINT, and VIA_DIAMETER_CONSTRAINT.
Referenced by DRC_ENGINE::compileRules().
◆ isKeepoutZone()
static bool isKeepoutZone |
( |
const BOARD_ITEM * |
aItem, |
|
|
bool |
aCheckFlags |
|
) |
| |
|
static |
Definition at line 90 of file drc_engine.cpp.
98 const ZONE* zone = static_cast<const ZONE*>( aItem );
bool GetDoNotAllowFootprints() const
bool GetIsRuleArea() const
Accessors to parameters used in Rule Area zones:
bool GetDoNotAllowVias() const
bool GetDoNotAllowPads() const
bool GetDoNotAllowCopperPour() const
bool GetDoNotAllowTracks() const
Handle a list of polygons defining a copper zone.
class ZONE, a copper pour area
class ZONE, managed by a footprint
KICAD_T Type() const
Returns the type of object.
References ZONE::GetDoNotAllowCopperPour(), ZONE::GetDoNotAllowFootprints(), ZONE::GetDoNotAllowPads(), ZONE::GetDoNotAllowTracks(), ZONE::GetDoNotAllowVias(), ZONE::GetIsRuleArea(), PCB_FP_ZONE_T, PCB_ZONE_T, and EDA_ITEM::Type().
Referenced by DRC_ENGINE::EvalRules(), and DRC_ENGINE::loadImplicitRules().