Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

graph.cpp File Reference

#include "graph.h"
#include "graphinfo.h"
#include <qpainter.h>
#include <math.h>

Include dependency graph for graph.cpp:

Go to the source code of this file.

Functions

 Graph::Graph (QWidget *parent, GraphInfo *d, const QString &name, int flags)
void Graph::setGraphInfo (GraphInfo *d)
void Graph::drawGraph (bool regen)
void Graph::paintEvent (QPaintEvent *)
void Graph::resizeEvent (QResizeEvent *)
void Graph::initGraph ()
void Graph::drawBarChart (int width, int height, float max, float min)
void Graph::drawPieChart (int width, int height, float sum)


Function Documentation

void Graph::drawBarChart int  width,
int  height,
float  max,
float  min
 

Definition at line 95 of file graph.cpp.

References Graph::data, f, Graph::graph, i, p, and Opie::MM::x.

void Graph::drawGraph bool  regen  ) 
 

Definition at line 49 of file graph.cpp.

References Graph::graph, Graph::initGraph(), and p.

void Graph::drawPieChart int  width,
int  height,
float  sum
 

Definition at line 132 of file graph.cpp.

References Graph::data, f, Graph::graph, i, p, Opie::MM::x, and Opie::MM::y.

Graph::Graph QWidget *  parent,
GraphInfo d,
const QString name,
int  flags
 

Definition at line 36 of file graph.cpp.

References data.

void Graph::initGraph  ) 
 

Definition at line 69 of file graph.cpp.

References GraphInfo::BarChart, Graph::data, Graph::drawBarChart(), Graph::drawPieChart(), Graph::graph, height, GraphInfo::PieChart, and width.

void Graph::paintEvent QPaintEvent *   ) 
 

Definition at line 59 of file graph.cpp.

References Graph::drawGraph(), and FALSE.

void Graph::resizeEvent QResizeEvent *   ) 
 

Definition at line 64 of file graph.cpp.

References Graph::drawGraph(), and TRUE.

void Graph::setGraphInfo GraphInfo d  ) 
 

Definition at line 44 of file graph.cpp.

References Graph::data.


Generated on Sat Nov 5 16:44:34 2005 for OPIE by  doxygen 1.4.2