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

#include <model/board.hpp>

Public Types

enum class  Kind : std::uint8_t {
  Line , Arc , Circle , Rect ,
  Poly , Curve
}

Public Attributes

enum tmk::model::Graphic::Kind kind = Kind::Line
std::string layer
Point a
Point b
Point c
 line: a→b; arc: start a, mid c, end b; circle: centre a, point b; rect: a,b corners
std::vector< Point > pts
 poly / curve control points
Coord width = 0
bool filled = false
NetId net = 0
 KiCad 8+ copper graphics can belong to a net.
int footprint = -1
 owning footprint, -1 for board graphics
sexpr::NodeId node = sexpr::kNoNode

Detailed Description

Definition at line 84 of file board.hpp.

Member Enumeration Documentation

◆ Kind

enum class tmk::model::Graphic::Kind : std::uint8_t
strong
Enumerator
Line 
Arc 
Circle 
Rect 
Poly 
Curve 

Definition at line 85 of file board.hpp.

Member Data Documentation

◆ a

Point tmk::model::Graphic::a

Definition at line 87 of file board.hpp.

◆ b

Point tmk::model::Graphic::b

Definition at line 87 of file board.hpp.

◆ c

Point tmk::model::Graphic::c

line: a→b; arc: start a, mid c, end b; circle: centre a, point b; rect: a,b corners

Definition at line 87 of file board.hpp.

◆ filled

bool tmk::model::Graphic::filled = false

Definition at line 90 of file board.hpp.

◆ footprint

int tmk::model::Graphic::footprint = -1

owning footprint, -1 for board graphics

Definition at line 92 of file board.hpp.

◆ kind

enum tmk::model::Graphic::Kind tmk::model::Graphic::kind = Kind::Line

◆ layer

std::string tmk::model::Graphic::layer

Definition at line 86 of file board.hpp.

◆ net

NetId tmk::model::Graphic::net = 0

KiCad 8+ copper graphics can belong to a net.

Definition at line 91 of file board.hpp.

◆ node

sexpr::NodeId tmk::model::Graphic::node = sexpr::kNoNode

Definition at line 93 of file board.hpp.

◆ pts

std::vector<Point> tmk::model::Graphic::pts

poly / curve control points

Definition at line 88 of file board.hpp.

◆ width

Coord tmk::model::Graphic::width = 0

Definition at line 89 of file board.hpp.


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