GEOS 3.14.0dev
MarkHalfEdge.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15
16#pragma once
17
18#include <geos/geom/Coordinate.h>
19#include <geos/edgegraph/HalfEdge.h>
20
21#include <geos/export.h>
22#include <string>
23#include <cassert>
24
25namespace geos {
26namespace edgegraph { // geos.edgegraph
27
28class GEOS_DLL MarkHalfEdge : public HalfEdge {
29
30private:
31
32 bool m_isMarked;
33
34public:
35
41 MarkHalfEdge(const geom::CoordinateXYZM& p_orig) :
42 HalfEdge(p_orig),
43 m_isMarked(false)
44 {};
45
52 static bool isMarked(HalfEdge* e);
53
59 static void mark(HalfEdge* e);
60
67 static void setMark(HalfEdge* e, bool isMarked);
68
75 static void setMarkBoth(HalfEdge* e, bool isMarked);
76
82 static void markBoth(HalfEdge* e);
83
89 bool isMarked() const { return m_isMarked; }
90
95 void mark() { m_isMarked = true; }
96
102 void setMark(bool p_isMarked) { m_isMarked = p_isMarked; }
103
104};
105
106
107} // namespace geos.edgegraph
108} // namespace geos
109
110
111
Basic namespace for all GEOS functionalities.
Definition geos.h:39