OGS
PolygonWithSegmentMarker.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "Polygon.h"
13 
14 namespace GeoLib {
15 
17 {
18 public:
19  explicit PolygonWithSegmentMarker(GeoLib::Polyline const& polyline);
20 
26  void markSegment(std::size_t seg_num, bool mark_val = true);
27 
33  bool isSegmentMarked(std::size_t seg_num) const;
34 
40  bool addPoint(std::size_t pnt_id) override;
41 
47  bool insertPoint(std::size_t pos, std::size_t pnt_id) override;
48 
49 private:
50  std::vector<bool> _marker;
51 };
52 
53 } // end namespace GeoLib
Definition of the Polygon class.
bool isSegmentMarked(std::size_t seg_num) const
PolygonWithSegmentMarker(GeoLib::Polyline const &polyline)
bool insertPoint(std::size_t pos, std::size_t pnt_id) override
bool addPoint(std::size_t pnt_id) override
void markSegment(std::size_t seg_num, bool mark_val=true)
Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices ...
Definition: Polyline.h:51