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

#include <place/problem.hpp>

Public Member Functions

int movable_count () const
int flippable_count () const

Public Attributes

std::vector< Part > parts
std::vector< Pin > pins
std::vector< PNet > nets
std::vector< Point > outline
 largest Edge.Cuts loop (empty if none could be assembled)
std::vector< std::vector< Point > > cutouts
 other closed Edge.Cuts loops
std::vector< Shape > edges
 every Edge.Cuts piece as segments (r = 0)
std::vector< Keepout > keepouts
std::vector< CopperShape > fixed_copper
 board copper that never moves: tracks, vias, copper graphics and text
Coord max_need = 0
 largest copper clearance any item asks for
int copper_layers = 2
Coord clearance = 250'000
 courtyard-to-courtyard clearance
bool clearance_is_default = true
 not from a board rule or the command line
Coord edge_clearance = 0
 pad copper to board edge
Box region
 where parts may go (outline bbox)
std::vector< std::string > notes
 extraction decisions worth reporting

Detailed Description

Definition at line 112 of file problem.hpp.

Member Function Documentation

◆ flippable_count()

int tmk::place::Problem::flippable_count ( ) const

◆ movable_count()

int tmk::place::Problem::movable_count ( ) const

Member Data Documentation

◆ clearance

Coord tmk::place::Problem::clearance = 250'000

courtyard-to-courtyard clearance

Definition at line 123 of file problem.hpp.

◆ clearance_is_default

bool tmk::place::Problem::clearance_is_default = true

not from a board rule or the command line

Definition at line 124 of file problem.hpp.

◆ copper_layers

int tmk::place::Problem::copper_layers = 2

Definition at line 122 of file problem.hpp.

◆ cutouts

std::vector<std::vector<Point> > tmk::place::Problem::cutouts

other closed Edge.Cuts loops

Definition at line 117 of file problem.hpp.

◆ edge_clearance

Coord tmk::place::Problem::edge_clearance = 0

pad copper to board edge

Definition at line 125 of file problem.hpp.

◆ edges

std::vector<Shape> tmk::place::Problem::edges

every Edge.Cuts piece as segments (r = 0)

Definition at line 118 of file problem.hpp.

◆ fixed_copper

std::vector<CopperShape> tmk::place::Problem::fixed_copper

board copper that never moves: tracks, vias, copper graphics and text

Definition at line 120 of file problem.hpp.

◆ keepouts

std::vector<Keepout> tmk::place::Problem::keepouts

Definition at line 119 of file problem.hpp.

◆ max_need

Coord tmk::place::Problem::max_need = 0

largest copper clearance any item asks for

Definition at line 121 of file problem.hpp.

◆ nets

std::vector<PNet> tmk::place::Problem::nets

Definition at line 115 of file problem.hpp.

◆ notes

std::vector<std::string> tmk::place::Problem::notes

extraction decisions worth reporting

Definition at line 127 of file problem.hpp.

◆ outline

std::vector<Point> tmk::place::Problem::outline

largest Edge.Cuts loop (empty if none could be assembled)

Definition at line 116 of file problem.hpp.

◆ parts

std::vector<Part> tmk::place::Problem::parts

Definition at line 113 of file problem.hpp.

◆ pins

std::vector<Pin> tmk::place::Problem::pins

Definition at line 114 of file problem.hpp.

◆ region

Box tmk::place::Problem::region

where parts may go (outline bbox)

Definition at line 126 of file problem.hpp.


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