casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
casa::QtPlotSettings Class Reference

#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 casacore::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)
 
std::pair< double, double > getZoomInY (double zoomFactor) const
 
std::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 Member Functions

static const QString & RADIO_VELOCITY ()
 
static const QString & OPTICAL_VELOCITY ()
 
static const QString & OPTICAL_WAVELENGTH ()
 

Static Public Attributes

static constexpr double ZERO_LIMIT
 

Private Member Functions

std::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)
 
casacore::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
 
casacore::SpectralCoordinate m_spectralCoordinate
 Used for conversions. More...
 

Detailed Description

Definition at line 36 of file QtPlotSettings.h.

Member Enumeration Documentation

Enumerator
xBottom 
xTop 
END_AXIS_INDEX 

Definition at line 53 of file QtPlotSettings.h.

Constructor & Destructor Documentation

casa::QtPlotSettings::QtPlotSettings ( )

Member Function Documentation

void casa::QtPlotSettings::adjust ( const QString &  topUnits,
const QString &  topType,
const QString &  bottomUnits,
const QString &  bottomType,
bool  autoScaleX,
bool  autoScaleY,
bool  zoom = false 
)
std::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
casacore::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.

References maxY.

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.

References minY.

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
std::pair<double,double> casa::QtPlotSettings::getZoomInY ( double  zoomFactor) const
std::pair<double,double> casa::QtPlotSettings::getZoomOutY ( double  zoomFactor) const
static const QString& casa::QtPlotSettings::OPTICAL_VELOCITY ( )
inlinestatic

Definition at line 91 of file QtPlotSettings.h.

static const QString& casa::QtPlotSettings::OPTICAL_WAVELENGTH ( )
inlinestatic

Definition at line 95 of file QtPlotSettings.h.

static const QString& casa::QtPlotSettings::RADIO_VELOCITY ( )
inlinestatic

Definition at line 87 of file QtPlotSettings.h.

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 casacore::SpectralCoordinate coord)
double casa::QtPlotSettings::spanX ( AxisIndex  index) const
inline

Definition at line 54 of file QtPlotSettings.h.

References maxX, and minX.

double casa::QtPlotSettings::spanY ( ) const
inline

Definition at line 57 of file QtPlotSettings.h.

References minY.

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 
)

Member Data Documentation

QString casa::QtPlotSettings::m_bottomType
private

Definition at line 120 of file QtPlotSettings.h.

QString casa::QtPlotSettings::m_bottomUnits
private

Definition at line 122 of file QtPlotSettings.h.

casacore::SpectralCoordinate casa::QtPlotSettings::m_spectralCoordinate
private

Used for conversions.

Definition at line 125 of file QtPlotSettings.h.

QString casa::QtPlotSettings::m_topType
private

Definition at line 119 of file QtPlotSettings.h.

QString casa::QtPlotSettings::m_topUnits
private

Definition at line 121 of file QtPlotSettings.h.

double casa::QtPlotSettings::maxPercentage
private

Definition at line 117 of file QtPlotSettings.h.

double casa::QtPlotSettings::maxX[END_AXIS_INDEX]
private

Definition at line 112 of file QtPlotSettings.h.

Referenced by getMaxX(), and spanX().

double casa::QtPlotSettings::maxY
private

Definition at line 115 of file QtPlotSettings.h.

Referenced by getMaxY().

double casa::QtPlotSettings::minPercentage
private

Definition at line 116 of file QtPlotSettings.h.

double casa::QtPlotSettings::minX[END_AXIS_INDEX]
private

Definition at line 111 of file QtPlotSettings.h.

Referenced by getMinX(), and spanX().

double casa::QtPlotSettings::minY
private

Definition at line 114 of file QtPlotSettings.h.

Referenced by getMinY(), and spanY().

int casa::QtPlotSettings::numXTicks
private

Definition at line 113 of file QtPlotSettings.h.

Referenced by getNumTicksX().

int casa::QtPlotSettings::numYTicks
private

Definition at line 118 of file QtPlotSettings.h.

Referenced by getNumTicksY().

constexpr double casa::QtPlotSettings::ZERO_LIMIT
static

Definition at line 99 of file QtPlotSettings.h.


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