pcb 4.1.1
An interactive printed circuit board layout editor.
|
Prototypes for inserting points into objects. More...
#include "global.h"
Go to the source code of this file.
Functions | |
void | AdjustAttachedLine (void) |
Adjust the attached line to 45 degrees if necessary. | |
void | AdjustTwoLine (bool) |
Adjusts the insert lines to make them 45 degrees as necessary. | |
void | FortyFiveLine (AttachedLineType *) |
Makes the attached line fit into a 45 degree direction. | |
void | EnforceLineDRC (void) |
Prototypes for inserting points into objects.
PCB, interactive printed circuit board design
Copyright (C) 1994,1995,1996 Thomas Nau
Copyright (C) 2004 harry eaton
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Contact addresses for paper mail and Email: Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany Thomas.Nau@rz.uni-ulm.de
Definition in file line.h.
void AdjustAttachedLine | ( | void | ) |
Adjust the attached line to 45 degrees if necessary.
Definition at line 62 of file line.c.
References CrosshairType::AttachedLine, hid_st::control_is_pressed, Crosshair, AttachedLineType::draw, FortyFiveLine(), gui, line, LINE_MODE, SettingType::Mode, PCB, AttachedLineType::Point2, PCBType::RatDraw, Settings, AttachedLineType::State, STATE_FIRST, TEST_FLAG, CrosshairType::X, PointType::X, CrosshairType::Y, and PointType::Y.
Referenced by AdjustAttachedObjects().
void AdjustTwoLine | ( | bool | ) |
Adjusts the insert lines to make them 45 degrees as necessary.
Definition at line 182 of file line.c.
References abs, CrosshairType::AttachedLine, hid_st::control_is_pressed, Crosshair, AttachedLineType::draw, gui, line, PCB, AttachedLineType::Point1, AttachedLineType::Point2, SGN, hid_st::shift_is_pressed, AttachedLineType::State, STATE_FIRST, TEST_FLAG, CrosshairType::X, PointType::X, CrosshairType::Y, and PointType::Y.
Referenced by AdjustAttachedObjects().
void EnforceLineDRC | ( | void | ) |
Definition at line 493 of file line.c.
References PCBType::Clipping, hid_st::control_is_pressed, Crosshair, drc_lines(), gui, INDEXOFCURRENT, max_copper_layer, hid_st::mod1_is_pressed, PCB, PCBType::RatDraw, hid_st::shift_is_pressed, CrosshairType::X, PointType::X, XOR, CrosshairType::Y, and PointType::Y.
Referenced by FitCrosshairIntoGrid().
void FortyFiveLine | ( | AttachedLineType * | Line | ) |
Makes the attached line fit into a 45 degree direction.
Directions:
4 5 3 6 2 7 1 0
Definition at line 100 of file line.c.
References abs, Crosshair, m, MAX, max, MIN, min, AttachedLineType::Point1, AttachedLineType::Point2, TAN_30_DEGREE, TAN_60_DEGREE, PointType::X, CrosshairType::X, PointType::Y, and CrosshairType::Y.
Referenced by AdjustAttachedLine(), and AdjustInsertPoint().