SciDAVis  1.D4
Public Types | Public Member Functions | Private Member Functions | Private Attributes
QwtBarCurve Class Reference

Bar curve. More...

#include <QwtBarCurve.h>

Inheritance diagram for QwtBarCurve:
DataCurve PlotCurve QwtHistogram

List of all members.

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 ()
Tabletable ()
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.
Tabled_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

Detailed Description

Bar curve.


Member Enumeration Documentation

Enumerator:
Vertical 
Horizontal 

Constructor & Destructor Documentation

QwtBarCurve::QwtBarCurve ( BarStyle  style,
Table t,
const QString &  xColName,
const char *  name,
int  startRow,
int  endRow 
)

Member Function Documentation

QwtDoubleRect QwtBarCurve::boundingRect ( ) const
virtual

Reimplemented from PlotCurve.

Reimplemented in QwtHistogram.

References bar_style, and Vertical.

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.

void QwtBarCurve::draw ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
privatevirtual

Reimplemented in QwtHistogram.

References bar_gap, bar_offset, bar_style, and Vertical.

int QwtBarCurve::gap ( ) const
inline
int QwtBarCurve::offset ( ) const
inline
BarStyle QwtBarCurve::orientation ( )
inline

References bar_style.

void QwtBarCurve::setGap ( int  gap)
void QwtBarCurve::setOffset ( int  offset)

References bar_offset, and offset().

Referenced by Graph::initCurveLayout(), and Graph::setBarsGap().


Member Data Documentation

int QwtBarCurve::bar_gap
private
int QwtBarCurve::bar_offset
private
BarStyle QwtBarCurve::bar_style
private

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