Horizon
src
core
tool_add_keepout.hpp
1
#pragma once
2
#include "core.hpp"
3
4
namespace
horizon {
5
class
ToolAddKeepout
:
public
ToolBase
{
6
public
:
7
ToolAddKeepout
(
Core
*c, ToolID tid);
8
ToolResponse
begin
(
const
ToolArgs
&args)
override
;
9
ToolResponse
update
(
const
ToolArgs
&args)
override
;
10
bool
can_begin
()
override
;
11
bool
is_specific
()
override
12
{
13
return
true
;
14
}
15
16
private
:
17
class
Polygon
*get_poly();
18
};
19
}
// namespace horizon
horizon::Polygon
Polygon used in Padstack, Package and Board for specifying filled Regions.
Definition:
polygon.hpp:27
horizon::ToolAddKeepout::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_add_keepout.cpp:85
horizon::ToolAddKeepout::can_begin
bool can_begin() override
Definition:
tool_add_keepout.cpp:37
horizon::ToolAddKeepout
Definition:
tool_add_keepout.hpp:5
horizon::Core
Where Tools and and documents meet.
Definition:
core.hpp:240
horizon::ToolAddKeepout::is_specific
bool is_specific() override
Definition:
tool_add_keepout.hpp:11
horizon::ToolBase
Common interface for all Tools.
Definition:
core.hpp:141
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition:
core.hpp:52
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition:
core.hpp:26
horizon::ToolAddKeepout::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_add_keepout.cpp:57
Generated by
1.8.16