This strategy is based on Serio Rosim method, using this "mask" is possible extract a graph from a LDD image.
More...
#include <LDDGraphBuilder.h>
|
int | getEdgeId () |
| Function used to generated the edge id. More...
|
|
bool | getVertexId (int row, int col, int &id) |
| Function used to generated the vertex id based on raster coordenate. More...
|
|
This strategy is based on Serio Rosim method, using this "mask" is possible extract a graph from a LDD image.
| 32 | 64 | 128 |
| 16 | * | 1 |
| 8 | 4 | 2 |
- See also
- AbstractGraphBuilder
Definition at line 75 of file LDDGraphBuilder.h.
te::graph::LDDGraphBuilder::LDDGraphBuilder |
( |
| ) |
|
virtual te::graph::LDDGraphBuilder::~LDDGraphBuilder |
( |
| ) |
|
|
virtual |
bool te::graph::LDDGraphBuilder::build |
( |
te::rst::Raster * |
raster, |
|
|
const std::map< std::string, std::string > & |
dsInfo, |
|
|
const std::string & |
graphType, |
|
|
const std::map< std::string, std::string > & |
gInfo |
|
) |
| |
Function used to build the output graph based on input parameters.
- Parameters
-
raster | |
dsInfo | Container with data source information |
graphType | Attribute used to define the output graph type |
gInfo | Container with graph generation parameters |
- Returns
- True if the graph was correctly generated and false in other case.
int te::graph::LDDGraphBuilder::getEdgeId |
( |
| ) |
|
|
protected |
Function used to generated the edge id.
- Returns
- Integer value as ID
std::string te::graph::AbstractGraphBuilder::getErrorMessage |
( |
| ) |
|
|
inherited |
boost::shared_ptr<AbstractGraph> te::graph::AbstractGraphBuilder::getGraph |
( |
| ) |
|
|
inherited |
bool te::graph::LDDGraphBuilder::getVertexId |
( |
int |
row, |
|
|
int |
col, |
|
|
int & |
id |
|
) |
| |
|
protected |
Function used to generated the vertex id based on raster coordenate.
- Parameters
-
row | Row position over the raster |
col | Column position over the raster |
id | Used to set the id generated |
- Returns
- True if a valid id was generated and false in other case
int te::graph::LDDGraphBuilder::m_edgeId |
|
private |
Attribute used as a index counter for edge objects.
Definition at line 134 of file LDDGraphBuilder.h.
std::string te::graph::AbstractGraphBuilder::m_errorMessage |
|
protectedinherited |
boost::shared_ptr<AbstractGraph> te::graph::AbstractGraphBuilder::m_graph |
|
protectedinherited |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/graph/builder/LDDGraphBuilder.h