KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eda_shape.cpp File Reference
#include <eda_shape.h>
#include <bezier_curves.h>
#include <convert_basic_shapes_to_polygon.h>
#include <eda_draw_frame.h>
#include <geometry/shape_arc.h>
#include <geometry/shape_circle.h>
#include <geometry/shape_simple.h>
#include <geometry/shape_segment.h>
#include <geometry/shape_rect.h>
#include <geometry/roundrect.h>
#include <geometry/geometry_utils.h>
#include <macros.h>
#include <algorithm>
#include <properties/property_validators.h>
#include <math/util.h>
#include <eda_item.h>
#include <plotters/plotter.h>
#include <api/api_enums.h>
#include <api/api_utils.h>
#include <api/common/types/base_types.pb.h>

Go to the source code of this file.

Classes

struct  EDA_SHAPE_DESC
 

Macros

#define sq(x)
 
#define SWAPITEM(x)
 
#define EPSILON   2
 
#define TEST(a, b)
 
#define TEST_E(a, b)
 
#define TEST_PT(a, b)
 

Variables

static struct EDA_SHAPE_DESC _EDA_SHAPE_DESC
 

Macro Definition Documentation

◆ EPSILON

#define EPSILON   2

◆ sq

#define sq ( x)
Value:
pow( x, 2 )

Referenced by EDA_SHAPE::calcEdit().

◆ SWAPITEM

#define SWAPITEM ( x)
Value:
std::swap( x, image->x )

Referenced by EDA_SHAPE::SwapShape().

◆ TEST

#define TEST ( a,
b )

◆ TEST_E

#define TEST_E ( a,
b )
Value:
{ if( abs( a - b ) > EPSILON ) return a - b; }
#define EPSILON

Referenced by EDA_SHAPE::Compare().

◆ TEST_PT

#define TEST_PT ( a,
b )
Value:
{ TEST_E( a.x, b.x ); TEST_E( a.y, b.y ); }
#define TEST_E(a, b)

Referenced by EDA_SHAPE::Compare(), and KI_TEST::kitest_cmp_drawings::operator()().

Variable Documentation

◆ _EDA_SHAPE_DESC

struct EDA_SHAPE_DESC _EDA_SHAPE_DESC
static