SciDAVis
1.D4
|
#include <QwtBarCurve.h>
Public Types | |
enum | BarStyle { Vertical = 0, Horizontal = 1 } |
Public Member Functions | |
virtual QwtDoubleRect | boundingRect () const |
void | copy (const QwtBarCurve *b) |
double | dataOffset () |
int | gap () const |
int | offset () const |
BarStyle | orientation () |
QwtBarCurve (BarStyle style, Table *t, const QString &xColName, const char *name, int startRow, int endRow) | |
void | setGap (int gap) |
void | setOffset (int offset) |
Public Member Functions inherited from DataCurve | |
void | addErrorBars (DataCurve *c) |
Adds a single error bars curve to the list of attached error bars. | |
void | clearErrorBars () |
Clears the list of attached error bars. | |
QList< QVector< double > > | convertData (const QList< Column * > &cols, const QList< int > &axes) const |
DataCurve (Table *t, const QString &xColName, const QString &name, int startRow=0, int endRow=-1) | |
int | endRow () |
QList< DataCurve * > | errorBarsList () |
The list of attached error bars. | |
bool | hasSelectedLabels () |
bool | isFullRange () |
virtual bool | loadData () |
virtual QString | plotAssociation () |
A list of data sources for this curve. | |
void | remove () |
void | removeErrorBars (DataCurve *c) |
Remove a single error bars curve from the list of attached error bars. | |
void | setFullRange () |
void | setLabelsSelected (bool on=true) |
void | setRowRange (int startRow, int endRow) |
void | setVisible (bool on) |
void | setXColumnName (const QString &name) |
void | setYColumnName (const QString &name) |
int | startRow () |
Table * | table () |
int | tableRow (int point) |
Returns the row index in the data source table corresponding to the data point index. | |
virtual void | updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName) |
virtual bool | updateData (Table *t, const QString &colName) |
QString | xColumnName () |
QString | yColumnName () |
Public Member Functions inherited from PlotCurve | |
PlotCurve (const QString &name=QString::null) | |
void | setType (int t) |
int | type () const |
Private Member Functions | |
virtual void | draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
Private Attributes | |
int | bar_gap |
int | bar_offset |
BarStyle | bar_style |
Additional Inherited Members | |
Protected Attributes inherited from DataCurve | |
int | d_end_row |
Last row of #d_tabel to be plotted, provided all relevant columns have valid entries. | |
QList< DataCurve * > | d_error_bars |
List of the error bar curves associated to this curve. | |
int | d_start_row |
First row of #d_tabel to be plotted, provided all relevant columns have valid entries. | |
Table * | d_table |
The data source table. | |
QString | d_x_column |
The name of the column used for abscissae values. | |
Protected Attributes inherited from PlotCurve | |
int | d_type |
Bar curve.
QwtBarCurve::QwtBarCurve | ( | BarStyle | style, |
Table * | t, | ||
const QString & | xColName, | ||
const char * | name, | ||
int | startRow, | ||
int | endRow | ||
) |
References bar_gap, bar_offset, bar_style, Graph::HorizontalBars, PlotCurve::setType(), Vertical, and Graph::VerticalBars.
|
virtual |
void QwtBarCurve::copy | ( | const QwtBarCurve * | b | ) |
References bar_gap, bar_offset, and bar_style.
Referenced by Graph::copy().
double QwtBarCurve::dataOffset | ( | ) |
References bar_gap, bar_offset, bar_style, and Vertical.
|
privatevirtual |
Reimplemented in QwtHistogram.
References bar_gap, bar_offset, bar_style, and Vertical.
|
inline |
References bar_gap.
Referenced by QwtHistogram::draw(), Graph::saveCurveLayout(), PlotDialog::setActiveCurve(), Graph::setBarsGap(), and setGap().
|
inline |
References bar_offset.
Referenced by QwtHistogram::draw(), Graph::saveCurveLayout(), PlotDialog::setActiveCurve(), Graph::setBarsGap(), and setOffset().
void QwtBarCurve::setGap | ( | int | gap | ) |
References bar_gap, and gap().
Referenced by ImportOPJ::importGraphs(), Graph::initCurveLayout(), and Graph::setBarsGap().
void QwtBarCurve::setOffset | ( | int | offset | ) |
References bar_offset, and offset().
Referenced by Graph::initCurveLayout(), and Graph::setBarsGap().
|
private |
Referenced by copy(), dataOffset(), draw(), gap(), QwtBarCurve(), and setGap().
|
private |
Referenced by copy(), dataOffset(), draw(), offset(), QwtBarCurve(), and setOffset().
|
private |
Referenced by boundingRect(), copy(), dataOffset(), draw(), orientation(), and QwtBarCurve().