KiCad PCB EDA Suite
Loading...
Searching...
No Matches
CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT Struct Reference

Contains formatting specific for a CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION object. More...

#include <cadstar_pcb_archive_parser.h>

Inheritance diagram for CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT:
CADSTAR_ARCHIVE_PARSER::PARSER

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!)
 

Detailed Description

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.

Member Enumeration Documentation

◆ STYLE

< Token "TXTSTYLE"

Enumerator
INSIDE 

Embedded with the line (the Gap parameter specifies the gap between the text and the end of the line) DIMENSION_INTERNAL.

OUTSIDE 

Above the line (the Offset parameter specifies how far above the line the text is) DIMENSION_EXTERNAL.

Definition at line 632 of file cadstar_pcb_archive_parser.h.

Member Function Documentation

◆ Parse()

Member Data Documentation

◆ Style

STYLE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Style

Definition at line 640 of file cadstar_pcb_archive_parser.h.

◆ TextGap

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.

◆ TextOffset

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.


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