TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::model::Pad::CustomPrim Struct Reference

Custom-pad primitives in the pad frame, each already grown by half its stroke width (KiCad draws them with a round pen and fills them): a polygon or rectangle, a polyline (line, arc) or a disc (circle; pts[0] is the centre). More...

#include <model/board.hpp>

Public Types

enum class  Kind { Polygon , Polyline , Disc }

Public Attributes

enum tmk::model::Pad::CustomPrim::Kind kind = Kind::Polygon
std::vector< Point > pts
Coord radius = 0

Detailed Description

Custom-pad primitives in the pad frame, each already grown by half its stroke width (KiCad draws them with a round pen and fills them): a polygon or rectangle, a polyline (line, arc) or a disc (circle; pts[0] is the centre).

Definition at line 66 of file board.hpp.

Member Enumeration Documentation

◆ Kind

Enumerator
Polygon 
Polyline 
Disc 

Definition at line 67 of file board.hpp.

Member Data Documentation

◆ kind

enum tmk::model::Pad::CustomPrim::Kind tmk::model::Pad::CustomPrim::kind = Kind::Polygon

◆ pts

std::vector<Point> tmk::model::Pad::CustomPrim::pts

Definition at line 68 of file board.hpp.

◆ radius

Coord tmk::model::Pad::CustomPrim::radius = 0

Definition at line 69 of file board.hpp.


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