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

A LandREntity representing a geos::geom::LineString. More...

#include <landr/LineStringEntity.hpp>

Inheritance diagram for openfluid::landr::LineStringEntity:
openfluid::landr::LandREntity

List of all members.

Public Member Functions

 LineStringEntity (const geos::geom::Geometry *NewLine, unsigned int OfldId)
 Creates a new LineStringEntity.
virtual ~LineStringEntity ()
LineStringEntityclone ()
 Clones a LineStringEntity into a new LineStringEntity.
const geos::geom::LineString * getLine () const
 Returns the geos::geom::LineString of this LineStringEntity.
geos::planargraph::Node * getStartNode ()
 Returns the start geos::planargraph::Node of this LineStringEntity.
geos::planargraph::Node * getEndNode ()
 Returns the end geos::planargraph::Node of this LineStringEntity.
std::vector< LineStringEntity * > getLineOrientUpNeighbours ()
 Return a vector of up-neighbours LineStringEntity using the line orientation of this LineStringEntity.
std::vector< LineStringEntity * > getLineOrientDownNeighbours ()
 Return a vector of down-neighbours LineStringEntity using the line orientation of this LineStringEntity.
void computeNeighbours ()
 Compute the neighbours using line orientation of this LineStringEntity.

Detailed Description

A LandREntity representing a geos::geom::LineString.

A LineStringEntity has a StartNode and an EndNode, relatives to its LineString orientation.


Constructor & Destructor Documentation

openfluid::landr::LineStringEntity::LineStringEntity ( const geos::geom::Geometry *  NewLine,
unsigned int  OfldId 
)

Creates a new LineStringEntity.

Takes ownership of NewLine.

Exceptions:
base::OFExceptionif NewLine is not a geos::geom::LineString or is an empty geometry.

Member Function Documentation

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.

Return a vector of down-neighbours LineStringEntity using the line orientation of this LineStringEntity.

Return a vector of up-neighbours LineStringEntity using the line orientation of this LineStringEntity.

Returns the start geos::planargraph::Node of this LineStringEntity.


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