Referencia de la Clase toBarChart

#include <tobarchart.h>

Diagrama de herencias de toBarChart

[leyenda]
Diagrama de colaboración para toBarChart:
[leyenda]
Lista de todos los miembros.

Slots públicos

virtual void openCopy (void)
virtual void clear (void)
virtual void setup (void)
virtual void editPrint (void)

Métodos públicos

 toBarChart (QWidget *parent=NULL, const char *name=NULL, WFlags f=0)
 toBarChart (toBarChart *chart, QWidget *parent=NULL, const char *name=NULL, WFlags f=0)
void showLegend (bool on)
bool legend (void) const
void showLast (bool on)
bool last (void) const
void setTitle (const QString &title=QString::null)
const QString & title (void)
void showGrid (int div=0)
int grid (void) const
void showAxisLegend (bool on)
bool axisLegend (void) const
void setYPostfix (const QString &postfix)
void setMaxValueAuto (void)
void setMinValueAuto (void)
void setMaxValue (double maxVal)
void setMinValue (double minVal)
double minValue (void) const
double maxValue (void) const
void setSamples (int samples=-1)
int samples (void) const
void setLabels (const std::list< QString > &labels)
std::list< QString > & labels (void)
virtual void addValues (std::list< double > &value, const QString &xValues)
std::list< QString > & xValues (void)
std::list< std::list< double > > & values (void)

Métodos protegidos

virtual void paintChart (QPainter *p, QRect &rect)
QRect fixRect (QPoint p1, QPoint p2)
virtual void mouseReleaseEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
int countSamples (void)
void clearZoom (void)
virtual void paintLegend (QPainter *p, QRect &rect)
virtual void paintTitle (QPainter *p, QRect &rect)
virtual void paintAxis (QPainter *p, QRect &rect)
virtual void paintEvent (QPaintEvent *e)

Métodos protegidos estáticos

static double round (double round, bool up)

Atributos protegidos

std::list< std::list< double > > Values
std::list< QString > XValues
std::list< QString > Labels
bool Legend
bool Last
int Grid
bool AxisText
double MinValue
bool MinAuto
double MaxValue
bool MaxAuto
QString YPostfix
int Samples
QString Title
QRect Chart
QPoint MousePoint [2]
int SkipSamples
int UseSamples
bool Zooming
double zMinValue
double zMaxValue

Descripción detallada

A widget that displays a barchart. Each line is added onto the next one.


Documentación del constructor y destructor

toBarChart::toBarChart QWidget parent = NULL,
const char *  name = NULL,
WFlags  f = 0
 

Create a new barchart.

Parámetros:
parent Parent widget.
name Name of widget.
f Widget flags.

Gráfico de llamadas para esta función:

toBarChart::toBarChart toBarChart chart,
QWidget parent = NULL,
const char *  name = NULL,
WFlags  f = 0
 

Create a new barchart by copying all the data from another barchart.

Parámetros:
chart Chart to copy data from.
parent Parent widget.
name Name of widget.
f Widget flags.


Documentación de las funciones miembro

void toLineChart::addValues std::list< double > &  value,
const QString &  xValues
[virtual, inherited]
 

Add a new value set to the chart.

Parámetros:
value New values for charts (One for each line).
label X-value on these values.

bool toLineChart::axisLegend void   )  const [inline, inherited]
 

Check if y-axis legend is displayed or not.

Devuelve:
If legend is displayed or not.

virtual void toLineChart::clear void   )  [inline, virtual, slot, inherited]
 

Clear the values from the chart.

void toLineChart::clearZoom void   )  [protected, inherited]
 

int toLineChart::countSamples void   )  [protected, inherited]
 

Gráfico de llamadas para esta función:

void toLineChart::editPrint void   )  [virtual, slot, inherited]
 

Print the chart.

QRect toLineChart::fixRect QPoint  p1,
QPoint  p2
[protected, inherited]
 

Gráfico de llamadas para esta función:

int toLineChart::grid void   )  const [inline, inherited]
 

Check if grid is displayed or not.

Devuelve:
Number of parts to divide grid into.

std::list<QString>& toLineChart::labels void   )  [inline, inherited]
 

Get the labels of the chart lines.

Devuelve:
List of labels.

bool toLineChart::last void   )  const [inline, inherited]
 

Check if last value is displayed or not.

Devuelve:
If value is displayed or not.

bool toLineChart::legend void   )  const [inline, inherited]
 

Check if legend is displayed or not.

Devuelve:
If legend is displayed or not.

double toLineChart::maxValue void   )  const [inline, inherited]
 

Get maximum value on y-axis. Will not return the automatically determinned maximum value.

Devuelve:
Maximum value on y-axis.

double toLineChart::minValue void   )  const [inline, inherited]
 

Get minimum value on y-axis. Will not return the automatically determinned minimum value.

Devuelve:
Minimum value on y-axis.

void toLineChart::mouseDoubleClickEvent QMouseEvent *  e  )  [protected, virtual, inherited]
 

void toLineChart::mouseMoveEvent QMouseEvent *  e  )  [protected, virtual, inherited]
 

Gráfico de llamadas para esta función:

void toLineChart::mousePressEvent QMouseEvent *  e  )  [protected, virtual, inherited]
 

void toLineChart::mouseReleaseEvent QMouseEvent *  e  )  [protected, virtual, inherited]
 

Gráfico de llamadas para esta función:

void toBarChart::openCopy void   )  [virtual, slot]
 

Open chart in new window.

Reimplementado de toLineChart.

void toLineChart::paintAxis QPainter *  p,
QRect &  rect
[protected, virtual, inherited]
 

Gráfico de llamadas para esta función:

void toBarChart::paintChart QPainter *  p,
QRect &  rect
[protected, virtual]
 

Reimplementado de toLineChart.

Gráfico de llamadas para esta función:

void toLineChart::paintEvent QPaintEvent *  e  )  [protected, virtual, inherited]
 

Reimplemented for internal reasons.

Gráfico de llamadas para esta función:

void toLineChart::paintLegend QPainter *  p,
QRect &  rect
[protected, virtual, inherited]
 

Gráfico de llamadas para esta función:

void toLineChart::paintTitle QPainter *  p,
QRect &  rect
[protected, virtual, inherited]
 

double toLineChart::round double  round,
bool  up
[static, protected, inherited]
 

int toLineChart::samples void   )  const [inline, inherited]
 

Get the maximum number of samples on the x-axis.

Devuelve:
Max number of samples.

void toLineChart::setLabels const std::list< QString > &  labels  )  [inline, inherited]
 

Set the labels on the chart lines.

Parámetros:
labels Labels of the lines. Empty labels will not show up in the legend.

void toLineChart::setMaxValue double  maxVal  )  [inline, inherited]
 

Set max value on y-axis.

Parámetros:
val Max value on y-axis.

void toLineChart::setMaxValueAuto void   )  [inline, inherited]
 

Set max value on y-axis to auto.

void toLineChart::setMinValue double  minVal  )  [inline, inherited]
 

Set min value on y-axis.

Parámetros:
val Min value on y-axis.

void toLineChart::setMinValueAuto void   )  [inline, inherited]
 

Set min value on y-axis to auto.

void toLineChart::setSamples int  samples = -1  )  [inherited]
 

Set the number of samples on the x-axis. Setting samples to -1 will keep all entries.

Parámetros:
samples Number of samples.

void toLineChart::setTitle const QString &  title = QString::null  )  [inline, inherited]
 

Set title of the chart. Set to empty string to not display title.

Parámetros:
title Title of chart.

Gráfico de llamadas para esta función:

void toLineChart::setup void   )  [virtual, slot, inherited]
 

Setup values of charts.

void toLineChart::setYPostfix const QString &  postfix  )  [inline, inherited]
 

Set y postfix value. This will be appended to the values in the axis legend.

Parámetros:
postfix The string to append.

void toLineChart::showAxisLegend bool  on  )  [inline, inherited]
 

Specify if a y-axis legend should be displayed in the graph, default is on.

Parámetros:
on Whether to display legend or not.

void toLineChart::showGrid int  div = 0  )  [inline, inherited]
 

Specify if a grid should be displayed in the graph, default is on.

Parámetros:
div Number of parts to divide grid into.

void toLineChart::showLast bool  on  )  [inline, inherited]
 

Show most recent value on top of graph

Parámetros:
on Whether to display or not.

void toLineChart::showLegend bool  on  )  [inline, inherited]
 

Specify if legend should be displayed to the right of the graph, default is on.

Parámetros:
on Whether to display legend or not.

const QString& toLineChart::title void   )  [inline, inherited]
 

Get title of chart.

Devuelve:
Title of chart.

std::list<std::list<double> >& toLineChart::values void   )  [inline, inherited]
 

Get list of values.

Devuelve:
Values in piechart.

std::list<QString>& toLineChart::xValues void   )  [inline, inherited]
 

Get list of labels

Devuelve:
List of labels


Documentación de los datos miembro

bool toLineChart::AxisText [protected, inherited]
 

QRect toLineChart::Chart [protected, inherited]
 

int toLineChart::Grid [protected, inherited]
 

std::list<QString> toLineChart::Labels [protected, inherited]
 

bool toLineChart::Last [protected, inherited]
 

bool toLineChart::Legend [protected, inherited]
 

bool toLineChart::MaxAuto [protected, inherited]
 

double toLineChart::MaxValue [protected, inherited]
 

bool toLineChart::MinAuto [protected, inherited]
 

double toLineChart::MinValue [protected, inherited]
 

QPoint toLineChart::MousePoint[2] [protected, inherited]
 

int toLineChart::Samples [protected, inherited]
 

int toLineChart::SkipSamples [protected, inherited]
 

QString toLineChart::Title [protected, inherited]
 

int toLineChart::UseSamples [protected, inherited]
 

std::list<std::list<double> > toLineChart::Values [protected, inherited]
 

std::list<QString> toLineChart::XValues [protected, inherited]
 

QString toLineChart::YPostfix [protected, inherited]
 

double toLineChart::zMaxValue [protected, inherited]
 

double toLineChart::zMinValue [protected, inherited]
 

bool toLineChart::Zooming [protected, inherited]
 


La documentación para esta clase fué generada a partir de los siguientes archivos:
Generado el Sat May 21 00:05:08 2005 para BulmaGes por  doxygen 1.4.2