KiCad PCB EDA Suite
|
Linear, leader (radius/diameter) or angular dimension. More...
#include <cadstar_pcb_archive_parser.h>
Classes | |
struct | ARROW |
struct | EXTENSION_LINE |
< Token "EXTLINE" More... | |
struct | LINE |
< Token can be either "LEADERLINE", "LINEARLINE" or "ANGULARLINE" More... | |
struct | TEXTFORMAT |
Contains formatting specific for a CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION object. More... | |
Public Types | |
enum class | TYPE { LINEARDIM , LEADERDIM , ANGLEDIM } |
enum class | SUBTYPE { ORTHOGONAL , DIRECT , ANGLED , DIAMETER , RADIUS , ANGULAR } |
Public Member Functions | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
Static Public Member Functions | |
static bool | IsDimension (XNODE *aNode) |
Public Attributes | |
TYPE | Type |
DIMENSION_ID | ID |
Some ID (doesn't seem to be used) subnode="DIMREF". | |
LAYER_ID | LayerID |
ID on which to draw this [param1]. | |
SUBTYPE | Subtype |
[param2] | |
long | Precision |
Number of decimal points to display in the measurement [param3]. | |
UNITS | LinearUnits |
ANGUNITS | AngularUnits |
Only Applicable to TYPE=ANGLEDIM. | |
ARROW | Arrow |
TEXTFORMAT | TextParams |
EXTENSION_LINE | ExtensionLineParams |
Not applicable to TYPE=LEADERDIM. | |
LINE | Line |
TEXT | Text |
bool | Fixed = false |
GROUP_ID | GroupID = wxEmptyString |
If not empty, this DIMENSION is part of a group. | |
REUSEBLOCKREF | ReuseBlockRef |
Linear, leader (radius/diameter) or angular dimension.
Definition at line 566 of file cadstar_pcb_archive_parser.h.
|
strong |
Enumerator | |
---|---|
ORTHOGONAL | An orthogonal dimension (either x or y measurement) token=DIMENSION_ORTHOGONAL. |
DIRECT | A linear dimension parallel to measurement with perpendicular extension lines token=DIMENSION_DIRECT. |
ANGLED | A linear dimension parallel to measurement but with orthogonal extension lines (i.e. x or y axis, angled with respect to measurement) token=DIMENSION_ANGLED |
DIAMETER | token=DIMENSION_DIAMETER |
RADIUS | token=DIMENSION_RADIUS |
ANGULAR | token=DIMENSION_ANGULAR |
Definition at line 576 of file cadstar_pcb_archive_parser.h.
|
strong |
Enumerator | |
---|---|
LINEARDIM | Linear Dimension. |
LEADERDIM | Typically used for Radius/Diameter Dimension. |
ANGLEDIM | Angular Dimension. |
Definition at line 568 of file cadstar_pcb_archive_parser.h.
|
static |
Definition at line 1414 of file cadstar_pcb_archive_parser.cpp.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::LAYOUT::Parse().
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 1428 of file cadstar_pcb_archive_parser.cpp.
References XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), ID, CADSTAR_ARCHIVE_PARSER::ParseAngunits(), CADSTAR_ARCHIVE_PARSER::ParseUnits(), THROW_UNKNOWN_NODE_IO_ERROR, and THROW_UNKNOWN_PARAMETER_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::LAYOUT::Parse().
ANGUNITS CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::AngularUnits |
Only Applicable to TYPE=ANGLEDIM.
Definition at line 709 of file cadstar_pcb_archive_parser.h.
ARROW CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Arrow |
Definition at line 710 of file cadstar_pcb_archive_parser.h.
EXTENSION_LINE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ExtensionLineParams |
Not applicable to TYPE=LEADERDIM.
Definition at line 712 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings(), and CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions().
bool CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Fixed = false |
Definition at line 715 of file cadstar_pcb_archive_parser.h.
GROUP_ID CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::GroupID = wxEmptyString |
If not empty, this DIMENSION is part of a group.
Definition at line 716 of file cadstar_pcb_archive_parser.h.
DIMENSION_ID CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ID |
Some ID (doesn't seem to be used) subnode="DIMREF".
Definition at line 703 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings(), CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions(), CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::LAYOUT::Parse().
LAYER_ID CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::LayerID |
ID on which to draw this [param1].
Definition at line 704 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings().
LINE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Line |
Definition at line 713 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings(), and CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions().
UNITS CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::LinearUnits |
Definition at line 708 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings().
long CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Precision |
Number of decimal points to display in the measurement [param3].
Definition at line 706 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings().
REUSEBLOCKREF CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ReuseBlockRef |
Definition at line 718 of file cadstar_pcb_archive_parser.h.
SUBTYPE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Subtype |
[param2]
Definition at line 705 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions().
TEXT CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Text |
Definition at line 714 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::applyDimensionSettings(), and CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions().
TEXTFORMAT CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TextParams |
Definition at line 711 of file cadstar_pcb_archive_parser.h.
TYPE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Type |
Definition at line 702 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions().