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

VectorCurve Class Reference

#include <VectorCurve.h>

Inheritance diagram for VectorCurve:


List of all members.

Detailed Description

Vector curve class.

Definition at line 38 of file VectorCurve.h.

Public Types

enum  Position { Tail, Middle, Head }
enum  VectorStyle { XYXY, XYAM }

Public Member Functions

void addErrorBars (DataCurve *c)
 Adds a single error bars curve to the list of attached error bars.
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)
QColor color ()
void copy (const VectorCurve *vc)
void draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
void drawArrowHead (QPainter *p, int xs, int ys, int xe, int ye) const
void drawVector (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
int endRow ()
QList< DataCurve * > errorBarsList ()
 The list of attached error bars.
void fillArrowHead (bool fill)
bool filledArrowHead ()
bool hasLabels ()
bool hasSelectedLabels ()
int headAngle ()
int headLength ()
bool isFullRange ()
int labelsAlignment ()
QColor labelsColor ()
QString labelsColumnName ()
QFont labelsFont ()
double labelsRotation ()
bool labelsWhiteOut ()
int labelsXOffset ()
int labelsYOffset ()
void loadData ()
void moveLabels (const QPoint &pos)
QString plotAssociation ()
int position ()
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 setColor (const QColor &c)
void setFullRange ()
void setHeadAngle (int a)
void setHeadLength (int l)
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 setPosition (int pos)
void setRowRange (int startRow, int endRow)
void setType (int t)
void setVectorEnd (const QwtArray< double > &x, const QwtArray< double > &y)
void setVectorEnd (const QString &xColName, const QString &yColName)
void setVectorStyle (int style)
void setVisible (bool on)
void setWidth (int w)
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.
double theta (int x0, int y0, int x1, int y1) const
int type ()
void updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName)
bool updateData (Table *t, const QString &colName)
void updateLabelsPosition ()
 VectorCurve (VectorStyle style, Table *t, const QString &xColName, const char *name, const QString &endCol1, const QString &endCol2, int startRow, int endRow)
QString vectorEndXAColName ()
QString vectorEndYMColName ()
int vectorStyle ()
int width ()
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
QString d_end_x_a
QString d_end_y_m
QList< DataCurve * > d_error_bars
 List of the error bar curves associated to this curve.
int d_headAngle
int d_headLength
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
int d_position
PlotMarker * d_selected_label
 Keeps track of the plot marker on which the user clicked when selecting the labels.
int d_start_row
int d_style
 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
bool filledArrow
QPen pen
QwtArrayData * vectorEnd

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

Generated by  Doxygen 1.6.0   Back to index