|
KiCad PCB EDA Suite
|
Corresponds to CADSTAR "origin". More...
#include <cadstar_archive_parser.h>
Public Member Functions | |
| TEXT_LOCATION () | |
| void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
| void | ParseIdentifiers (XNODE *aNode, PARSER_CONTEXT *aContext) |
| bool | ParseSubNode (XNODE *aChildNode, PARSER_CONTEXT *aContext) |
Public Attributes | |
| ATTRIBUTE_ID | AttributeID |
| TEXTCODE_ID | TextCodeID |
| LAYER_ID | LayerID |
| POINT | Position |
| long | OrientAngle = 0 |
| bool | Mirror = false |
| bool | Fixed = false |
| JUSTIFICATION | Justification |
| Note: Justification has no effect on single lines of text. | |
| ALIGNMENT | Alignment |
| In CADSTAR The default alignment for a TEXT object (when "(No Alignment()" is selected) Bottom Left of the first line. | |
Corresponds to CADSTAR "origin".
This is used for setting a location of an attribute e.g. Designator (called Component Name in CADSTAR), Part Name (name of component in the library), etc. The atom identifier is "TEXTLOC"
Definition at line 797 of file cadstar_archive_parser.h.
|
inline |
Definition at line 799 of file cadstar_archive_parser.h.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, and CADSTAR_ARCHIVE_PARSER::BOTTOMLEFT.
|
overridevirtual |
Reimplemented from CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION.
Definition at line 1349 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, AttributeID, COMPONENT_NAME_2_ATTRID, COMPONENT_NAME_ATTRID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Fixed, XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::LayerID, LINK_ORIGIN_ATTRID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Mirror, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::OrientAngle, CADSTAR_ARCHIVE_PARSER::ParseAlignment(), CADSTAR_ARCHIVE_PARSER::ParseJustification(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::ParseSubNode(), PART_NAME_ATTRID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, SIGNALNAME_ORIGIN_ATTRID, SYMBOL_NAME_ATTRID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, THROW_MISSING_NODE_IO_ERROR, CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE, WARN_UNKNOWN_NODE_IO_ERROR, and WARN_UNKNOWN_PARAMETER_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Parse(), and CADSTAR_ARCHIVE_PARSER::SYMDEF::ParseSubNode().
|
inherited |
Definition at line 1143 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), LayerID, and TextCodeID.
Referenced by Parse().
|
inherited |
Definition at line 1151 of file cadstar_archive_parser.cpp.
References Alignment, Fixed, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), Justification, Mirror, OrientAngle, CADSTAR_ARCHIVE_PARSER::ParseAlignment(), CADSTAR_ARCHIVE_PARSER::ParseJustification(), and Position.
Referenced by Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC::Parse(), and CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK::Parse().
|
inherited |
In CADSTAR The default alignment for a TEXT object (when "(No Alignment()" is selected) Bottom Left of the first line.
Note that this is different from BOTTOM_LEFT (which is bottom left of the whole text block)
Definition at line 722 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::applyToLibraryFieldAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolFieldAttribute(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), ParseSubNode(), and CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::TEXT_LOCATION().
| ATTRIBUTE_ID CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::AttributeID |
Definition at line 805 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponentAttributes(), Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Parse(), and CADSTAR_ARCHIVE_PARSER::SYMDEF::ParseSubNode().
|
inherited |
Definition at line 719 of file cadstar_archive_parser.h.
Referenced by CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), and ParseSubNode().
|
inherited |
Note: Justification has no effect on single lines of text.
Definition at line 720 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::applyToLibraryFieldAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolFieldAttribute(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), and ParseSubNode().
|
inherited |
Definition at line 715 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK::Parse(), and ParseIdentifiers().
|
inherited |
Definition at line 718 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::applyToLibraryFieldAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolFieldAttribute(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), and ParseSubNode().
|
inherited |
Definition at line 717 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::applyToLibraryFieldAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolFieldAttribute(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), and ParseSubNode().
|
inherited |
Definition at line 716 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::applyToLibraryFieldAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolFieldAttribute(), Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK::Parse(), and ParseSubNode().
|
inherited |
Definition at line 714 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::applyToLibraryFieldAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolFieldAttribute(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymdef(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK::Parse(), and ParseIdentifiers().