KiCad PCB EDA Suite
Loading...
Searching...
No Matches
diptrace_pcb_parser.h File Reference

Parser for DipTrace binary .dip board files. More...

#include <io/diptrace/diptrace_binary_reader.h>
#include <math/vector2d.h>
#include <map>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

struct  DIPTRACE::DT_VERTEX
 
struct  DIPTRACE::DT_LAYER
 
struct  DIPTRACE::DT_VIA_STYLE
 
struct  DIPTRACE::DT_DESIGN_RULE
 
struct  DIPTRACE::DT_PAD
 
struct  DIPTRACE::DT_MOUNT_HOLE
 
struct  DIPTRACE::DT_FP_SHAPE
 
struct  DIPTRACE::DT_COMPONENT
 
struct  DIPTRACE::DT_TEXT_OBJECT
 
struct  DIPTRACE::DT_PAD_REF
 
struct  DIPTRACE::DT_NET
 
struct  DIPTRACE::DT_TRACK_NODE
 
struct  DIPTRACE::DT_TRACK_CHAIN
 
struct  DIPTRACE::DT_ZONE_CACHED_FILL_RECORD
 
struct  DIPTRACE::DT_ZONE
 
class  DIPTRACE::PCB_PARSER
 Parses a DipTrace .dip binary board file and populates a KiCad BOARD. More...
 

Namespaces

namespace  DIPTRACE
 

Enumerations

enum  DIPTRACE::DT_SHAPE_TYPE {
  DIPTRACE::DT_SHAPE_EMPTY = 0 , DIPTRACE::DT_SHAPE_LINE = 1 , DIPTRACE::DT_SHAPE_RECT = 2 , DIPTRACE::DT_SHAPE_CIRCLE = 3 ,
  DIPTRACE::DT_SHAPE_ARC = 6 , DIPTRACE::DT_SHAPE_FILLOBROUND = 700 , DIPTRACE::DT_SHAPE_END = -1
}
 

Detailed Description

Parser for DipTrace binary .dip board files.

Reads the DipTrace binary format (magic: 07 DTBOARD) and creates KiCad BOARD objects. Supports format versions 37 through 60.

The DipTrace binary format uses big-endian encoding with biased integers:

  • int3: 3-byte, bias 1,000,000 (zero = 0x0F4240)
  • int4: 4-byte, bias 1,000,000,000 (zero = 0x3B9ACA00)
  • Strings: uint16-BE char count + UTF-16BE (v39+) or int3(byte_count) + ASCII (v37)
  • Coordinate unit: 100/3 nm (~33.33nm), 762 units per mil

Definition in file diptrace_pcb_parser.h.