A part of a PolygonEntity exterior ring, that may be share between to adjacent PolygonEntity.
More...
#include <landr/PolygonEdge.hpp>
A part of a PolygonEntity exterior ring, that may be share between to adjacent PolygonEntity.
A PolygonEdge has one or two Faces. The Faces are the PolygonEntity that share this PolygonEdge.
◆ PolygonEdge()
openfluid::landr::PolygonEdge::PolygonEdge |
( |
geos::geom::LineString & |
Line | ) |
|
◆ ~PolygonEdge()
openfluid::landr::PolygonEdge::~PolygonEdge |
( |
| ) |
|
◆ addFace()
void openfluid::landr::PolygonEdge::addFace |
( |
PolygonEntity & |
NewFace | ) |
|
◆ getAttributeValue()
bool openfluid::landr::PolygonEdge::getAttributeValue |
( |
const std::string & |
AttributeName, |
|
|
core::Value & |
Value |
|
) |
| const |
Gets the value of an attribute of this PolygonEdge.
- Parameters
-
AttributeName | The name of the attribute to get. |
Value | The core::Value to assign the attribute value. |
- Returns
- True if the attribute exists, false otherwise.
◆ getFaces()
const std::vector<PolygonEntity*> openfluid::landr::PolygonEdge::getFaces |
( |
| ) |
|
◆ isCoincident()
bool openfluid::landr::PolygonEdge::isCoincident |
( |
PolygonEdge * |
Edge | ) |
|
◆ isLineInFace()
bool openfluid::landr::PolygonEdge::isLineInFace |
( |
PolygonEntity & |
Face | ) |
|
◆ line()
geos::geom::LineString* openfluid::landr::PolygonEdge::line |
( |
| ) |
|
Returns the geos::geom::LineString representing this PolygonEdge.
◆ removeAttribute()
void openfluid::landr::PolygonEdge::removeAttribute |
( |
const std::string & |
AttributeName | ) |
|
Removes an attribute of this PolygonEdge.
- Parameters
-
AttributeName | The name of the attribute to set. |
◆ removeFace()
void openfluid::landr::PolygonEdge::removeFace |
( |
PolygonEntity * |
Face | ) |
|
Removes a Face from the Faces of this PolygonEdge.
Does nothing if the input Face is not a part of this PolygonEdge Faces.
- Parameters
-
◆ setAttributeValue()
bool openfluid::landr::PolygonEdge::setAttributeValue |
( |
const std::string & |
AttributeName, |
|
|
const core::Value * |
Value |
|
) |
| |
Sets the value of an attribute of this PolygonEdge.
Takes the ownership of Value.
- Parameters
-
AttributeName | The name of the attribute to set. |
Value | The core::Value assign to the attribute value. |
- Returns
- True if the attribute exists, false otherwise.
◆ m_EdgeAttributes
std::map<std::string, core::Value*> openfluid::landr::PolygonEdge::m_EdgeAttributes |
Map of Attributes which are carried by this PolygonEdge.
The documentation for this class was generated from the following file: