59 std::unique_ptr<CoordinateSequence> sectionPts;
63 bool isEndInSameSegment(
double nextLoc)
const;
68 OffsetCurveSection(std::unique_ptr<CoordinateSequence> && secPts,
double pLoc,
double pLocLast)
69 : sectionPts(std::move(secPts))
75 std::unique_ptr<CoordinateSequence> releaseCoordinates();
77 double getLocation()
const {
return location; };
88 static std::unique_ptr<Geometry>
toLine(
89 std::vector<std::unique_ptr<OffsetCurveSection>>& sections,
92 static std::unique_ptr<Geometry> toGeometry(
93 std::vector<std::unique_ptr<OffsetCurveSection>>& sections,
96 static std::unique_ptr<OffsetCurveSection> create(
98 std::size_t start, std::size_t end,
99 double loc,
double locLast);
101 static bool OffsetCurveSectionComparator(
102 const std::unique_ptr<OffsetCurveSection>& a,
103 const std::unique_ptr<OffsetCurveSection>& b);