#include <Map.h>
Public Member Functions | |
Map (Topology *top, Neighborhood *hood) | |
constructor | |
Map (const Map &m) | |
The copy-constructor:. | |
Map & | operator= (const Map &m) |
Overwrite the = operator to avoid problems when you forget initialize whit the constructor. | |
void | setTopology (Topology *top) |
Change the used topology. | |
void | setNeighborhood (Neighborhood *hood) |
Change the used Neighborhood. | |
void | setNormalizedDimencion (int dim) |
Used to change normalization in a specific dimension, the dimension characterized by the input number. | |
void | setDimencionSize (int dim, int dimSize) |
Used to change dimension size, the dimension characterized by the input number. | |
void | setNeighborhoodSize (int size) |
Used to change the Neighborhood "radius". | |
std::vector< std::vector< int > > | getEdge () |
Once the calculations in setEdge() has been done use this method to obtain the container of vector positions of the neighbors. | |
void | setEdge (const std::vector< int > position) |
The map class mix the topology and the Neighborhood to create the form in the net, the neighborhood class determines the "utopic" coordinates of the neighbors, and the topology make them "real" in the actual space form.
void Map::setEdge | ( | const std::vector< int > | position | ) | [inline] |
This is the main method of the class, in this method the Topology and Neighborhood objects are mixed to calculate the real coordinates of the vertex with an edge in common (neighbors) with the element represented by the input vector (center cell).