26 #ifndef QTPLOTSETTINGS_H
27 #define QTPLOTSETTINGS_H
39 void adjust(
const QString& topUnits,
const QString& topType,
const QString& bottomUnits,
40 const QString& bottomType,
bool autoScaleX,
bool autoScaleY,
bool zoom =
false );
42 void zoomOut(
double zoomFactor,
const QString& topUnits,
const QString& topType,
43 const QString& bottomUnits,
const QString& bottomType,
44 bool autoScaleX,
bool autoScaleY );
45 void zoomIn(
double zoomFactor,
const QString& topUnits,
const QString& topType,
46 const QString& bottomUnits,
const QString& bottomType,
47 bool autoScaleX,
bool autoScaleY );
49 std::pair<double,double>
getZoomInY(
double zoomFactor )
const;
50 std::pair<double,double>
getZoomOutY(
double zoomFactor )
const;
52 void scroll(
int dx,
int dy);
55 return maxX[
static_cast<int>(index)] -
minX[static_cast<int>(index)];
61 return minX[
static_cast<int>(index)];
65 return maxX[
static_cast<int>(index)];
88 static QString result(
"radio velocity");
92 static QString result(
"optical velocity");
96 static QString result(
"air wavelength");
99 static constexpr
double ZERO_LIMIT = 0.0000000000000005f;
103 std::pair<double,double>
adjustAxis(
double &
min,
double &
max,
int &numTicks);
107 double min,
double max,
const QString& topUnits,
const QString& unitType );
double getMinX(AxisIndex index) const
void setMinX(AxisIndex index, double value)
double maxX[END_AXIS_INDEX]
casacore::SpectralCoordinate m_spectralCoordinate
Used for conversions.
void setMaxY(double value)
void adjustAxisTop(double &min, double &max)
double spanX(AxisIndex index) const
double minX[END_AXIS_INDEX]
static constexpr double ZERO_LIMIT
static const QString & OPTICAL_VELOCITY()
void zoomOut(double zoomFactor, const QString &topUnits, const QString &topType, const QString &bottomUnits, const QString &bottomType, bool autoScaleX, bool autoScaleY)
void scroll(int dx, int dy)
void zoomIn(double zoomFactor, const QString &topUnits, const QString &topType, const QString &bottomUnits, const QString &bottomType, bool autoScaleX, bool autoScaleY)
std::pair< double, double > convertBottomBounds(double min, double max, const QString &topUnits, const QString &unitType)
static const QString & RADIO_VELOCITY()
double getTickLabelX(int tickIndex, int tickCount, QtPlotSettings::AxisIndex axisIndex) const
double getMaxX(AxisIndex index) const
std::pair< double, double > getZoomOutY(double zoomFactor) const
void setSpectralCoordinate(const casacore::SpectralCoordinate &coord)
void setMaxX(AxisIndex index, double value)
Types
Types of known MDopplers Warning: The order defines the order in the translation matrix FromTo in th...
void adjust(const QString &topUnits, const QString &topType, const QString &bottomUnits, const QString &bottomType, bool autoScaleX, bool autoScaleY, bool zoom=false)
static const QString & OPTICAL_WAVELENGTH()
Interconvert pixel and frequency values.
double getTickValue(int tickIndex, int tickCount, QtPlotSettings::AxisIndex axisIndex) const
std::pair< double, double > adjustAxis(double &min, double &max, int &numTicks)
void setMinY(double value)
std::pair< double, double > getZoomInY(double zoomFactor) const
casacore::MDoppler::Types getDoppler(const QString &unitType)
void zoomY(double minY, double maxY, bool autoScaleY)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.