OGS
PolygonWithSegmentMarker.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include "Polygon.h"
7
8namespace GeoLib
9{
10
12{
13public:
14 explicit PolygonWithSegmentMarker(GeoLib::Polyline const& polyline);
15
21 void markSegment(std::size_t seg_num, bool mark_val = true);
22
28 bool isSegmentMarked(std::size_t seg_num) const;
29
35 bool addPoint(std::size_t pnt_id) override;
36
42 bool insertPoint(std::size_t pos, std::size_t pnt_id) override;
43
44private:
45 std::vector<bool> _marker;
46};
47
48} // end namespace GeoLib
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:29