|
KiCad PCB EDA Suite
|
#include <cmath>#include <numeric>#include <vector>#include <qa_utils/wx_utils/unit_test_utils.h>#include <base_units.h>#include <geometry/shape_line_chain.h>#include <pcb_painter.h>#include <pcb_shape.h>#include <stroke_params.h>Go to the source code of this file.
Classes | |
| struct | DASH_RUNS |
Functions | |
| static DASH_RUNS | collectRuns (const SHAPE *aShape, LINE_STYLE aStyle, int aWidth, const KIGFX::RENDER_SETTINGS *aSettings) |
| static SHAPE_LINE_CHAIN | makeBezierChain () |
| BOOST_AUTO_TEST_CASE (BezierDashedLineHasGaps) | |
| BOOST_AUTO_TEST_CASE (BezierDottedLineIsEvenlySpaced) | |
| BOOST_AUTO_TEST_CASE | ( | BezierDashedLineHasGaps | ) |
Definition at line 99 of file test_issue25110_bezier_line_style.cpp.
References std::abs(), chain, collectRuns(), DASH, DASH_RUNS::drawn, VECTOR2< T >::EuclideanNorm(), expected, KIGFX::RENDER_SETTINGS::GetDashLength(), KIGFX::RENDER_SETTINGS::GetGapLength(), makeBezierChain(), and pcbIUScale.
| BOOST_AUTO_TEST_CASE | ( | BezierDottedLineIsEvenlySpaced | ) |
Definition at line 130 of file test_issue25110_bezier_line_style.cpp.
References std::abs(), chain, collectRuns(), DOT, DASH_RUNS::drawn, DASH_RUNS::gaps, KIGFX::RENDER_SETTINGS::GetGapLength(), makeBezierChain(), and pcbIUScale.
|
static |
Definition at line 45 of file test_issue25110_bezier_line_style.cpp.
References end, VECTOR2< T >::EuclideanNorm(), and STROKE_PARAMS::Stroke().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 83 of file test_issue25110_bezier_line_style.cpp.
References ARC_HIGH_DEF, BEZIER, EDA_SHAPE::GetBezierPoints(), pcbIUScale, EDA_SHAPE::RebuildBezierToSegmentsPointsList(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetEnd(), and PCB_SHAPE::SetStart().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().