Horizon
Public Types | Public Member Functions | Public Attributes | List of all members
horizon::Hole Class Reference

A hole with diameter and position, that's it. More...

#include <hole.hpp>

Public Types

enum  Shape { ROUND, SLOT, ROUND, SLOT }
 
enum  Shape { ROUND, SLOT, ROUND, SLOT }
 

Public Member Functions

 Hole (const UUID &uu, const json &j)
 
 Hole (const UUID &uu)
 
Polygon to_polygon () const
 
UUID get_uuid () const
 
json serialize () const
 
 Hole (const UUID &uu, const json &j)
 
 Hole (const UUID &uu)
 
Polygon to_polygon () const
 
UUID get_uuid () const
 
json serialize () const
 

Public Attributes

UUID uuid
 
Placement placement
 
uint64_t diameter = 0.5_mm
 
uint64_t length = 0.5_mm
 
std::string parameter_class
 
bool plated = false
 true if this hole is PTH, false if NPTH. More...
 
Shape shape = Shape::ROUND
 

Detailed Description

A hole with diameter and position, that's it.

Member Data Documentation

◆ plated

bool horizon::Hole::plated = false

true if this hole is PTH, false if NPTH.

Used by the gerber exporter.


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