QtiPlot 0.9.8.2
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  LabelsDisplayPolicy { Percentage, Value, PercentageValue, ValuePercentage }
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 QString &name, int startRow=0, int endRow=-1)
double boxRange ()
int boxRangeType ()
int boxStyle ()
int boxWidth ()
void copy (BoxCurve *b)
bool hasBoxLabels ()
bool hasWhiskerLabels ()
LabelsDisplayPolicy labelsDisplayPolicy ()
void loadData ()
QwtSymbol::Style maxStyle ()
QwtSymbol::Style meanStyle ()
double median ()
QwtSymbol::Style minStyle ()
QwtSymbol::Style p1Style ()
QwtSymbol::Style p99Style ()
double quantile (double f)
void setBoxRange (int type, double coeff)
void setBoxStyle (int style)
void setBoxWidth (int width)
void setLabelsDisplayPolicy (const LabelsDisplayPolicy &policy)
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=0.0)
void showBoxLabels (bool on=true)
void showWhiskerLabels (bool on=true)
QString statistics ()
double whiskersRange ()
int whiskersRangeType ()

Private Member Functions

void createLabel (double val)
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
QString labelPercentage (int index)
QString labelText (int index, double val)
virtual void loadLabels ()
double * statisticValues ()
void updateLabels (bool updateText=true)
void updateLabelsPosition ()

Private Attributes

double b_coeff
int b_range
int b_style
int b_width
bool d_box_labels
LabelsDisplayPolicy d_labels_display
bool d_whiskers_labels
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

Detailed Description

Box curve.


Member Enumeration Documentation

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

Constructor & Destructor Documentation

BoxCurve::BoxCurve ( Table t,
const QString &  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 ( BoxCurve b)
void BoxCurve::createLabel ( double  val) [private]
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, median(), 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::hasBoxLabels ( ) [inline]

References d_box_labels.

Referenced by copy(), and PlotDialog::setActiveCurve().

bool BoxCurve::hasWhiskerLabels ( ) [inline]

References d_whiskers_labels.

Referenced by copy(), and PlotDialog::setActiveCurve().

QString BoxCurve::labelPercentage ( int  index) [private]

References b_coeff, b_range, SD, SE, w_coeff, and w_range.

Referenced by labelText().

LabelsDisplayPolicy BoxCurve::labelsDisplayPolicy ( ) [inline]

References d_labels_display.

Referenced by copy().

QString BoxCurve::labelText ( int  index,
double  val 
) [private]
void BoxCurve::loadData ( ) [virtual]
void BoxCurve::loadLabels ( ) [private, virtual]
QwtSymbol::Style BoxCurve::maxStyle ( ) [inline]
QwtSymbol::Style BoxCurve::meanStyle ( ) [inline]
double BoxCurve::median ( ) [inline]

References quantile().

Referenced by drawBox(), and statistics().

QwtSymbol::Style BoxCurve::minStyle ( ) [inline]
QwtSymbol::Style BoxCurve::p1Style ( ) [inline]
QwtSymbol::Style BoxCurve::p99Style ( ) [inline]
double BoxCurve::quantile ( double  f)

Referenced by median().

void BoxCurve::setBoxRange ( int  type,
double  coeff 
)
void BoxCurve::setBoxStyle ( int  style)
void BoxCurve::setBoxWidth ( int  width) [inline]
void BoxCurve::setLabelsDisplayPolicy ( const LabelsDisplayPolicy policy)

References d_labels_display, and updateLabels().

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 = 0.0 
)
void BoxCurve::showBoxLabels ( bool  on = true)
void BoxCurve::showWhiskerLabels ( bool  on = true)
QString BoxCurve::statistics ( )

References median().

Referenced by PlotDialog::showBoxStatistics().

double * BoxCurve::statisticValues ( ) [private]

References b_coeff, b_range, SD, SE, w_coeff, and w_range.

Referenced by loadLabels(), and updateLabels().

void BoxCurve::updateLabels ( bool  updateText = true) [private]
void BoxCurve::updateLabelsPosition ( ) [inline, private, virtual]

Reimplemented from DataCurve.

References updateLabels().

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]
bool BoxCurve::d_box_labels [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]

Referenced by copy(), drawSymbols(), p1Style(), and setP1Style().

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: