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

#include <data.h>

Inheritance diagram for Data:
FlightData MarvelData MiserablesData

Signals

void setStatus (QString s)
 

Public Member Functions

 Data (Graph *g, QString nPath=0, QString ePath=0, QString gPath=0)
 
virtual ~Data (void)
 
virtual void initGraph ()
 

Protected Member Functions

QPointF randomPoint ()
 
double random ()
 

Protected Attributes

FileParserinput
 
Graphgraph
 
QString nodePath
 
QString edgePath
 
QString groupPath
 

Detailed Description

Super class for all Data Objects Data objects are responsible for generating a graph from the datasets read from the files specified by the passed filenames

Constructor & Destructor Documentation

Data::Data ( Graph g,
QString  nPath = 0,
QString  ePath = 0,
QString  gPath = 0 
)
inline

Constructor for a Data object

Parameters
gpointer to graph that is to be filled with data
nPathString denoting the path to the file containing the graph's nodes
ePathString denoting the path to the file containing the graph's edges
ePathString denoting the path to the file containing the graph's group //this property is currently unused
virtual Data::~Data ( void  )
inlinevirtual

Destructor for a Data object

Member Function Documentation

virtual void Data::initGraph ( void  )
inlinevirtual

initGraph() calls the method for graph generation from the data files

Reimplemented in MarvelData, FlightData, and MiserablesData.

double Data::random ( )
inlineprotected

returns a random value between 0.05 and 0.95

QPointF Data::randomPoint ( )
inlineprotected

returns a random data point with coordinates between 0.05 and 0.95

Returns
QPointF with random coordinates.
void Data::setStatus ( QString  s)
signal

signal to notify the main window's status bar of the progress of graph generation


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