58 std::unique_ptr<CoordinateSequence> sectionPts;
62 bool isEndInSameSegment(
double nextLoc)
const;
67 OffsetCurveSection(std::unique_ptr<CoordinateSequence> && secPts,
double pLoc,
double pLocLast)
68 : sectionPts(std::move(secPts))
74 std::unique_ptr<CoordinateSequence> releaseCoordinates();
76 double getLocation()
const {
return location; };
87 static std::unique_ptr<Geometry>
toLine(
88 std::vector<std::unique_ptr<OffsetCurveSection>>& sections,
91 static std::unique_ptr<Geometry> toGeometry(
92 std::vector<std::unique_ptr<OffsetCurveSection>>& sections,
95 static std::unique_ptr<OffsetCurveSection> create(
97 std::size_t start, std::size_t end,
98 double loc,
double locLast);
100 static bool OffsetCurveSectionComparator(
101 const std::unique_ptr<OffsetCurveSection>& a,
102 const std::unique_ptr<OffsetCurveSection>& b);