#include <Beobot/Node.H>
Public Member Functions | |
Constructor, assigment and destructor | |
Node (uint index, const Point2D< int > point=Point2D< int >(-1,-1), const std::string label=std::string("")) | |
Constructor: generate a node with coordinates and label. | |
~Node () | |
Destructor. | |
uint | getIndex () |
inline get the index | |
void | setIndex (int index) |
inline get the index | |
Point2D< int > | getCoordinate () |
get the Point2D<int> location for printing/display | |
void | setCoordinate (Point2D< int > coor) |
set the Point2D<int> location for printing/display | |
std::string | getLabel () |
get the label for printing/display | |
void | setLabel (std::string label) |
set the label for printing/display |
basic node in a graph class the Point2D<int> location is only for display purposes, it is not necessary to enter it (unless we want to draw the graph image)
Definition at line 53 of file Node.H.
Node::Node | ( | uint | index, | |
const Point2D< int > | point = Point2D<int>(-1,-1) , |
|||
const std::string | label = std::string("") | |||
) |
Point2D< int > Node::getCoordinate | ( | ) | [inline] |
get the Point2D<int> location for printing/display
std::string Node::getLabel | ( | ) | [inline] |
void Node::setCoordinate | ( | Point2D< int > | coor | ) | [inline] |
set the Point2D<int> location for printing/display
void Node::setIndex | ( | int | index | ) | [inline] |
void Node::setLabel | ( | std::string | label | ) | [inline] |