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

Linear, leader (radius/diameter) or angular dimension. More...

#include <cadstar_pcb_archive_parser.h>

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

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
 

Detailed Description

Linear, leader (radius/diameter) or angular dimension.

Definition at line 566 of file cadstar_pcb_archive_parser.h.

Member Enumeration Documentation

◆ SUBTYPE

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.

◆ TYPE

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.

Member Function Documentation

◆ IsDimension()

bool CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::IsDimension ( XNODE aNode)
static

◆ Parse()

Member Data Documentation

◆ AngularUnits

ANGUNITS CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::AngularUnits

Only Applicable to TYPE=ANGLEDIM.

Definition at line 709 of file cadstar_pcb_archive_parser.h.

◆ Arrow

ARROW CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Arrow

Definition at line 710 of file cadstar_pcb_archive_parser.h.

◆ ExtensionLineParams

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().

◆ Fixed

bool CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Fixed = false

Definition at line 715 of file cadstar_pcb_archive_parser.h.

◆ GroupID

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.

◆ ID

◆ LayerID

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

LINE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Line

◆ LinearUnits

UNITS CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::LinearUnits

◆ Precision

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

REUSEBLOCKREF CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ReuseBlockRef

Definition at line 718 of file cadstar_pcb_archive_parser.h.

◆ Subtype

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

TEXT CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Text

◆ TextParams

TEXTFORMAT CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TextParams

Definition at line 711 of file cadstar_pcb_archive_parser.h.

◆ Type

TYPE CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Type

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