Logo Search packages:      
Sourcecode: qtiplot version File versions  Download package

QwtErrorPlotCurve Class Reference

#include <QwtErrorPlotCurve.h>

Inheritance diagram for QwtErrorPlotCurve:

PlotCurve

List of all members.


Detailed Description

Error bars curve.

Definition at line 36 of file QwtErrorPlotCurve.h.


Public Types

enum  Orientation { Horizontal = 0, Vertical = 1 }

Public Member Functions

void addErrorBars (DataCurve *c)
 Adds a single error bars curve to the list of attached error bars.
QwtDoubleRect boundingRect () const
int capLength ()
void clearErrorBars ()
 Clears the list of attached error bars.
void clearLabels ()
 Clears the list of attached text labels.
void clone (DataCurve *c)
QColor color ()
void copy (const QwtErrorPlotCurve *e)
void detachFromMasterCurve ()
 Causes the master curve to delete this curve from its managed error bars list.
int direction ()
void drawMinusSide (bool yes)
void drawPlusSide (bool yes)
void drawThroughSymbol (bool yes)
int endRow ()
QList< DataCurve * > errorBarsList ()
 The list of attached error bars.
QwtArray< double > errors ()
double errorValue (int i)
bool hasLabels ()
bool hasSelectedLabels ()
bool isFullRange ()
int labelsAlignment ()
QColor labelsColor ()
QString labelsColumnName ()
QFont labelsFont ()
double labelsRotation ()
bool labelsWhiteOut ()
int labelsXOffset ()
int labelsYOffset ()
void loadData ()
DataCurve * masterCurve ()
 Returns the master curve to which this error bars curve is attached.
bool minusSide ()
void moveLabels (const QPoint &pos)
QString plotAssociation ()
bool plusSide ()
 QwtErrorPlotCurve (Table *t, const QString &name)
 QwtErrorPlotCurve (int orientation, Table *t, const QString &name)
void remove ()
void removeErrorBars (DataCurve *c)
 Remove a single error bars curve from the list of attached error bars.
QString saveToString ()
bool selectedLabels (const QPoint &pos)
void setCapLength (int t)
void setColor (const QColor &c)
void setDirection (int o)
void setErrors (const QwtArray< double > &data)
void setFullRange ()
void setLabelsAlignment (int flags)
void setLabelsColor (const QColor &c)
void setLabelsColumnName (const QString &name)
void setLabelsFont (const QFont &font)
void setLabelsOffset (int x, int y)
void setLabelsRotation (double angle)
void setLabelsSelected (bool on=true)
void setLabelsWhiteOut (bool whiteOut=true)
void setMasterCurve (DataCurve *c)
void setRowRange (int startRow, int endRow)
void setType (int t)
void setVisible (bool on)
void setWidth (int w)
void setXColumnName (const QString &name)
void setXErrors (bool yes)
void setXOffset (double dx)
void setYOffset (double dy)
int startRow ()
Tabletable ()
int tableRow (int point)
 Returns the row index in the data source table corresponding to the data point index.
bool throughSymbol ()
int type ()
virtual void updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName)
bool updateData (Table *t, const QString &colName)
void updateLabelsPosition ()
int width ()
QString xColumnName ()
bool xErrors ()
double xOffset ()
double yOffset ()

Protected Member Functions

void loadLabels ()
bool validCurveType ()

Protected Attributes

double d_click_pos_x
 Keep track of the coordinates of the point where the user clicked when selecting the labels.
double d_click_pos_y
int d_end_row
QList< DataCurve * > d_error_bars
 List of the error bar curves associated to this curve.
int d_labels_align
double d_labels_angle
QColor d_labels_color
QString d_labels_column
 The name of the column used for text labels.
QFont d_labels_font
QList< PlotMarker * > d_labels_list
 List of the text labels associated to this curve.
int d_labels_x_offset
int d_labels_y_offset
PlotMarker * d_selected_label
 Keeps track of the plot marker on which the user clicked when selecting the labels.
int d_start_row
Tabled_table
 The data source table.
int d_type
bool d_white_out_labels
QString d_x_column
 The name of the column used for abscissae values.
double d_x_offset
double d_y_offset

Private Member Functions

virtual void draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
void drawErrorBars (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const

Private Attributes

int cap
 Length of the bar cap decoration.
DataCurve * d_master_curve
 Reference to the master curve to which this error bars curve is attached.
QwtArray< double > err
 Stores the error bar values.
bool minus
bool plus
bool through
int type
 Orientation of the bars: Horizontal or Vertical.

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

Generated by  Doxygen 1.6.0   Back to index