KiCad PCB EDA Suite
|
#include <sweep_context.h>
Classes | |
struct | Basin |
struct | EdgeEvent |
Public Member Functions | |
SweepContext (std::vector< Point * > polyline) | |
Constructor. More... | |
~SweepContext () | |
Destructor. More... | |
void | set_head (Point *p1) |
Point * | head () |
void | set_tail (Point *p1) |
Point * | tail () |
int | point_count () |
Node & | LocateNode (Point &point) |
void | RemoveNode (Node *node) |
void | CreateAdvancingFront (std::vector< Node * > nodes) |
void | MapTriangleToNodes (Triangle &t) |
Try to map a node to all sides of this triangle that don't have a neighbor. More... | |
void | AddToMap (Triangle *triangle) |
Point * | GetPoint (const int &index) |
Point * | GetPoints () |
void | RemoveFromMap (Triangle *triangle) |
void | AddHole (std::vector< Point * > polyline) |
void | AddPoint (Point *point) |
AdvancingFront * | front () |
void | MeshClean (Triangle &triangle) |
std::vector< Triangle * > | GetTriangles () |
std::list< Triangle * > | GetMap () |
Public Attributes | |
std::vector< Edge * > | edge_list |
Basin | basin |
EdgeEvent | edge_event |
Private Member Functions | |
void | InitTriangulation () |
void | InitEdges (std::vector< Point * > polyline) |
Private Attributes | |
std::vector< Triangle * > | triangles_ |
std::list< Triangle * > | map_ |
std::vector< Point * > | points_ |
AdvancingFront * | front_ |
Point * | head_ |
Point * | tail_ |
Node * | af_head_ |
Node * | af_middle_ |
Node * | af_tail_ |
Friends | |
class | Sweep |
Definition at line 51 of file sweep_context.h.
p2t::SweepContext::SweepContext | ( | std::vector< Point * > | polyline | ) |
Constructor.
p2t::SweepContext::~SweepContext | ( | ) |
Destructor.
void p2t::SweepContext::AddHole | ( | std::vector< Point * > | polyline | ) |
void p2t::SweepContext::AddPoint | ( | Point * | point | ) |
void p2t::SweepContext::AddToMap | ( | Triangle * | triangle | ) |
void p2t::SweepContext::CreateAdvancingFront | ( | std::vector< Node * > | nodes | ) |
|
inline |
std::list<Triangle*> p2t::SweepContext::GetMap | ( | ) |
Point* p2t::SweepContext::GetPoint | ( | const int & | index | ) |
Point* p2t::SweepContext::GetPoints | ( | ) |
std::vector<Triangle*> p2t::SweepContext::GetTriangles | ( | ) |
|
inline |
Definition at line 169 of file sweep_context.h.
References head_.
|
private |
|
private |
void p2t::SweepContext::MapTriangleToNodes | ( | Triangle & | t | ) |
Try to map a node to all sides of this triangle that don't have a neighbor.
void p2t::SweepContext::MeshClean | ( | Triangle & | triangle | ) |
|
inline |
void p2t::SweepContext::RemoveFromMap | ( | Triangle * | triangle | ) |
void p2t::SweepContext::RemoveNode | ( | Node * | node | ) |
|
inline |
Definition at line 164 of file sweep_context.h.
References head_.
|
inline |
Definition at line 174 of file sweep_context.h.
References tail_.
|
inline |
Definition at line 179 of file sweep_context.h.
References tail_.
|
friend |
Definition at line 134 of file sweep_context.h.
|
private |
Definition at line 147 of file sweep_context.h.
|
private |
Definition at line 147 of file sweep_context.h.
|
private |
Definition at line 147 of file sweep_context.h.
Basin p2t::SweepContext::basin |
Definition at line 129 of file sweep_context.h.
EdgeEvent p2t::SweepContext::edge_event |
Definition at line 130 of file sweep_context.h.
std::vector<Edge*> p2t::SweepContext::edge_list |
Definition at line 97 of file sweep_context.h.
|
private |
Definition at line 141 of file sweep_context.h.
Referenced by front().
|
private |
Definition at line 143 of file sweep_context.h.
Referenced by head(), and set_head().
|
private |
Definition at line 137 of file sweep_context.h.
|
private |
Definition at line 138 of file sweep_context.h.
Referenced by point_count().
|
private |
Definition at line 145 of file sweep_context.h.
Referenced by set_tail(), and tail().
|
private |
Definition at line 136 of file sweep_context.h.