All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
openfluid::landr::PolygonEdge Class Reference

A part of a PolygonEntity exterior ring, that may be share between to adjacent PolygonEntity. More...

#include <landr/PolygonEdge.hpp>

List of all members.

Public Member Functions

 PolygonEdge (geos::geom::LineString &Line)
 ~PolygonEdge ()
geos::geom::LineString * getLine ()
 Returns the geos::geom::LineString representing this PolygonEdge.
void addFace (PolygonEntity &NewFace)
 Add a PolygonEntity as a Face to this PolygonEdge.
bool isLineInFace (PolygonEntity &Face)
 Returns true if this PolygonEdge is in the boundary of the input PolygonEntity.
const std::vector
< PolygonEntity * > 
getFaces ()
 Returns a vector of PolygonEntity which represent the Faces of this PolygonEdge.
void removeFace (PolygonEntity *Face)
 Removes a Face from the Faces of this PolygonEdge.
bool getAttributeValue (const std::string &AttributeName, core::Value &Value) const
 Gets the value of an attribute of this PolygonEdge.
bool setAttributeValue (const std::string &AttributeName, const core::Value *Value)
 Sets the value of an attribute of this PolygonEdge.
void removeAttribute (const std::string &AttributeName)
 Removes an attribute of this PolygonEdge.
bool isCoincident (PolygonEdge *Edge)
 Returns true if this PolygonEdge is coincident with an other PolygonEdge.

Public Attributes

std::map< std::string,
core::Value * > 
m_EdgeAttributes
 Map of Attributes which are carried by this PolygonEdge.

Detailed Description

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.


Constructor & Destructor Documentation

openfluid::landr::PolygonEdge::PolygonEdge ( geos::geom::LineString &  Line)

Member Function Documentation

Add a PolygonEntity as a Face to this PolygonEdge.

Parameters:
NewFaceA PolygonEntity.
Exceptions:
base::OFExceptionif this PolygonEdge is not in the boundary of the input PolygonEntity, or if this PolygonEdge has already two Faces.
bool openfluid::landr::PolygonEdge::getAttributeValue ( const std::string &  AttributeName,
core::Value Value 
) const

Gets the value of an attribute of this PolygonEdge.

Parameters:
AttributeNameThe name of the attribute to get.
ValueThe core::Value to assign the attribute value.
Returns:
True if the attribute exists, false otherwise.

Returns a vector of PolygonEntity which represent the Faces of this PolygonEdge.

geos::geom::LineString* openfluid::landr::PolygonEdge::getLine ( )

Returns the geos::geom::LineString representing this PolygonEdge.

Returns true if this PolygonEdge is coincident with an other PolygonEdge.

Parameters:
EdgeThe PolygonEdge to test the coincidence.
Returns:
True if the two PolygonEdge are coincidents, false otherwise.

Returns true if this PolygonEdge is in the boundary of the input PolygonEntity.

Parameters:
FaceA PolygonEntity.
Returns:
True if this PolygonEdge is in the boundary of the input PolygonEntity, false otherwise.
void openfluid::landr::PolygonEdge::removeAttribute ( const std::string &  AttributeName)

Removes an attribute of this PolygonEdge.

Parameters:
AttributeNameThe name of the attribute to set.

Removes a Face from the Faces of this PolygonEdge.

Does nothing if the input Face is not a part of this PolygonEdge Faces.

Parameters:
FaceA PolygonEntity.
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:
AttributeNameThe name of the attribute to set.
ValueThe core::Value assign to the attribute value.
Returns:
True if the attribute exists, false otherwise.

Member Data Documentation

Map of Attributes which are carried by this PolygonEdge.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines