![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Arachne/utils/PolygonsPointIndex.hpp>
Inheritance diagram for Slic3r::Arachne::PathsPointIndex< Paths >:Public Member Functions | |
| PathsPointIndex () | |
| PathsPointIndex (const Paths *polygons, unsigned int poly_idx, unsigned int point_idx) | |
| PathsPointIndex (const PathsPointIndex &original)=default | |
| Point | p () const |
| bool | initialized () const |
| Returns whether this point is initialised. | |
| const Polygon & | getPolygon () const |
| bool | operator== (const PathsPointIndex &other) const |
| bool | operator!= (const PathsPointIndex &other) const |
| bool | operator< (const PathsPointIndex &other) const |
| PathsPointIndex & | operator= (const PathsPointIndex &other) |
| PathsPointIndex & | operator++ () |
| move the iterator forward (and wrap around at the end) | |
| PathsPointIndex & | operator-- () |
| move the iterator backward (and wrap around at the beginning) | |
| PathsPointIndex | next () const |
| move the iterator forward (and wrap around at the end) | |
| PathsPointIndex | prev () const |
| move the iterator backward (and wrap around at the beginning) | |
Public Attributes | |
| const Paths * | polygons |
| unsigned int | poly_idx |
| The index of the polygon in PolygonsPointIndex::polygons. | |
| unsigned int | point_idx |
| The index of the point in the polygon in PolygonsPointIndex::polygons. | |
A class for iterating over the points in one of the polygons in a Polygons object
|
inline |
Constructs an empty point index to no polygon.
This is used as a placeholder for when there is a zero-construction needed. Since the polygons field is const you can't ever make this initialisation useful.
|
inline |
|
default |
Copy constructor to copy these indices.
|
inline |
Get the polygon to which this PolygonsPointIndex refers
References Slic3r::Arachne::PathsPointIndex< Paths >::poly_idx, and Slic3r::Arachne::PathsPointIndex< Paths >::polygons.
|
inline |
Returns whether this point is initialised.
References Slic3r::Arachne::PathsPointIndex< Paths >::polygons.
Referenced by Slic3r::Arachne::PolylineStitcher< Paths, Path, Junction >::stitch().
Here is the caller graph for this function:
|
inline |
move the iterator forward (and wrap around at the end)
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::computePointCellRange(), boost::polygon::segment_traits< Slic3r::Arachne::PolygonsSegmentIndex >::get(), and Slic3r::Arachne::PolygonsSegmentIndex::to().
Here is the caller graph for this function:
|
inline |
|
inline |
move the iterator forward (and wrap around at the end)
References Slic3r::Arachne::PathsPointIndex< Paths >::point_idx, Slic3r::Arachne::PathsPointIndex< Paths >::poly_idx, and Slic3r::Arachne::PathsPointIndex< Paths >::polygons.
|
inline |
move the iterator backward (and wrap around at the beginning)
References Slic3r::Arachne::PathsPointIndex< Paths >::point_idx, and Slic3r::Arachne::PathsPointIndex< Paths >::poly_idx.
|
inline |
References Slic3r::Arachne::PathsPointIndex< Paths >::p().
Here is the call graph for this function:
|
inline |
References Slic3r::Arachne::PathsPointIndex< Paths >::point_idx, Slic3r::Arachne::PathsPointIndex< Paths >::poly_idx, and Slic3r::Arachne::PathsPointIndex< Paths >::polygons.
|
inline |
Test whether two iterators refer to the same polygon in the same polygon list.
| other | The PolygonsPointIndex to test for equality |
References Slic3r::Arachne::PathsPointIndex< Paths >::point_idx, Slic3r::Arachne::PathsPointIndex< Paths >::poly_idx, and Slic3r::Arachne::PathsPointIndex< Paths >::polygons.
|
inline |
References Slic3r::Arachne::make_point(), Slic3r::Arachne::PathsPointIndex< Paths >::point_idx, Slic3r::Arachne::PathsPointIndex< Paths >::poly_idx, and Slic3r::Arachne::PathsPointIndex< Paths >::polygons.
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::computePointCellRange(), Slic3r::Arachne::PolygonsSegmentIndex::from(), boost::polygon::segment_traits< Slic3r::Arachne::PolygonsSegmentIndex >::get(), Slic3r::Arachne::PathsPointIndexLocator< Paths >::operator()(), std::hash< Slic3r::Arachne::PolygonsPointIndex >::operator()(), Slic3r::Arachne::PathsPointIndex< Paths >::operator<(), Slic3r::Arachne::PolylineStitcher< Paths, Path, Junction >::stitch(), and Slic3r::Arachne::PolygonsSegmentIndex::to().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
move the iterator backward (and wrap around at the beginning)
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::computePointCellRange().
Here is the caller graph for this function:| unsigned int Slic3r::Arachne::PathsPointIndex< Paths >::point_idx |
The index of the point in the polygon in PolygonsPointIndex::polygons.
Referenced by Slic3r::Arachne::PolygonsPointIndexSegmentLocator::operator()(), Slic3r::Arachne::PathsPointIndex< Paths >::operator++(), Slic3r::Arachne::PathsPointIndex< Paths >::operator--(), Slic3r::Arachne::PathsPointIndex< Paths >::operator=(), Slic3r::Arachne::PathsPointIndex< Paths >::operator==(), Slic3r::Arachne::PathsPointIndex< Paths >::p(), and Slic3r::Arachne::PolylineStitcher< Paths, Path, Junction >::stitch().
| unsigned int Slic3r::Arachne::PathsPointIndex< Paths >::poly_idx |
The index of the polygon in PolygonsPointIndex::polygons.
Referenced by Slic3r::Arachne::PolylineStitcher< Paths, Path, Junction >::canReverse(), Slic3r::Arachne::PathsPointIndex< Paths >::getPolygon(), Slic3r::Arachne::PolygonsPointIndexSegmentLocator::operator()(), Slic3r::Arachne::PathsPointIndex< Paths >::operator++(), Slic3r::Arachne::PathsPointIndex< Paths >::operator--(), Slic3r::Arachne::PathsPointIndex< Paths >::operator=(), Slic3r::Arachne::PathsPointIndex< Paths >::operator==(), Slic3r::Arachne::PathsPointIndex< Paths >::p(), and Slic3r::Arachne::PolylineStitcher< Paths, Path, Junction >::stitch().
| const Paths* Slic3r::Arachne::PathsPointIndex< Paths >::polygons |
The polygons into which this index is indexing.
Referenced by Slic3r::Arachne::PolylineStitcher< Paths, Path, Junction >::canReverse(), Slic3r::Arachne::PathsPointIndex< Paths >::getPolygon(), Slic3r::Arachne::PathsPointIndex< Paths >::initialized(), Slic3r::Arachne::PolygonsPointIndexSegmentLocator::operator()(), Slic3r::Arachne::PathsPointIndex< Paths >::operator++(), Slic3r::Arachne::PathsPointIndex< Paths >::operator=(), Slic3r::Arachne::PathsPointIndex< Paths >::operator==(), Slic3r::Arachne::PathsPointIndex< Paths >::p(), and Slic3r::Arachne::PolylineStitcher< Paths, Path, Junction >::stitch().