OGS
PolylineWithSegmentMarker.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include "Polyline.h"
18 
19 namespace GeoLib {
20 
26 public:
27  explicit PolylineWithSegmentMarker(GeoLib::Polyline const& polyline);
28 
34  void markSegment(std::size_t seg_num, bool mark_val = true);
40  bool isSegmentMarked(std::size_t seg_num) const;
41 
47  bool addPoint(std::size_t pnt_id) override;
48 
54  bool insertPoint(std::size_t pos, std::size_t pnt_id) override;
55 
56 private:
57  std::vector<bool> _marker;
58 };
59 
60 } // namespace GeoLib
Definition of the PolyLine class.
bool isSegmentMarked(std::size_t seg_num) const
void markSegment(std::size_t seg_num, bool mark_val=true)
PolylineWithSegmentMarker(GeoLib::Polyline const &polyline)
bool insertPoint(std::size_t pos, std::size_t pnt_id) override
bool addPoint(std::size_t pnt_id) override
Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices ...
Definition: Polyline.h:53