99 for( iterator = common.holeyPolySet.IterateWithHoles(); iterator; iterator++ )
101 BOOST_CHECK_EQUAL( common.holeyPoints[vertexIndex], *iterator );
112 int segmentIndex = 0;
114 for( iterator = common.holeyPolySet.IterateSegmentsWithHoles(); iterator; iterator++ )
116 SEG segment = *iterator;
132 for( iterator = common.emptyPolySet.IterateSegmentsWithHoles(); iterator; iterator++ )
134 BOOST_FAIL(
"Empty set is being iterated!" );
144 iterator = common.uniqueVertexPolySet.IterateSegmentsWithHoles();
146 SEG segment = *iterator;
171 SHAPE_POLY_SET polygonSets[3] = { lastNullSegmentPolySet, firstNullSegmentPolySet,
172 insideNullSegmentPolySet };
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
void SetClosed(bool aClosed)
Mark the line chain as closed (i.e.
void Clear()
Remove all points from the line chain.
void Append(int aX, int aY, bool aAllowDuplication=false)
Append a new point at the end of the line chain.
Represent a set of closed polygons.
ITERATOR_TEMPLATE< VECTOR2I > ITERATOR
SEGMENT_ITERATOR_TEMPLATE< SEG > SEGMENT_ITERATOR
Fixture for the Iterator test suite.
SHAPE_POLY_SET insideNullSegmentPolySet
std::vector< VECTOR2I > nullPoints
SHAPE_POLY_SET lastNullSegmentPolySet
SHAPE_POLY_SET firstNullSegmentPolySet
struct KI_TEST::CommonTestData common
Common data for some of the SHAPE_POLY_SET tests:
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(VertexIterator)
Declares the IteratorFixture as the boost test suite fixture.