| 
    KiCad PCB EDA Suite
    
   | 
 
#include "svg_import_plugin.h"#include <nanosvg.h>#include <algorithm>#include <cmath>#include <locale_io.h>#include <eda_item.h>#include "graphics_importer.h"Go to the source code of this file.
Functions | |
| static VECTOR2D | calculateBezierBoundingBoxExtremity (const float *aCurvePoints, std::function< const float &(const float &, const float &) > comparator) | 
| static float | calculateBezierSegmentationThreshold (const float *aCurvePoints) | 
| static void | segmentBezierCurve (const VECTOR2D &aStart, const VECTOR2D &aEnd, float aOffset, float aStep, const float *aCurvePoints, float aSegmentationThreshold, std::vector< VECTOR2D > &aGeneratedPoints) | 
| static void | createNewBezierCurveSegments (const VECTOR2D &aStart, const VECTOR2D &aMiddle, const VECTOR2D &aEnd, float aOffset, float aStep, const float *aCurvePoints, float aSegmentationThreshold, std::vector< VECTOR2D > &aGeneratedPoints) | 
| static VECTOR2D | getBezierPoint (const float *aCurvePoints, float aStep) | 
| static VECTOR2D | getPoint (const float *aPointCoordinates) | 
| static VECTOR2D | getPointInLine (const VECTOR2D &aLineStart, const VECTOR2D &aLineEnd, float aDistance) | 
| static float | distanceFromPointToLine (const VECTOR2D &aPoint, const VECTOR2D &aLineStart, const VECTOR2D &aLineEnd) | 
| static void | GatherInterpolatedCubicBezierCurve (const float *aPoints, std::vector< VECTOR2D > &aGeneratedPoints) | 
| static void | GatherInterpolatedCubicBezierPath (const float *aPoints, int aNumPoints, std::vector< VECTOR2D > &aGeneratedPoints) | 
Variables | |
| static const int | SVG_DPI = 96 | 
      
  | 
  static | 
Definition at line 430 of file svg_import_plugin.cpp.
Referenced by calculateBezierSegmentationThreshold().
      
  | 
  static | 
Definition at line 415 of file svg_import_plugin.cpp.
References calculateBezierBoundingBoxExtremity(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by GatherInterpolatedCubicBezierCurve().
      
  | 
  static | 
Definition at line 462 of file svg_import_plugin.cpp.
References segmentBezierCurve().
Referenced by segmentBezierCurve().
      
  | 
  static | 
Definition at line 480 of file svg_import_plugin.cpp.
References distance(), VECTOR2< T >::Perpendicular(), and VECTOR2< T >::Resize().
Referenced by segmentBezierCurve().
      
  | 
  static | 
Definition at line 275 of file svg_import_plugin.cpp.
References calculateBezierSegmentationThreshold(), end, getBezierPoint(), and segmentBezierCurve().
Referenced by GatherInterpolatedCubicBezierPath().
      
  | 
  static | 
Definition at line 290 of file svg_import_plugin.cpp.
References GatherInterpolatedCubicBezierCurve().
Referenced by SVG_IMPORT_PLUGIN::DrawPath().
      
  | 
  static | 
Definition at line 388 of file svg_import_plugin.cpp.
References getPoint(), and getPointInLine().
Referenced by GatherInterpolatedCubicBezierCurve(), and segmentBezierCurve().
      
  | 
  static | 
Definition at line 382 of file svg_import_plugin.cpp.
Referenced by SVG_IMPORT_PLUGIN::DrawSplinePath(), and getBezierPoint().
      
  | 
  static | 
Definition at line 408 of file svg_import_plugin.cpp.
Referenced by getBezierPoint().
      
  | 
  static | 
Definition at line 446 of file svg_import_plugin.cpp.
References createNewBezierCurveSegments(), distanceFromPointToLine(), and getBezierPoint().
Referenced by createNewBezierCurveSegments(), and GatherInterpolatedCubicBezierCurve().
      
  | 
  static | 
Definition at line 36 of file svg_import_plugin.cpp.
Referenced by SVG_IMPORT_PLUGIN::GetImageHeight(), SVG_IMPORT_PLUGIN::GetImageWidth(), SVG_IMPORT_PLUGIN::Load(), and SVG_IMPORT_PLUGIN::LoadFromMemory().