![]() |
TerraLib 4.1
|
class for handling networks More...
#include <TeNetwork.h>
Public Member Functions | |
| TeNetwork () | |
| Empty constructor. | |
| TeNetwork (TeLineSet &ls) | |
| Create a graph from TeLineSet, the line size is considered the cost. | |
| bool | minimumPath (TeNode &n1, TeNodeSet &set, vector< double > &dist) |
| Calculate the minimun path. | |
| void | insertLine (TeLine2D &line, const double &attr) |
| Insert a new line. | |
| bool | insertNode (TeNode &node, int i) |
| Insert a new node. | |
| bool | getNode (int i, TeNode &node) |
| Get the i-th node. | |
| bool | nearestNetworkPoint (TeCoord2D &p1, int &lindex, TeCoord2D &pinter, double &distance, double tol=0.0) |
| Get the nearest network point of a specific point (p1) | |
| bool | nearestNodePoint (TeCoord2D &p1, int &lindex, TeCoord2D &pinter, double &distance, double tol=0.0) |
| Get the nearest network node of a specific point (p1) | |
| virtual | ~TeNetwork () |
| Destructor. | |
| TeLineSet | getLineSet () |
| Get line Set. | |
Public Attributes | |
| br_stl::Graph< TeNode, double > | graph_ |
| Set of nodes and the cost of each edge. | |
| TeLineSet | line_set_ |
| Set of edges. | |
| map< string, TeArc > | arcs_map_ |
| A map to associate each edge (line object_id) to its arc. | |
class for handling networks
| TeNetwork::TeNetwork | ( | ) | [inline] |
Empty constructor.
| TeNetwork::TeNetwork | ( | TeLineSet & | ls | ) |
Create a graph from TeLineSet, the line size is considered the cost.
| virtual TeNetwork::~TeNetwork | ( | ) | [inline, virtual] |
Destructor.
| TeLineSet TeNetwork::getLineSet | ( | ) | [inline] |
Get line Set.
| bool TeNetwork::getNode | ( | int | i, |
| TeNode & | node | ||
| ) |
Get the i-th node.
| void TeNetwork::insertLine | ( | TeLine2D & | line, |
| const double & | attr | ||
| ) |
Insert a new line.
| bool TeNetwork::insertNode | ( | TeNode & | node, |
| int | i | ||
| ) |
Insert a new node.
Calculate the minimun path.
| bool TeNetwork::nearestNetworkPoint | ( | TeCoord2D & | p1, |
| int & | lindex, | ||
| TeCoord2D & | pinter, | ||
| double & | distance, | ||
| double | tol = 0.0 |
||
| ) |
Get the nearest network point of a specific point (p1)
| bool TeNetwork::nearestNodePoint | ( | TeCoord2D & | p1, |
| int & | lindex, | ||
| TeCoord2D & | pinter, | ||
| double & | distance, | ||
| double | tol = 0.0 |
||
| ) |
Get the nearest network node of a specific point (p1)
| map<string, TeArc> TeNetwork::arcs_map_ |
A map to associate each edge (line object_id) to its arc.
| br_stl::Graph<TeNode, double> TeNetwork::graph_ |
Set of nodes and the cost of each edge.
Set of edges.