A LandREntity representing a geos::geom::LineString. More...
#include <landr/LineStringEntity.hpp>
Public Member Functions | |
LineStringEntity (const geos::geom::Geometry *NewLine, unsigned int OfldId) | |
Creates a new LineStringEntity. More... | |
virtual | ~LineStringEntity () |
LineStringEntity * | clone () |
Clones a LineStringEntity into a new LineStringEntity. More... | |
const geos::geom::LineString * | getLine () const |
Returns the geos::geom::LineString of this LineStringEntity. More... | |
geos::planargraph::Node * | getStartNode () |
Returns the start geos::planargraph::Node of this LineStringEntity. More... | |
geos::planargraph::Node * | getEndNode () |
Returns the end geos::planargraph::Node of this LineStringEntity. More... | |
std::vector< LineStringEntity * > | getLineOrientUpNeighbours () |
Return a vector of up-neighbours LineStringEntity using the line orientation of this LineStringEntity. More... | |
std::vector< LineStringEntity * > | getLineOrientDownNeighbours () |
Return a vector of down-neighbours LineStringEntity using the line orientation of this LineStringEntity. More... | |
void | computeNeighbours () |
Compute the neighbours using line orientation of this LineStringEntity. More... | |
![]() | |
LandREntity (const geos::geom::Geometry *Geom, unsigned int OfldId) | |
virtual | ~LandREntity () |
const geos::geom::Geometry * | getGeometry () |
Returns the geos::geom::Geometry of this LandREntity. More... | |
unsigned int | getOfldId () const |
Returns the identifier of this LandREntity. More... | |
geos::geom::Point * | getCentroid () const |
Returns the centroid of this LandREntity. More... | |
double | getArea () const |
Returns the area of this LandREntity. More... | |
double | getLength () const |
Returns the length of this LandREntity. More... | |
std::set< LandREntity * > * | getNeighbours () |
Returns a set of LandREntity neighbours of this LandREntity. More... | |
bool | getAttributeValue (const std::string &AttributeName, core::Value &Value) const |
Gets the value of an attribute. More... | |
bool | setAttributeValue (const std::string &AttributeName, const core::Value *Value) |
Sets the value of an attribute. More... | |
double | getDistCentroCentro (LandREntity &Other) |
Gets the distance between this LandREntity centroid and Other LandREntity centroid. More... | |
LandREntity * | getNeighbour_MinDistCentroCentro () |
Gets the LandREntity neighbour that has the minimum centroid-to-centroid distance. More... | |
Additional Inherited Members | |
![]() | |
const geos::geom::Geometry * | mp_Geom |
The geos::geom::Geometry of this LandREntity. More... | |
unsigned int | m_OfldId |
The identifier of this LandREntity. More... | |
geos::geom::Point * | mp_Centroid |
The centroid of this LandREntity. More... | |
double | m_Area |
The area of this LandREntity. More... | |
double | m_Lenght |
The length of this LandREntity. More... | |
std::set< LandREntity * > * | mp_Neighbours |
A set of LandREntity neighbours of this LandREntity. More... | |
std::map< std::string, core::Value * > | m_Attributes |
A map of attributes of this LandREntity. More... | |
A LandREntity representing a geos::geom::LineString.
A LineStringEntity has a StartNode and an EndNode, relatives to its LineString orientation.
openfluid::landr::LineStringEntity::LineStringEntity | ( | const geos::geom::Geometry * | NewLine, |
unsigned int | OfldId | ||
) |
Creates a new LineStringEntity.
Takes ownership of NewLine.
base::OFException | if NewLine is not a geos::geom::LineString or is an empty geometry. |
|
virtual |
|
virtual |
Clones a LineStringEntity into a new LineStringEntity.
Implements openfluid::landr::LandREntity.
|
virtual |
Compute the neighbours using line orientation of this LineStringEntity.
Implements openfluid::landr::LandREntity.
geos::planargraph::Node* openfluid::landr::LineStringEntity::getEndNode | ( | ) |
Returns the end geos::planargraph::Node of this LineStringEntity.
const geos::geom::LineString* openfluid::landr::LineStringEntity::getLine | ( | ) | const |
Returns the geos::geom::LineString of this LineStringEntity.
std::vector<LineStringEntity*> openfluid::landr::LineStringEntity::getLineOrientDownNeighbours | ( | ) |
Return a vector of down-neighbours LineStringEntity using the line orientation of this LineStringEntity.
std::vector<LineStringEntity*> openfluid::landr::LineStringEntity::getLineOrientUpNeighbours | ( | ) |
Return a vector of up-neighbours LineStringEntity using the line orientation of this LineStringEntity.
geos::planargraph::Node* openfluid::landr::LineStringEntity::getStartNode | ( | ) |
Returns the start geos::planargraph::Node of this LineStringEntity.