KiCad PCB EDA Suite
Loading...
Searching...
No Matches
bitmap2component.cpp File Reference
#include <algorithm>
#include <cerrno>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
#include <kiid.h>
#include <build_version.h>
#include <layer_ids.h>
#include <locale_io.h>
#include <potracelib.h>
#include <fmt/format.h>
#include "bitmap2component.h"

Go to the source code of this file.

Macros

#define SCH_LINE_THICKNESS_MM   0.01
 

Functions

static void bm_free (potrace_bitmap_t *bm)
 
static void BezierToPolyline (std::vector< potrace_dpoint_t > &aCornersBuffer, potrace_dpoint_t p1, potrace_dpoint_t p2, potrace_dpoint_t p3, potrace_dpoint_t p4)
 
double square (double x)
 
double cube (double x)
 

Macro Definition Documentation

◆ SCH_LINE_THICKNESS_MM

#define SCH_LINE_THICKNESS_MM   0.01

Function Documentation

◆ BezierToPolyline()

void BezierToPolyline ( std::vector< potrace_dpoint_t > &  aCornersBuffer,
potrace_dpoint_t  p1,
potrace_dpoint_t  p2,
potrace_dpoint_t  p3,
potrace_dpoint_t  p4 
)
static

Definition at line 571 of file bitmap2component.cpp.

References cube(), delta, epsilon, and square().

Referenced by BITMAPCONV_INFO::createOutputData().

◆ bm_free()

static void bm_free ( potrace_bitmap_t *  bm)
static

Definition at line 47 of file bitmap2component.cpp.

Referenced by BITMAPCONV_INFO::ConvertBitmap().

◆ cube()

double cube ( double  x)
inline

Definition at line 564 of file bitmap2component.cpp.

Referenced by BezierToPolyline().

◆ square()

double square ( double  x)
inline

Definition at line 557 of file bitmap2component.cpp.

Referenced by BezierToPolyline(), KIGFX::dummy(), and dummy().