File: layer.cpp

package info (click to toggle)
pcb2gcode 1.1.4-git20120902-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,400 kB
  • ctags: 358
  • sloc: sh: 10,116; cpp: 2,335; python: 53; makefile: 43
file content (32 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#include "layer.hpp"

Layer::Layer( const string& name, shared_ptr<Surface> surface, shared_ptr<RoutingMill> manufacturer, bool backside, bool mirror_absolute )
{
	this->name = name;
	this->mirrored = backside;
	this->mirror_absolute = mirror_absolute;
	this->surface = surface;
	this->manufacturer = manufacturer;
}

#include <iostream>
using namespace std;

vector< shared_ptr<icoords> >
Layer::get_toolpaths()
{
	return surface->get_toolpath( manufacturer, mirrored, mirror_absolute );
}

shared_ptr<RoutingMill>
Layer::get_manufacturer()
{
	return manufacturer;
}

void
Layer::add_mask( shared_ptr<Layer> mask)
{
	surface->add_mask( mask->surface);
}