KiCad PCB EDA Suite
Loading...
Searching...
No Matches
POLYGON_TEST::Vertex Struct Reference

Public Member Functions

 Vertex (int aIndex, double aX, double aY, POLYGON_TEST *aParent)
 
Vertexoperator= (const Vertex &)=delete
 
Vertexoperator= (Vertex &&)=delete
 
bool operator== (const Vertex &rhs) const
 
bool operator!= (const Vertex &rhs) const
 
void remove ()
 Remove the node from the linked list and z-ordered linked list.
 
void updateOrder ()
 
void updateList ()
 After inserting or changing nodes, this function should be called to remove duplicate vertices and ensure z-ordering is correct.
 
void zSort ()
 Sort all vertices in this vertex's list by their Morton code.
 

Public Attributes

const int i
 
const double x
 
const double y
 
POLYGON_TESTparent
 
Vertexprev = nullptr
 
Vertexnext = nullptr
 
int32_t z = 0
 
VertexprevZ = nullptr
 
VertexnextZ = nullptr
 

Detailed Description

Definition at line 166 of file drc_test_provider_connection_width.cpp.

Constructor & Destructor Documentation

◆ Vertex()

POLYGON_TEST::Vertex::Vertex ( int  aIndex,
double  aX,
double  aY,
POLYGON_TEST aParent 
)
inline

Definition at line 168 of file drc_test_provider_connection_width.cpp.

Member Function Documentation

◆ operator!=()

bool POLYGON_TEST::Vertex::operator!= ( const Vertex rhs) const
inline

Definition at line 183 of file drc_test_provider_connection_width.cpp.

◆ operator=() [1/2]

Vertex & POLYGON_TEST::Vertex::operator= ( const Vertex )
delete

◆ operator=() [2/2]

Vertex & POLYGON_TEST::Vertex::operator= ( Vertex &&  )
delete

◆ operator==()

bool POLYGON_TEST::Vertex::operator== ( const Vertex rhs) const
inline

Definition at line 179 of file drc_test_provider_connection_width.cpp.

References x, and y.

◆ remove()

void POLYGON_TEST::Vertex::remove ( )
inline

Remove the node from the linked list and z-ordered linked list.

Definition at line 188 of file drc_test_provider_connection_width.cpp.

References next, nextZ, prev, and prevZ.

Referenced by POLYGON_TEST::createList(), and updateList().

◆ updateList()

void POLYGON_TEST::Vertex::updateList ( )
inline

After inserting or changing nodes, this function should be called to remove duplicate vertices and ensure z-ordering is correct.

Remove duplicates

Definition at line 215 of file drc_test_provider_connection_width.cpp.

References next, prev, remove(), updateOrder(), and zSort().

◆ updateOrder()

void POLYGON_TEST::Vertex::updateOrder ( )
inline

Definition at line 205 of file drc_test_provider_connection_width.cpp.

References parent, x, y, z, and POLYGON_TEST::zOrder().

Referenced by updateList().

◆ zSort()

void POLYGON_TEST::Vertex::zSort ( )
inline

Sort all vertices in this vertex's list by their Morton code.

Definition at line 244 of file drc_test_provider_connection_width.cpp.

References next, nextZ, and prevZ.

Referenced by updateList().

Member Data Documentation

◆ i

const int POLYGON_TEST::Vertex::i

◆ next

◆ nextZ

◆ parent

POLYGON_TEST* POLYGON_TEST::Vertex::parent

Definition at line 284 of file drc_test_provider_connection_width.cpp.

Referenced by updateOrder().

◆ prev

◆ prevZ

◆ x

◆ y

◆ z

int32_t POLYGON_TEST::Vertex::z = 0

Definition at line 291 of file drc_test_provider_connection_width.cpp.

Referenced by POLYGON_TEST::getKink(), and updateOrder().


The documentation for this struct was generated from the following file: