![]() |
KiCad PCB EDA Suite
|
#include <wx/wx.h>
#include <base_units.h>
#include <board_commit.h>
#include <pad.h>
#include <fp_shape.h>
#include <footprint.h>
#include <confirm.h>
#include <dialogs/dialog_text_entry.h>
#include <geometry/geometry_utils.h>
#include <math/util.h>
#include <microwave/microwave_tool.h>
#include <tool/tool_manager.h>
#include <tools/pcb_actions.h>
#include <pcb_edit_frame.h>
#include <validators.h>
Go to the source code of this file.
Macros | |
#define | ADJUST_SIZE 0.988 |
Enumerations | |
enum | INDUCTOR_S_SHAPE_RESULT { INDUCTOR_S_SHAPE_RESULT::OK, INDUCTOR_S_SHAPE_RESULT::TOO_LONG, INDUCTOR_S_SHAPE_RESULT::TOO_SHORT, INDUCTOR_S_SHAPE_RESULT::NO_REPR } |
Functions | |
static void | gen_arc (std::vector< wxPoint > &aBuffer, const wxPoint &aStartPoint, const wxPoint &aCenter, int a_ArcAngle) |
Function gen_arc generates an arc using arc approximation by lines: Center aCenter Angle "angle" (in 0.1 deg) More... | |
static INDUCTOR_S_SHAPE_RESULT | BuildCornersList_S_Shape (std::vector< wxPoint > &aBuffer, const wxPoint &aStartPoint, const wxPoint &aEndPoint, int aLength, int aWidth) |
Function BuildCornersList_S_Shape Create a path like a S-shaped coil. More... | |
#define ADJUST_SIZE 0.988 |
|
strong |
Enumerator | |
---|---|
OK | |
TOO_LONG | S-shape constructed. |
TOO_SHORT | Requested length too long. |
NO_REPR | Requested length too short. |
Definition at line 80 of file microwave_inductor.cpp.
|
static |
Function BuildCornersList_S_Shape Create a path like a S-shaped coil.
aBuffer | = a buffer where to store points (ends of segments) |
aStartPoint | = starting point of the path |
aEndPoint | = ending point of the path |
aLength | = full length of the path |
aWidth | = segment width |
Definition at line 98 of file microwave_inductor.cpp.
References ADJUST_SIZE, PNS::angle(), ArcTangente(), EuclideanNorm(), gen_arc(), KiROUND(), NO_REPR, OK, RotatePoint(), sign(), TOO_LONG, and TOO_SHORT.
Referenced by MICROWAVE_TOOL::createMicrowaveInductor().
|
static |
Function gen_arc generates an arc using arc approximation by lines: Center aCenter Angle "angle" (in 0.1 deg)
aBuffer | = a buffer to store points. |
aStartPoint | = starting point of arc. |
aCenter | = arc centre. |
a_ArcAngle | = arc length in 0.1 degrees. |
Definition at line 51 of file microwave_inductor.cpp.
References EuclideanNorm(), GetArcToSegmentCount(), and KiROUND().
Referenced by BuildCornersList_S_Shape().