TerraLib 4.1
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, TeArcarcs_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

A map to associate each edge (line object_id) to its arc.

Set of nodes and the cost of each edge.


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