KiCad PCB EDA Suite
|
#include <shape_poly_set.h>
Classes | |
struct | TRI |
Public Member Functions | |
TRIANGULATED_POLYGON (int aSourceOutline) | |
TRIANGULATED_POLYGON (const TRIANGULATED_POLYGON &aOther) | |
~TRIANGULATED_POLYGON () | |
void | Clear () |
void | GetTriangle (int index, VECTOR2I &a, VECTOR2I &b, VECTOR2I &c) const |
TRIANGULATED_POLYGON & | operator= (const TRIANGULATED_POLYGON &aOther) |
void | AddTriangle (int a, int b, int c) |
void | AddVertex (const VECTOR2I &aP) |
size_t | GetTriangleCount () const |
int | GetSourceOutlineIndex () const |
void | SetSourceOutlineIndex (int aIndex) |
const std::deque< TRI > & | Triangles () const |
void | SetTriangles (const std::deque< TRI > &aTriangles) |
const std::deque< VECTOR2I > & | Vertices () const |
void | SetVertices (const std::deque< VECTOR2I > &aVertices) |
size_t | GetVertexCount () const |
void | Move (const VECTOR2I &aVec) |
Private Attributes | |
int | m_sourceOutline |
std::deque< TRI > | m_triangles |
std::deque< VECTOR2I > | m_vertices |
Definition at line 76 of file shape_poly_set.h.
SHAPE_POLY_SET::TRIANGULATED_POLYGON::TRIANGULATED_POLYGON | ( | int | aSourceOutline | ) |
Definition at line 3490 of file shape_poly_set.cpp.
SHAPE_POLY_SET::TRIANGULATED_POLYGON::TRIANGULATED_POLYGON | ( | const TRIANGULATED_POLYGON & | aOther | ) |
Definition at line 3466 of file shape_poly_set.cpp.
References m_sourceOutline, m_triangles, and m_vertices.
SHAPE_POLY_SET::TRIANGULATED_POLYGON::~TRIANGULATED_POLYGON | ( | ) |
Definition at line 3496 of file shape_poly_set.cpp.
void SHAPE_POLY_SET::TRIANGULATED_POLYGON::AddTriangle | ( | int | a, |
int | b, | ||
int | c | ||
) |
Definition at line 3460 of file shape_poly_set.cpp.
References m_triangles.
Referenced by POLYGON_TRIANGULATION::earcutList().
|
inline |
Definition at line 166 of file shape_poly_set.h.
References m_vertices.
Referenced by POLYGON_TRIANGULATION::insertTriVertex(), and POLYGON_TRIANGULATION::TesselatePolygon().
|
inline |
Definition at line 148 of file shape_poly_set.h.
References m_triangles, and m_vertices.
Referenced by POLYGON_TRIANGULATION::TesselatePolygon().
|
inline |
Definition at line 173 of file shape_poly_set.h.
References m_sourceOutline.
|
inline |
Definition at line 154 of file shape_poly_set.h.
References m_triangles, and m_vertices.
Referenced by ConvertPolygonToTriangles(), KIGFX::OPENGL_GAL::DrawGlyphs(), PNS_KICAD_IFACE_BASE::syncZone(), and KIFONT::OUTLINE_GLYPH::Triangulate().
|
inline |
Definition at line 171 of file shape_poly_set.h.
References m_triangles.
Referenced by ConvertPolygonToTriangles(), KIGFX::OPENGL_GAL::DrawGlyphs(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), PNS_KICAD_IFACE_BASE::syncZone(), and KIFONT::OUTLINE_GLYPH::Triangulate().
|
inline |
Definition at line 194 of file shape_poly_set.h.
References m_vertices.
Referenced by POLYGON_TRIANGULATION::insertTriVertex().
|
inline |
Definition at line 199 of file shape_poly_set.h.
References m_vertices.
SHAPE_POLY_SET::TRIANGULATED_POLYGON & SHAPE_POLY_SET::TRIANGULATED_POLYGON::operator= | ( | const TRIANGULATED_POLYGON & | aOther | ) |
Definition at line 3477 of file shape_poly_set.cpp.
References m_sourceOutline, m_triangles, and m_vertices.
|
inline |
Definition at line 174 of file shape_poly_set.h.
References m_sourceOutline.
|
inline |
Definition at line 177 of file shape_poly_set.h.
References m_triangles.
Referenced by POLYGON_TRIANGULATION::TesselatePolygon().
|
inline |
Definition at line 189 of file shape_poly_set.h.
References m_vertices.
|
inline |
Definition at line 176 of file shape_poly_set.h.
References m_triangles.
Referenced by POLYGON_TRIANGULATION::TesselatePolygon().
|
inline |
Definition at line 188 of file shape_poly_set.h.
References m_vertices.
Referenced by POLYGON_TRIANGULATION::TesselatePolygon().
|
private |
Definition at line 206 of file shape_poly_set.h.
Referenced by GetSourceOutlineIndex(), operator=(), SetSourceOutlineIndex(), and TRIANGULATED_POLYGON().
|
private |
Definition at line 207 of file shape_poly_set.h.
Referenced by AddTriangle(), Clear(), GetTriangle(), GetTriangleCount(), operator=(), SetTriangles(), Triangles(), and TRIANGULATED_POLYGON().
|
private |
Definition at line 208 of file shape_poly_set.h.
Referenced by AddVertex(), SHAPE_POLY_SET::TRIANGULATED_POLYGON::TRI::Area(), SHAPE_POLY_SET::TRIANGULATED_POLYGON::TRI::BBox(), Clear(), SHAPE_POLY_SET::TRIANGULATED_POLYGON::TRI::GetPoint(), SHAPE_POLY_SET::TRIANGULATED_POLYGON::TRI::GetSegment(), GetTriangle(), GetVertexCount(), Move(), operator=(), SetVertices(), TRIANGULATED_POLYGON(), and Vertices().