MarkHalfEdge.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/geom/Coordinate.h>
#include <geos/edgegraph/HalfEdge.h>
#include <geos/export.h>
#include <string>
#include <cassert>
namespace geos {
namespace edgegraph { // geos.edgegraph
class GEOS_DLL MarkHalfEdge : public HalfEdge {
private:
bool m_isMarked;
public:
MarkHalfEdge(const geom::CoordinateXYZM& p_orig) :
HalfEdge(p_orig),
m_isMarked(false)
{};
static bool isMarked(HalfEdge* e);
static void mark(HalfEdge* e);
static void setMark(HalfEdge* e, bool isMarked);
static void setMarkBoth(HalfEdge* e, bool isMarked);
static void markBoth(HalfEdge* e);
bool isMarked() const { return m_isMarked; }
void mark() { m_isMarked = true; }
void setMark(bool p_isMarked) { m_isMarked = p_isMarked; }
};
} // namespace geos.edgegraph
} // namespace geos
geos::edgegraph::HalfEdge
Definition HalfEdge.h:56
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38