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

BoxCurve Class Reference

#include <BoxCurve.h>

Inheritance diagram for BoxCurve:


List of all members.

Detailed Description

Box curve.

Definition at line 37 of file BoxCurve.h.

Public Types

enum  BoxStyle {
  NoBox, Rect, Diamond, WindBox,
enum  Range {
  None, SD, SE, r25_75,
  r10_90, r5_95, r1_99, MinMax,

Public Member Functions

void addErrorBars (DataCurve *c)
 Adds a single error bars curve to the list of attached error bars.
virtual QwtDoubleRect boundingRect () const
 BoxCurve (Table *t, const QString &name, int startRow=0, int endRow=-1)
double boxRange ()
int boxRangeType ()
int boxStyle ()
int boxWidth ()
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 BoxCurve *b)
int endRow ()
QList< DataCurve * > errorBarsList ()
 The list of attached error bars.
bool hasLabels ()
bool hasSelectedLabels ()
bool isFullRange ()
int labelsAlignment ()
QColor labelsColor ()
QString labelsColumnName ()
QFont labelsFont ()
double labelsRotation ()
bool labelsWhiteOut ()
int labelsXOffset ()
int labelsYOffset ()
void loadData ()
QwtSymbol::Style maxStyle ()
QwtSymbol::Style meanStyle ()
QwtSymbol::Style minStyle ()
void moveLabels (const QPoint &pos)
QwtSymbol::Style p1Style ()
QwtSymbol::Style p99Style ()
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.
QString saveToString ()
bool selectedLabels (const QPoint &pos)
void setBoxRange (int type, double coeff)
void setBoxStyle (int style)
void setBoxWidth (int width)
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 setMaxStyle (QwtSymbol::Style s)
void setMeanStyle (QwtSymbol::Style s)
void setMinStyle (QwtSymbol::Style s)
void setP1Style (QwtSymbol::Style s)
void setP99Style (QwtSymbol::Style s)
void setRowRange (int startRow, int endRow)
void setType (int t)
void setVisible (bool on)
void setWhiskersRange (int type, double coeff)
void setXColumnName (const QString &name)
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.
int type ()
virtual void updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName)
virtual bool updateData (Table *t, const QString &colName)
void updateLabelsPosition ()
double whiskersRange ()
int whiskersRangeType ()
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 drawBox (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, double *dat, int size) const
void drawSymbols (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, double *dat, int size) const

Private Attributes

double b_coeff
int b_range
int b_style
int b_width
QwtSymbol::Style max_style
QwtSymbol::Style mean_style
QwtSymbol::Style min_style
QwtSymbol::Style p1_style
QwtSymbol::Style p99_style
double w_coeff
int w_range

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

Generated by  Doxygen 1.6.0   Back to index