OGS
PolylineWithSegmentMarker.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 "Polyline.h"
7
8namespace GeoLib
9{
10
16{
17public:
18 explicit PolylineWithSegmentMarker(GeoLib::Polyline const& polyline);
19
25 void markSegment(std::size_t seg_num, bool mark_val = true);
31 bool isSegmentMarked(std::size_t seg_num) const;
32
38 bool addPoint(std::size_t pnt_id) override;
39
45 bool insertPoint(std::size_t pos, std::size_t pnt_id) override;
46
47private:
48 std::vector<bool> _marker;
49};
50
51} // namespace GeoLib
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:29