KiCad PCB EDA Suite
|
Base class for iterating over all vertices in a given SHAPE_POLY_SET. More...
#include <shape_poly_set.h>
Public Member Functions | |
bool | IsEndContour () const |
bool | IsLastPolygon () const |
operator bool () const | |
void | Advance () |
Advance the indices of the current vertex/outline/contour, checking whether the vertices in the holes have to be iterated through. | |
void | operator++ (int dummy) |
void | operator++ () |
const T & | Get () |
const T & | operator* () |
const T * | operator-> () |
VERTEX_INDEX | GetIndex () |
Private Attributes | |
SHAPE_POLY_SET * | m_poly |
int | m_currentPolygon |
int | m_currentContour |
int | m_currentVertex |
int | m_lastPolygon |
bool | m_iterateHoles |
Friends | |
class | SHAPE_POLY_SET |
Base class for iterating over all vertices in a given SHAPE_POLY_SET.
Definition at line 234 of file shape_poly_set.h.
|
inline |
Advance the indices of the current vertex/outline/contour, checking whether the vertices in the holes have to be iterated through.
Definition at line 274 of file shape_poly_set.h.
References SHAPE_POLY_SET::CPolygon(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentContour, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentPolygon, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentVertex, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_iterateHoles, and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_poly.
Referenced by SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator++().
|
inline |
Definition at line 322 of file shape_poly_set.h.
References SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentContour, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentPolygon, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentVertex, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_poly, and SHAPE_POLY_SET::Polygon().
Referenced by SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator*(), and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator->().
|
inline |
Definition at line 340 of file shape_poly_set.h.
References SHAPE_POLY_SET::VERTEX_INDEX::m_contour, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentContour, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentPolygon, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentVertex, SHAPE_POLY_SET::VERTEX_INDEX::m_polygon, and SHAPE_POLY_SET::VERTEX_INDEX::m_vertex.
Referenced by SHAPE_POLY_SET::RemoveNullSegments().
|
inline |
Definition at line 242 of file shape_poly_set.h.
References SHAPE_POLY_SET::CPolygon(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentContour, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentPolygon, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentVertex, and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_poly.
Referenced by PCB_POINT_EDITOR::addCorner(), DSN::SPECCTRA_DB::FromBOARD(), DSN::SPECCTRA_DB::makeIMAGE(), and SHAPE_POLY_SET::RemoveNullSegments().
|
inline |
Definition at line 251 of file shape_poly_set.h.
References SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentPolygon, and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_lastPolygon.
|
inline |
Definition at line 256 of file shape_poly_set.h.
References SHAPE_POLY_SET::CPolygon(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentContour, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentPolygon, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_currentVertex, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_lastPolygon, SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::m_poly, and SHAPE_POLY_SET::OutlineCount().
|
inline |
Definition at line 327 of file shape_poly_set.h.
References SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Get().
|
inline |
Definition at line 317 of file shape_poly_set.h.
References SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Advance().
|
inline |
Definition at line 312 of file shape_poly_set.h.
References SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Advance().
|
inline |
Definition at line 332 of file shape_poly_set.h.
References SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Get().
|
friend |
Definition at line 352 of file shape_poly_set.h.
|
private |
Definition at line 356 of file shape_poly_set.h.
Referenced by SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Advance(), SHAPE_POLY_SET::CIterate(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Get(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::GetIndex(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::IsEndContour(), SHAPE_POLY_SET::Iterate(), SHAPE_POLY_SET::IterateFromVertexWithHoles(), and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator bool().
|
private |
Definition at line 355 of file shape_poly_set.h.
Referenced by SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Advance(), SHAPE_POLY_SET::CIterate(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Get(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::GetIndex(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::IsEndContour(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::IsLastPolygon(), SHAPE_POLY_SET::Iterate(), SHAPE_POLY_SET::IterateFromVertexWithHoles(), and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator bool().
|
private |
Definition at line 357 of file shape_poly_set.h.
Referenced by SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Advance(), SHAPE_POLY_SET::CIterate(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Get(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::GetIndex(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::IsEndContour(), SHAPE_POLY_SET::Iterate(), SHAPE_POLY_SET::IterateFromVertexWithHoles(), and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator bool().
|
private |
Definition at line 359 of file shape_poly_set.h.
Referenced by SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Advance(), SHAPE_POLY_SET::CIterate(), and SHAPE_POLY_SET::Iterate().
|
private |
Definition at line 358 of file shape_poly_set.h.
Referenced by SHAPE_POLY_SET::CIterate(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::IsLastPolygon(), SHAPE_POLY_SET::Iterate(), and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator bool().
|
private |
Definition at line 354 of file shape_poly_set.h.
Referenced by SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Advance(), SHAPE_POLY_SET::CIterate(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::Get(), SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::IsEndContour(), SHAPE_POLY_SET::Iterate(), and SHAPE_POLY_SET::ITERATOR_TEMPLATE< T >::operator bool().