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

QwtHistogram Class Reference

#include <QwtHistogram.h>

Inheritance diagram for QwtHistogram:

QwtBarCurve PlotCurve

List of all members.

Detailed Description

Histogram class.

Definition at line 34 of file QwtHistogram.h.

Public Types

enum  BarStyle { Vertical = 0, Horizontal = 1 }

Public Member Functions

void addErrorBars (DataCurve *c)
 Adds a single error bars curve to the list of attached error bars.
bool autoBinning ()
double begin ()
double binSize ()
QwtDoubleRect boundingRect () const
void clearErrorBars ()
 Clears the list of attached error bars.
void clearLabels ()
 Clears the list of attached text labels.
void clone (DataCurve *c)
void copy (const QwtBarCurve *b)
void copy (QwtHistogram *h)
double dataOffset ()
double end ()
int endRow ()
QList< DataCurve * > errorBarsList ()
 The list of attached error bars.
int gap () const
bool hasLabels ()
bool hasSelectedLabels ()
void initData (double *Y, int size)
bool isFullRange ()
int labelsAlignment ()
QColor labelsColor ()
QString labelsColumnName ()
QFont labelsFont ()
double labelsRotation ()
bool labelsWhiteOut ()
int labelsXOffset ()
int labelsYOffset ()
void loadData ()
Matrixmatrix ()
double maximum ()
double mean ()
double minimum ()
void moveLabels (const QPoint &pos)
int offset () const
BarStyle orientation ()
virtual QString plotAssociation ()
 A list of data sources for this curve.
 QwtHistogram (Matrix *m)
 QwtHistogram (Table *t, const QString &xColName, const QString &name, int startRow, int endRow)
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 setBinning (bool autoBin, double size, double begin, double end)
void setFullRange ()
void setGap (int gap)
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 setOffset (int offset)
void setRowRange (int startRow, int endRow)
void setType (int t)
void setVisible (bool on)
void setXColumnName (const QString &name)
void setXOffset (double dx)
void setYOffset (double dy)
double standardDeviation ()
int startRow ()
Tabletable ()
int tableRow (int point)
 Returns the row index in the data source table corresponding to the data point index.
int type ()
virtual void updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName)
virtual bool updateData (Table *t, const QString &colName)
void updateLabelsPosition ()
QString xColumnName ()
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
 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

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

Private Attributes

bool d_autoBin
double d_begin
double d_bin_size
double d_end
double d_max
double d_mean
 Variables storing statistical information.
double d_min
double d_standard_deviation

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

Generated by  Doxygen 1.6.0   Back to index