KiCad PCB EDA Suite
|
Contains formatting specific for a CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION object. More...
#include <cadstar_pcb_archive_parser.h>
Public Types | |
enum class | STYLE { INSIDE , OUTSIDE } |
< Token "TXTSTYLE" More... | |
Public Member Functions | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
Public Attributes | |
STYLE | Style |
long | TextGap |
Specifies the gap between the text and the end of the line. | |
long | TextOffset |
Specifies how far above the line the text is (doesn't have an effect on actual position!) | |
Contains formatting specific for a CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION object.
Note that none of the parameters has any effect on the position of the dimension text - it is more of an "intention" of where it should be placed. The user can manually drag the location of the dimension text. Therefore, the actual position of the dimension text is as defined in the Text
object within CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION.
However, TEXTFORMAT does specifify TextGap
(i.e. how far to pull back the dimension line from the dimension text which does get used when the dimension text is placed on top of the dimension line, if the dimension line is STYLE::INTERNAL).
Note: the token is "DIMTEXT" in the CADSTAR format, but this has been renamed to TEXTFORMAT in the cadstar2kicadplugin for ease of understanding.
Definition at line 630 of file cadstar_pcb_archive_parser.h.
|
strong |
< Token "TXTSTYLE"
Definition at line 632 of file cadstar_pcb_archive_parser.h.
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 1265 of file cadstar_pcb_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::CheckNoNextNodes(), XNODE::GetChildren(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), THROW_UNKNOWN_NODE_IO_ERROR, and THROW_UNKNOWN_PARAMETER_IO_ERROR.
STYLE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Style |
Definition at line 640 of file cadstar_pcb_archive_parser.h.
long CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::TextGap |
Specifies the gap between the text and the end of the line.
Definition at line 641 of file cadstar_pcb_archive_parser.h.
long CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::TextOffset |
Specifies how far above the line the text is (doesn't have an effect on actual position!)
Definition at line 642 of file cadstar_pcb_archive_parser.h.