SciDAVis  1.D4
Public Types | Public Member Functions | Private Member Functions | Private Attributes
BoxCurve Class Reference

Box curve. More...

#include <BoxCurve.h>

Inheritance diagram for BoxCurve:
DataCurve PlotCurve

List of all members.

Public Types

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

Public Member Functions

virtual QwtDoubleRect boundingRect () const
 BoxCurve (Table *t, const char *name, int startRow=0, int endRow=-1)
double boxRange ()
int boxRangeType ()
int boxStyle ()
int boxWidth ()
void copy (const BoxCurve *b)
virtual bool loadData ()
QwtSymbol::Style maxStyle ()
QwtSymbol::Style meanStyle ()
QwtSymbol::Style minStyle ()
QwtSymbol::Style p1Style ()
QwtSymbol::Style p99Style ()
void setBoxRange (int type, double coeff)
void setBoxStyle (int style)
void setBoxWidth (int width)
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 setWhiskersRange (int type, double coeff)
double whiskersRange ()
int whiskersRangeType ()
- Public Member Functions inherited from DataCurve
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.
QList< QVector< double > > convertData (const QList< Column * > &cols, const QList< int > &axes) const
 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 hasSelectedLabels ()
bool isFullRange ()
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.
void setFullRange ()
void setLabelsSelected (bool on=true)
void setRowRange (int startRow, int endRow)
void setVisible (bool on)
void setXColumnName (const QString &name)
void setYColumnName (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)
QString xColumnName ()
QString yColumnName ()
- Public Member Functions inherited from PlotCurve
 PlotCurve (const QString &name=QString::null)
void setType (int t)
int type () const

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

Additional Inherited Members

- Protected Attributes inherited from DataCurve
int d_end_row
 Last row of #d_tabel to be plotted, provided all relevant columns have valid entries.
QList< DataCurve * > d_error_bars
 List of the error bar curves associated to this curve.
int d_start_row
 First row of #d_tabel to be plotted, provided all relevant columns have valid entries.
Tabled_table
 The data source table.
QString d_x_column
 The name of the column used for abscissae values.
- Protected Attributes inherited from PlotCurve
int d_type

Detailed Description

Box curve.


Member Enumeration Documentation

Enumerator:
NoBox 
Rect 
Diamond 
WindBox 
Notch 
Enumerator:
None 
SD 
SE 
r25_75 
r10_90 
r5_95 
r1_99 
MinMax 
UserDef 

Constructor & Destructor Documentation

BoxCurve::BoxCurve ( Table t,
const char *  name,
int  startRow = 0,
int  endRow = -1 
)

Member Function Documentation

QwtDoubleRect BoxCurve::boundingRect ( ) const
virtual

Reimplemented from PlotCurve.

double BoxCurve::boxRange ( )
inline
int BoxCurve::boxRangeType ( )
inline
int BoxCurve::boxStyle ( )
inline
int BoxCurve::boxWidth ( )
inline
void BoxCurve::copy ( const BoxCurve b)
void BoxCurve::draw ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
private

References drawBox(), and drawSymbols().

void BoxCurve::drawBox ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
double *  dat,
int  size 
) const
private

References b_coeff, b_range, b_style, b_width, Diamond, NoBox, Notch, Rect, SD, SE, w_coeff, w_range, and WindBox.

Referenced by draw().

void BoxCurve::drawSymbols ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
double *  dat,
int  size 
) const
private

References max_style, mean_style, min_style, p1_style, and p99_style.

Referenced by draw().

bool BoxCurve::loadData ( )
virtual
QwtSymbol::Style BoxCurve::maxStyle ( )
inline
QwtSymbol::Style BoxCurve::meanStyle ( )
inline
QwtSymbol::Style BoxCurve::minStyle ( )
inline
QwtSymbol::Style BoxCurve::p1Style ( )
inline
QwtSymbol::Style BoxCurve::p99Style ( )
inline
void BoxCurve::setBoxRange ( int  type,
double  coeff 
)
void BoxCurve::setBoxStyle ( int  style)
void BoxCurve::setBoxWidth ( int  width)
inline
void BoxCurve::setMaxStyle ( QwtSymbol::Style  s)
inline
void BoxCurve::setMeanStyle ( QwtSymbol::Style  s)
inline
void BoxCurve::setMinStyle ( QwtSymbol::Style  s)
inline
void BoxCurve::setP1Style ( QwtSymbol::Style  s)
inline
void BoxCurve::setP99Style ( QwtSymbol::Style  s)
inline
void BoxCurve::setWhiskersRange ( int  type,
double  coeff 
)
double BoxCurve::whiskersRange ( )
inline
int BoxCurve::whiskersRangeType ( )
inline

Member Data Documentation

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

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