KiCad PCB EDA Suite
shape.h File Reference
#include <sstream>
#include <geometry/seg.h>
#include <math/vector2d.h>
#include <math/box2.h>

Go to the source code of this file.

Classes

class  SHAPE
 SHAPE. More...
 

Enumerations

enum  SHAPE_TYPE {
  SH_RECT = 0, SH_SEGMENT, SH_LINE_CHAIN, SH_CIRCLE,
  SH_SIMPLE, SH_POLY_SET, SH_COMPOUND, SH_ARC
}
 Enum SHAPE_TYPE Lists all supported shapes. More...
 

Functions

static wxString SHAPE_TYPE_asString (SHAPE_TYPE a)
 

Enumeration Type Documentation

◆ SHAPE_TYPE

enum SHAPE_TYPE

Enum SHAPE_TYPE Lists all supported shapes.

Enumerator
SH_RECT 
SH_SEGMENT 

axis-aligned rectangle

SH_LINE_CHAIN 

line segment

SH_CIRCLE 

line chain (polyline)

SH_SIMPLE 

circle

SH_POLY_SET 

simple polygon

SH_COMPOUND 

set of polygons (with holes, etc.)

SH_ARC 

compound shape, consisting of multiple simple shapes

circular arc

Definition at line 39 of file shape.h.

40 {
41  SH_RECT = 0,
42  SH_SEGMENT,
44  SH_CIRCLE,
45  SH_SIMPLE,
46  SH_POLY_SET,
47  SH_COMPOUND,
48  SH_ARC
49 };
set of polygons (with holes, etc.)
Definition: shape.h:47
compound shape, consisting of multiple simple shapes
Definition: shape.h:48
line chain (polyline)
Definition: shape.h:44
simple polygon
Definition: shape.h:46
line segment
Definition: shape.h:43
Definition: shape.h:41
circle
Definition: shape.h:45
axis-aligned rectangle
Definition: shape.h:42

Function Documentation

◆ SHAPE_TYPE_asString()

static wxString SHAPE_TYPE_asString ( SHAPE_TYPE  a)
inlinestatic

Definition at line 51 of file shape.h.

52 {
53  switch( a )
54  {
55  case SH_RECT: return "SH_RECT";
56  case SH_SEGMENT: return "SH_SEGMENT";
57  case SH_LINE_CHAIN: return "SH_LINE_CHAIN";
58  case SH_CIRCLE: return "SH_CIRCLE";
59  case SH_SIMPLE: return "SH_SIMPLE";
60  case SH_POLY_SET: return "SH_POLY_SET";
61  case SH_COMPOUND: return "SH_COMPOUND";
62  case SH_ARC: return "SH_ARC";
63  }
64 
65  return wxEmptyString; // Just to quiet GCC.
66 }
set of polygons (with holes, etc.)
Definition: shape.h:47
compound shape, consisting of multiple simple shapes
Definition: shape.h:48
line chain (polyline)
Definition: shape.h:44
simple polygon
Definition: shape.h:46
line segment
Definition: shape.h:43
Definition: shape.h:41
circle
Definition: shape.h:45
axis-aligned rectangle
Definition: shape.h:42

References SH_ARC, SH_CIRCLE, SH_COMPOUND, SH_LINE_CHAIN, SH_POLY_SET, SH_RECT, SH_SEGMENT, and SH_SIMPLE.

Referenced by BOARD_ADAPTER::createNewPadWithClearance().