OGS
PolylineWithSegmentMarker.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "Polyline.h"
18
19namespace GeoLib
20{
21
27{
28public:
29 explicit PolylineWithSegmentMarker(GeoLib::Polyline const& polyline);
30
36 void markSegment(std::size_t seg_num, bool mark_val = true);
42 bool isSegmentMarked(std::size_t seg_num) const;
43
49 bool addPoint(std::size_t pnt_id) override;
50
56 bool insertPoint(std::size_t pos, std::size_t pnt_id) override;
57
58private:
59 std::vector<bool> _marker;
60};
61
62} // 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:40