| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes
TeNetwork Class Reference

class for handling networks More...

`#include <TeNetwork.h>`

List of all members.

## 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.

## Detailed Description

class for handling networks

## Constructor & Destructor Documentation

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.

## Member Function Documentation

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.

bool TeNetwork::minimumPath | ( | TeNode & | n1,
|  | TeNodeSet & | set,
|  | vector< double > & | dist
| ) |  |

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)

## Member Data Documentation

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.

TeLineSet TeNetwork::line_set_

Set of edges.

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeNetwork.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeNetwork.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines