DataCurve Class Reference

#include <PlotCurve.h>

Inheritance diagram for DataCurve:

PlotCurve BoxCurve QwtBarCurve QwtErrorPlotCurve QwtPieCurve VectorCurve QwtHistogram

List of all members.

Public Member Functions

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.
void clearLabels ()
 Clears the list of attached text labels.
void clone (DataCurve *c)
 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 hasLabels ()
bool hasSelectedLabels ()
bool isFullRange ()
int labelsAlignment ()
QColor labelsColor ()
QString labelsColumnName ()
QFont labelsFont ()
double labelsRotation ()
bool labelsWhiteOut ()
int labelsXOffset ()
int labelsYOffset ()
virtual void loadData ()
void moveLabels (const QPoint &pos)
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 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 setRowRange (int startRow, int endRow)
void setVisible (bool on)
void setXColumnName (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)
void updateLabelsPosition ()
QString xColumnName ()

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
PlotMarkerd_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.
bool d_white_out_labels
QString d_x_column
 The name of the column used for abscissae values.


Constructor & Destructor Documentation

DataCurve::DataCurve ( Table t,
const QString &  xColName,
const QString &  name,
int  startRow = 0,
int  endRow = -1 
)


Member Function Documentation

void DataCurve::addErrorBars ( DataCurve c  )  [inline]

Adds a single error bars curve to the list of attached error bars.

void DataCurve::clearErrorBars (  ) 

Clears the list of attached error bars.

void DataCurve::clearLabels (  ) 

Clears the list of attached text labels.

void DataCurve::clone ( DataCurve c  ) 

int DataCurve::endRow (  )  [inline]

QList<DataCurve *> DataCurve::errorBarsList (  )  [inline]

The list of attached error bars.

bool DataCurve::hasLabels (  )  [inline]

bool DataCurve::hasSelectedLabels (  ) 

bool DataCurve::isFullRange (  ) 

int DataCurve::labelsAlignment (  )  [inline]

QColor DataCurve::labelsColor (  )  [inline]

QString DataCurve::labelsColumnName (  )  [inline]

QFont DataCurve::labelsFont (  )  [inline]

double DataCurve::labelsRotation (  )  [inline]

bool DataCurve::labelsWhiteOut (  )  [inline]

int DataCurve::labelsXOffset (  )  [inline]

int DataCurve::labelsYOffset (  )  [inline]

void DataCurve::loadData (  )  [virtual]

Reimplemented in BoxCurve, QwtErrorPlotCurve, QwtHistogram, QwtPieCurve, and VectorCurve.

void DataCurve::loadLabels (  )  [protected]

void DataCurve::moveLabels ( const QPoint &  pos  ) 

QString DataCurve::plotAssociation (  )  [virtual]

A list of data sources for this curve.

Elements must be in either of the following forms:

Column ids are of the form '<name of table> "_" <name of column>'.

Reimplemented in QwtErrorPlotCurve, and VectorCurve.

void DataCurve::remove (  ) 

void DataCurve::removeErrorBars ( DataCurve c  ) 

Remove a single error bars curve from the list of attached error bars.

QString DataCurve::saveToString (  ) 

bool DataCurve::selectedLabels ( const QPoint &  pos  ) 

void DataCurve::setFullRange (  ) 

void DataCurve::setLabelsAlignment ( int  flags  ) 

void DataCurve::setLabelsColor ( const QColor &  c  ) 

void DataCurve::setLabelsColumnName ( const QString &  name  ) 

void DataCurve::setLabelsFont ( const QFont &  font  ) 

void DataCurve::setLabelsOffset ( int  x,
int  y 
)

void DataCurve::setLabelsRotation ( double  angle  ) 

void DataCurve::setLabelsSelected ( bool  on = true  ) 

void DataCurve::setLabelsWhiteOut ( bool  whiteOut = true  ) 

void DataCurve::setRowRange ( int  startRow,
int  endRow 
)

void DataCurve::setVisible ( bool  on  ) 

void DataCurve::setXColumnName ( const QString &  name  )  [inline]

int DataCurve::startRow (  )  [inline]

Table* DataCurve::table (  )  [inline]

int DataCurve::tableRow ( int  point  ) 

Returns the row index in the data source table corresponding to the data point index.

void DataCurve::updateColumnNames ( const QString &  oldName,
const QString &  newName,
bool  updateTableName 
) [virtual]

Reimplemented in VectorCurve.

bool DataCurve::updateData ( Table t,
const QString &  colName 
) [virtual]

Reimplemented in QwtErrorPlotCurve, and VectorCurve.

void DataCurve::updateLabelsPosition (  ) 

bool DataCurve::validCurveType (  )  [protected]

QString DataCurve::xColumnName (  )  [inline]


Member Data Documentation

double DataCurve::d_click_pos_x [protected]

Keep track of the coordinates of the point where the user clicked when selecting the labels.

double DataCurve::d_click_pos_y [protected]

int DataCurve::d_end_row [protected]

QList<DataCurve *> DataCurve::d_error_bars [protected]

List of the error bar curves associated to this curve.

int DataCurve::d_labels_align [protected]

double DataCurve::d_labels_angle [protected]

QColor DataCurve::d_labels_color [protected]

QString DataCurve::d_labels_column [protected]

The name of the column used for text labels.

QFont DataCurve::d_labels_font [protected]

QList<PlotMarker *> DataCurve::d_labels_list [protected]

List of the text labels associated to this curve.

int DataCurve::d_labels_x_offset [protected]

int DataCurve::d_labels_y_offset [protected]

PlotMarker* DataCurve::d_selected_label [protected]

Keeps track of the plot marker on which the user clicked when selecting the labels.

int DataCurve::d_start_row [protected]

Table* DataCurve::d_table [protected]

The data source table.

bool DataCurve::d_white_out_labels [protected]

QString DataCurve::d_x_column [protected]

The name of the column used for abscissae values.


The documentation for this class was generated from the following files:
Generated on Thu Feb 7 13:59:28 2008 for QtiPlot by  doxygen 1.5.4