KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PADS_IO::DESIGN_RULES Struct Reference

Board design rules. More...

#include <pads_parser.h>

Public Member Functions

void MarkSpecified (DESIGN_RULE_FIELD aField)
 
bool IsSpecified (DESIGN_RULE_FIELD aField) const
 

Public Attributes

double min_clearance = 8.0
 MINCLEAR.
 
double default_clearance = 10.0
 DEFAULTCLEAR.
 
double min_track_width = 6.0
 MINTRACKWID.
 
double default_track_width = 10.0
 DEFAULTTRACKWID.
 
double min_via_size = 20.0
 MINVIASIZE.
 
double default_via_size = 40.0
 DEFAULTVIASIZE.
 
double min_via_drill = 10.0
 MINVIADRILL.
 
double default_via_drill = 20.0
 DEFAULTVIADRILL.
 
double hole_to_hole = 10.0
 HOLEHOLE.
 
double silk_clearance = 5.0
 SILKCLEAR.
 
double mask_clearance = 3.0
 MASKCLEAR.
 
double copper_edge_clearance = 10.0
 OUTLINE_TO_*.
 
unsigned specified = 0
 

Detailed Description

Board design rules.

The initial values are in mils and only meaningful for MILS files, so consumers must apply a value only when IsSpecified() reports that the file declared it.

Definition at line 150 of file pads_parser.h.

Member Function Documentation

◆ IsSpecified()

bool PADS_IO::DESIGN_RULES::IsSpecified ( DESIGN_RULE_FIELD aField) const
inline

Definition at line 169 of file pads_parser.h.

References specified.

Referenced by PCB_IO_PADS::loadBoardSetup().

◆ MarkSpecified()

void PADS_IO::DESIGN_RULES::MarkSpecified ( DESIGN_RULE_FIELD aField)
inline

Definition at line 167 of file pads_parser.h.

References specified.

Member Data Documentation

◆ copper_edge_clearance

double PADS_IO::DESIGN_RULES::copper_edge_clearance = 10.0

OUTLINE_TO_*.

Definition at line 163 of file pads_parser.h.

Referenced by PADS_IO::PARSER::clampDesignRuleSentinels(), and PCB_IO_PADS::loadBoardSetup().

◆ default_clearance

double PADS_IO::DESIGN_RULES::default_clearance = 10.0

◆ default_track_width

double PADS_IO::DESIGN_RULES::default_track_width = 10.0

DEFAULTTRACKWID.

Definition at line 155 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ default_via_drill

double PADS_IO::DESIGN_RULES::default_via_drill = 20.0

DEFAULTVIADRILL.

Definition at line 159 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ default_via_size

double PADS_IO::DESIGN_RULES::default_via_size = 40.0

DEFAULTVIASIZE.

Definition at line 157 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ hole_to_hole

double PADS_IO::DESIGN_RULES::hole_to_hole = 10.0

HOLEHOLE.

Definition at line 160 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ mask_clearance

double PADS_IO::DESIGN_RULES::mask_clearance = 3.0

MASKCLEAR.

Definition at line 162 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ min_clearance

double PADS_IO::DESIGN_RULES::min_clearance = 8.0

MINCLEAR.

Definition at line 152 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ min_track_width

double PADS_IO::DESIGN_RULES::min_track_width = 6.0

MINTRACKWID.

Definition at line 154 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ min_via_drill

double PADS_IO::DESIGN_RULES::min_via_drill = 10.0

MINVIADRILL.

Definition at line 158 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ min_via_size

double PADS_IO::DESIGN_RULES::min_via_size = 20.0

MINVIASIZE.

Definition at line 156 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ silk_clearance

double PADS_IO::DESIGN_RULES::silk_clearance = 5.0

SILKCLEAR.

Definition at line 161 of file pads_parser.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::loadBoardSetup().

◆ specified

unsigned PADS_IO::DESIGN_RULES::specified = 0

Definition at line 165 of file pads_parser.h.

Referenced by IsSpecified(), and MarkSpecified().


The documentation for this struct was generated from the following file: