casa::FeatherCurve Class Reference
Represents a curve on one of the plots.
More...
#include <FeatherCurve.h>
List of all members.
Public Member Functions |
| | FeatherCurve (FeatherPlot *plot, QwtPlot::Axis xAxis, QwtPlot::Axis yAxis, bool sumCurve) |
| void | initScatterPlot (int dotSize) |
| void | setTitle (const QString &title) |
| void | setFunctionColor (const QColor &color, bool diagonalLine) |
| void | setCurveData (const QVector< double > &xVals, const QVector< double > &yVals) |
| | Change the data the curve contains.
|
| QVector< double > | getXValues () const |
| QVector< double > | getYValues () const |
| QColor | getRectColor () const |
| void | adjustData (bool uvLog, bool ampLog) |
| | Change the scale of existing data (Log<-->No Log).
|
| void | setCurveSize (bool scatterPlot, bool diagonalLine, int dotSize, int lineThickness) |
| std::pair< double, double > | getBoundsX () const |
| std::pair< double, double > | getBoundsY () const |
| QwtPlot::Axis | getVerticalAxis () const |
| QString | getTitle () const |
| virtual | ~FeatherCurve () |
Private Member Functions |
| | FeatherCurve (const FeatherCurve &other) |
| FeatherCurve | operator= (const FeatherCurve &other) |
| void | setCurvePenColor (const QColor &color) |
| bool | isSumCurve () const |
| bool | isWeightCurve () const |
| double | logarithm (double value, Bool &valid) const |
| QList< int > | doLogs (double *values, int count) const |
| void | resetDataBounds () |
Private Attributes |
| bool | scatterPlot |
| bool | scaleLogUV |
| bool | scaleLogAmplitude |
| bool | sumCurve |
| | This variable was added for scatter plots.
|
| bool | firstTime |
| double | minX |
| double | maxX |
| double | minY |
| double | maxY |
| LegendCurve * | plotCurve |
| QColor | functionColor |
| QVector< double > | xValues |
| QVector< double > | yValues |
Detailed Description
Represents a curve on one of the plots.
Definition at line 44 of file FeatherCurve.h.
Constructor & Destructor Documentation
| casa::FeatherCurve::FeatherCurve |
( |
FeatherPlot * |
plot, |
|
|
QwtPlot::Axis |
xAxis, |
|
|
QwtPlot::Axis |
yAxis, |
|
|
bool |
sumCurve | |
|
) |
| | |
| virtual casa::FeatherCurve::~FeatherCurve |
( |
|
) |
[virtual] |
| casa::FeatherCurve::FeatherCurve |
( |
const FeatherCurve & |
other |
) |
[private] |
Member Function Documentation
| void casa::FeatherCurve::adjustData |
( |
bool |
uvLog, |
|
|
bool |
ampLog | |
|
) |
| | |
Change the scale of existing data (Log<-->No Log).
| QList<int> casa::FeatherCurve::doLogs |
( |
double * |
values, |
|
|
int |
count | |
|
) |
| | const [private] |
| std::pair<double,double> casa::FeatherCurve::getBoundsX |
( |
|
) |
const |
| std::pair<double,double> casa::FeatherCurve::getBoundsY |
( |
|
) |
const |
| QColor casa::FeatherCurve::getRectColor |
( |
|
) |
const [virtual] |
| QString casa::FeatherCurve::getTitle |
( |
|
) |
const |
| QwtPlot::Axis casa::FeatherCurve::getVerticalAxis |
( |
|
) |
const |
| QVector<double> casa::FeatherCurve::getXValues |
( |
|
) |
const |
| QVector<double> casa::FeatherCurve::getYValues |
( |
|
) |
const |
| void casa::FeatherCurve::initScatterPlot |
( |
int |
dotSize |
) |
|
| bool casa::FeatherCurve::isSumCurve |
( |
|
) |
const [private] |
| bool casa::FeatherCurve::isWeightCurve |
( |
|
) |
const [private] |
| double casa::FeatherCurve::logarithm |
( |
double |
value, |
|
|
Bool & |
valid | |
|
) |
| | const [private] |
| void casa::FeatherCurve::resetDataBounds |
( |
|
) |
[private] |
| void casa::FeatherCurve::setCurveData |
( |
const QVector< double > & |
xVals, |
|
|
const QVector< double > & |
yVals | |
|
) |
| | |
Change the data the curve contains.
| void casa::FeatherCurve::setCurvePenColor |
( |
const QColor & |
color |
) |
[private] |
| void casa::FeatherCurve::setCurveSize |
( |
bool |
scatterPlot, |
|
|
bool |
diagonalLine, |
|
|
int |
dotSize, |
|
|
int |
lineThickness | |
|
) |
| | |
| void casa::FeatherCurve::setFunctionColor |
( |
const QColor & |
color, |
|
|
bool |
diagonalLine | |
|
) |
| | |
| void casa::FeatherCurve::setTitle |
( |
const QString & |
title |
) |
|
Member Data Documentation
This variable was added for scatter plots.
Normally if the FeatherCurveType is SUM_LOW_HIGH, it will be a sum curve. However, scatter plots can have x-values which are sums, and y-values which are something else, say a low-weighted curve. In this case, the FeatherCurveType will be whatever the y-axis. Thus, we set a boolean variable to indicated if it is a sum curve. This is imported because sums have to be specially calculated in the case of a logarithm scale and cannot be done directly by taking log( sum).
Definition at line 94 of file FeatherCurve.h.
The documentation for this class was generated from the following file: