#include <QtPlotSettings.h>
Public Types | |
| enum | AxisIndex { xBottom, xTop, END_AXIS_INDEX } |
Public Member Functions | |
| QtPlotSettings () | |
| void | adjust (const QString &topUnits, const QString &topType, const QString &bottomUnits, const QString &bottomType, bool autoScaleX, bool autoScaleY, bool zoom=false) |
| void | setSpectralCoordinate (const SpectralCoordinate &coord) |
| void | zoomOut (double zoomFactor, const QString &topUnits, const QString &topType, const QString &bottomUnits, const QString &bottomType, bool autoScaleX, bool autoScaleY) |
| void | zoomIn (double zoomFactor, const QString &topUnits, const QString &topType, const QString &bottomUnits, const QString &bottomType, bool autoScaleX, bool autoScaleY) |
| void | zoomY (double minY, double maxY, bool autoScaleY) |
| pair< double, double > | getZoomInY (double zoomFactor) const |
| pair< double, double > | getZoomOutY (double zoomFactor) const |
| void | scroll (int dx, int dy) |
| double | spanX (AxisIndex index) const |
| double | spanY () const |
| double | getMinX (AxisIndex index) const |
| void | setMinX (AxisIndex index, double value) |
| double | getMaxX (AxisIndex index) const |
| void | setMaxX (AxisIndex index, double value) |
| double | getMinY () const |
| void | setMinY (double value) |
| double | getMaxY () const |
| void | setMaxY (double value) |
| int | getNumTicksX () const |
| int | getNumTicksY () const |
| double | getTickLabelX (int tickIndex, int tickCount, QtPlotSettings::AxisIndex axisIndex) const |
Static Public Attributes | |
| static const QString | RADIO_VELOCITY |
| static const QString | OPTICAL_VELOCITY |
| static const QString | OPTICAL_WAVELENGTH |
| static const double | ZERO_LIMIT |
Private Member Functions | |
| pair< double, double > | adjustAxis (double &min, double &max, int &numTicks) |
| void | adjustAxisTop (double &min, double &max) |
| std::pair< double, double > | convertBottomBounds (double min, double max, const QString &topUnits, const QString &unitType) |
| MDoppler::Types | getDoppler (const QString &unitType) |
| double | getTickValue (int tickIndex, int tickCount, QtPlotSettings::AxisIndex axisIndex) const |
Private Attributes | |
| double | minX [END_AXIS_INDEX] |
| double | maxX [END_AXIS_INDEX] |
| int | numXTicks |
| double | minY |
| double | maxY |
| double | minPercentage |
| double | maxPercentage |
| int | numYTicks |
| QString | m_topType |
| QString | m_bottomType |
| QString | m_topUnits |
| QString | m_bottomUnits |
| SpectralCoordinate | m_spectralCoordinate |
| Used for conversions. | |
Definition at line 36 of file QtPlotSettings.h.
Definition at line 53 of file QtPlotSettings.h.
| casa::QtPlotSettings::QtPlotSettings | ( | ) |
| void casa::QtPlotSettings::adjust | ( | const QString & | topUnits, | |
| const QString & | topType, | |||
| const QString & | bottomUnits, | |||
| const QString & | bottomType, | |||
| bool | autoScaleX, | |||
| bool | autoScaleY, | |||
| bool | zoom = false | |||
| ) |
| pair<double,double> casa::QtPlotSettings::adjustAxis | ( | double & | min, | |
| double & | max, | |||
| int & | numTicks | |||
| ) | [private] |
| void casa::QtPlotSettings::adjustAxisTop | ( | double & | min, | |
| double & | max | |||
| ) | [private] |
| std::pair<double,double> casa::QtPlotSettings::convertBottomBounds | ( | double | min, | |
| double | max, | |||
| const QString & | topUnits, | |||
| const QString & | unitType | |||
| ) | [private] |
| MDoppler::Types casa::QtPlotSettings::getDoppler | ( | const QString & | unitType | ) | [private] |
| double casa::QtPlotSettings::getMaxX | ( | AxisIndex | index | ) | const [inline] |
Definition at line 64 of file QtPlotSettings.h.
References maxX.
| double casa::QtPlotSettings::getMaxY | ( | ) | const [inline] |
Definition at line 73 of file QtPlotSettings.h.
| double casa::QtPlotSettings::getMinX | ( | AxisIndex | index | ) | const [inline] |
Definition at line 60 of file QtPlotSettings.h.
References minX.
| double casa::QtPlotSettings::getMinY | ( | ) | const [inline] |
Definition at line 68 of file QtPlotSettings.h.
| int casa::QtPlotSettings::getNumTicksX | ( | ) | const [inline] |
Definition at line 78 of file QtPlotSettings.h.
References numXTicks.
| int casa::QtPlotSettings::getNumTicksY | ( | ) | const [inline] |
Definition at line 81 of file QtPlotSettings.h.
References numYTicks.
| double casa::QtPlotSettings::getTickLabelX | ( | int | tickIndex, | |
| int | tickCount, | |||
| QtPlotSettings::AxisIndex | axisIndex | |||
| ) | const |
| double casa::QtPlotSettings::getTickValue | ( | int | tickIndex, | |
| int | tickCount, | |||
| QtPlotSettings::AxisIndex | axisIndex | |||
| ) | const [private] |
| pair<double,double> casa::QtPlotSettings::getZoomInY | ( | double | zoomFactor | ) | const |
| pair<double,double> casa::QtPlotSettings::getZoomOutY | ( | double | zoomFactor | ) | const |
| void casa::QtPlotSettings::scroll | ( | int | dx, | |
| int | dy | |||
| ) |
| void casa::QtPlotSettings::setMaxX | ( | AxisIndex | index, | |
| double | value | |||
| ) |
| void casa::QtPlotSettings::setMaxY | ( | double | value | ) |
| void casa::QtPlotSettings::setMinX | ( | AxisIndex | index, | |
| double | value | |||
| ) |
| void casa::QtPlotSettings::setMinY | ( | double | value | ) |
| void casa::QtPlotSettings::setSpectralCoordinate | ( | const SpectralCoordinate & | coord | ) |
| double casa::QtPlotSettings::spanX | ( | AxisIndex | index | ) | const [inline] |
Definition at line 54 of file QtPlotSettings.h.
| double casa::QtPlotSettings::spanY | ( | ) | const [inline] |
Definition at line 57 of file QtPlotSettings.h.
| void casa::QtPlotSettings::zoomIn | ( | double | zoomFactor, | |
| const QString & | topUnits, | |||
| const QString & | topType, | |||
| const QString & | bottomUnits, | |||
| const QString & | bottomType, | |||
| bool | autoScaleX, | |||
| bool | autoScaleY | |||
| ) |
| void casa::QtPlotSettings::zoomOut | ( | double | zoomFactor, | |
| const QString & | topUnits, | |||
| const QString & | topType, | |||
| const QString & | bottomUnits, | |||
| const QString & | bottomType, | |||
| bool | autoScaleX, | |||
| bool | autoScaleY | |||
| ) |
| void casa::QtPlotSettings::zoomY | ( | double | minY, | |
| double | maxY, | |||
| bool | autoScaleY | |||
| ) |
QString casa::QtPlotSettings::m_bottomType [private] |
Definition at line 111 of file QtPlotSettings.h.
QString casa::QtPlotSettings::m_bottomUnits [private] |
Definition at line 113 of file QtPlotSettings.h.
SpectralCoordinate casa::QtPlotSettings::m_spectralCoordinate [private] |
Used for conversions.
Definition at line 116 of file QtPlotSettings.h.
QString casa::QtPlotSettings::m_topType [private] |
Definition at line 110 of file QtPlotSettings.h.
QString casa::QtPlotSettings::m_topUnits [private] |
Definition at line 112 of file QtPlotSettings.h.
double casa::QtPlotSettings::maxPercentage [private] |
Definition at line 108 of file QtPlotSettings.h.
double casa::QtPlotSettings::maxX[END_AXIS_INDEX] [private] |
Definition at line 103 of file QtPlotSettings.h.
double casa::QtPlotSettings::maxY [private] |
Definition at line 106 of file QtPlotSettings.h.
double casa::QtPlotSettings::minPercentage [private] |
Definition at line 107 of file QtPlotSettings.h.
double casa::QtPlotSettings::minX[END_AXIS_INDEX] [private] |
Definition at line 102 of file QtPlotSettings.h.
double casa::QtPlotSettings::minY [private] |
Definition at line 105 of file QtPlotSettings.h.
int casa::QtPlotSettings::numXTicks [private] |
Definition at line 104 of file QtPlotSettings.h.
Referenced by getNumTicksX().
int casa::QtPlotSettings::numYTicks [private] |
Definition at line 109 of file QtPlotSettings.h.
Referenced by getNumTicksY().
const QString casa::QtPlotSettings::OPTICAL_VELOCITY [static] |
Definition at line 88 of file QtPlotSettings.h.
const QString casa::QtPlotSettings::OPTICAL_WAVELENGTH [static] |
Definition at line 89 of file QtPlotSettings.h.
const QString casa::QtPlotSettings::RADIO_VELOCITY [static] |
Definition at line 87 of file QtPlotSettings.h.
const double casa::QtPlotSettings::ZERO_LIMIT [static] |
Definition at line 90 of file QtPlotSettings.h.
1.6.1