OGS
PolygonWithSegmentMarker.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "Polygon.h"
13
14namespace GeoLib
15{
16
18{
19public:
20 explicit PolygonWithSegmentMarker(GeoLib::Polyline const& polyline);
21
27 void markSegment(std::size_t seg_num, bool mark_val = true);
28
34 bool isSegmentMarked(std::size_t seg_num) const;
35
41 bool addPoint(std::size_t pnt_id) override;
42
48 bool insertPoint(std::size_t pos, std::size_t pnt_id) override;
49
50private:
51 std::vector<bool> _marker;
52};
53
54} // 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:40