KiCad PCB EDA Suite
|
#include "drawing_tool.h"
#include "geometry/shape_rect.h"
#include "dialog_table_properties.h"
#include <pgm_base.h>
#include <settings/settings_manager.h>
#include <pcbnew_settings.h>
#include <footprint_editor_settings.h>
#include <dialogs/dialog_text_properties.h>
#include <dialogs/dialog_track_via_size.h>
#include <gal/graphics_abstraction_layer.h>
#include <geometry/geometry_utils.h>
#include <geometry/shape_segment.h>
#include <import_gfx/dialog_import_graphics.h>
#include <preview_items/arc_assistant.h>
#include <preview_items/bezier_assistant.h>
#include <preview_items/two_point_assistant.h>
#include <preview_items/two_point_geom_manager.h>
#include <ratsnest/ratsnest_data.h>
#include <router/router_tool.h>
#include <status_popup.h>
#include <tool/tool_manager.h>
#include <tools/pcb_actions.h>
#include <tools/pcb_grid_helper.h>
#include <tools/pcb_selection_tool.h>
#include <tools/tool_event_utils.h>
#include <tools/zone_create_helper.h>
#include <tools/zone_filler_tool.h>
#include <view/view.h>
#include <widgets/appearance_controls.h>
#include <widgets/wx_infobar.h>
#include <wx/filedlg.h>
#include <wx/msgdlg.h>
#include <bitmaps.h>
#include <board.h>
#include <board_commit.h>
#include <board_design_settings.h>
#include <confirm.h>
#include <footprint.h>
#include <macros.h>
#include <gal/painter.h>
#include <pcb_edit_frame.h>
#include <pcb_group.h>
#include <pcb_reference_image.h>
#include <pcb_text.h>
#include <pcb_textbox.h>
#include <pcb_table.h>
#include <pcb_tablecell.h>
#include <pcb_dimension.h>
#include <pcbnew_id.h>
#include <scoped_set_reset.h>
#include <string_utils.h>
#include <zone.h>
#include <fix_board_shape.h>
#include <view/view_controls.h>
Go to the source code of this file.
Classes | |
class | VIA_SIZE_MENU |
Macros | |
#define | TOGGLE(a) a = !a |
Typedefs | |
using | SCOPED_DRAW_MODE = SCOPED_SET_RESET< DRAWING_TOOL::MODE > |
Functions | |
static void | updateSegmentFromGeometryMgr (const KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER &aMgr, PCB_SHAPE *aGraphic) |
Update a PCB_SHAPE from the current state of a #TWO_POINT_GEOMETRY_MANAGER. | |
static void | updateArcFromConstructionMgr (const KIGFX::PREVIEW::ARC_GEOM_MANAGER &aMgr, PCB_SHAPE &aArc) |
Update an arc PCB_SHAPE from the current state of an Arc Geometry Manager. | |
static void | updateBezierFromConstructionMgr (const KIGFX::PREVIEW::BEZIER_GEOM_MANAGER &aMgr, PCB_SHAPE &aBezier) |
Update a bezier PCB_SHAPE from the current state of a Bezier Geometry Manager. | |
#define TOGGLE | ( | a | ) | a = !a |
Definition at line 85 of file drawing_tool.cpp.
|
static |
Update an arc PCB_SHAPE from the current state of an Arc Geometry Manager.
Definition at line 2504 of file drawing_tool.cpp.
References ANGLE_0, KIGFX::PREVIEW::ARC_GEOM_MANAGER::GetEndRadiusEnd(), KIGFX::PREVIEW::ARC_GEOM_MANAGER::GetOrigin(), KIGFX::PREVIEW::ARC_GEOM_MANAGER::GetStartRadiusEnd(), KIGFX::PREVIEW::ARC_GEOM_MANAGER::GetSubtended(), EDA_SHAPE::SetCenter(), EDA_SHAPE::SetEnd(), and EDA_SHAPE::SetStart().
Referenced by DRAWING_TOOL::drawArc().
|
static |
Update a bezier PCB_SHAPE from the current state of a Bezier Geometry Manager.
Definition at line 2818 of file drawing_tool.cpp.
References ARC_HIGH_DEF, KIGFX::PREVIEW::BEZIER_GEOM_MANAGER::GetControlC1(), KIGFX::PREVIEW::BEZIER_GEOM_MANAGER::GetControlC2(), KIGFX::PREVIEW::BEZIER_GEOM_MANAGER::GetEnd(), KIGFX::PREVIEW::BEZIER_GEOM_MANAGER::GetStart(), EDA_SHAPE::RebuildBezierToSegmentsPointsList(), EDA_SHAPE::SetBezierC1(), EDA_SHAPE::SetBezierC2(), EDA_SHAPE::SetEnd(), and EDA_SHAPE::SetStart().
Referenced by DRAWING_TOOL::drawOneBezier().
|
static |
Update a PCB_SHAPE from the current state of a #TWO_POINT_GEOMETRY_MANAGER.
Definition at line 2108 of file drawing_tool.cpp.
References KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::GetEnd(), KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::GetOrigin(), KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::IsReset(), EDA_SHAPE::SetEnd(), and EDA_SHAPE::SetStart().
Referenced by DRAWING_TOOL::drawShape().