Force Directed Edge Bundling
 All Classes Functions Pages
Public Member Functions | Protected Attributes | List of all members
Node Class Reference

#include <graph.h>

Inheritance diagram for Node:

Public Member Functions

 Node ()
 
 Node (double x, double y)
 
 operator QVector2D ()
 
void set (double x, double y)
 
void set (QPointF p)
 
void set (QVector2D p)
 
void setGroup (int g)
 
int getGroup (void)
 
void increment (void)
 
int getDegree (void)
 
void setInfo (QString s)
 
QString info ()
 
QString toString ()
 

Protected Attributes

int degree
 
int group
 
QString description
 

Detailed Description

Datastructure for one Node instance

Constructor & Destructor Documentation

Node::Node ( )
inline

Constructor for a node, initializes a node with position (0, 0)

Node::Node ( double  x,
double  y 
)
inline

Constructor for a node, initializes a node with position (x, y)

Parameters
xx-coordinate for Node's position
yy-coordinate for Node's position

Member Function Documentation

int Node::getDegree ( void  )
inline
Returns
the node's degree
int Node::getGroup ( void  )
inline

UNUSED getter for node affiliation with a group.

Returns
g group that node belongs to
void Node::increment ( void  )
inline

increment node's degree by 1.

QString Node::info ( )
inline

return the node's descriptive string

Returns
description
void Node::setGroup ( int  g)
inline

UNUSED setter for node affiliation with a new group g.

Parameters
gnew group that node belongs to
void Node::setInfo ( QString  s)
inline

set the node's descriptive string

Parameters
snew info string for the node

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