casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Member Functions | Private Attributes
casa::QtPlotSettings Class Reference

#include <QtPlotSettings.h>

List of all members.

Public Types

enum  AxisIndex {
  xBottom,
  xTop,
  END_AXIS_INDEX
}

Public Member Functions

 QtPlotSettings ()
void adjust (const QString &topUnits, const QString &bottomUnits, bool autoScaleX, bool autoScaleY)
void zoomOut (double zoomFactor, const QString &topUnits, const QString &bottomUnits, bool autoScaleX, bool autoScaleY)
void zoomIn (double zoomFactor, const QString &topUnits, const QString &bottomUnits, 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

Private Member Functions

void adjustAxis (double &min, double &max, int &numTicks)
void adjustAxisTop (double &min, double &max, const QString &topUnits, const QString &bottomUnits)

Private Attributes

double minX [END_AXIS_INDEX]
double maxX [END_AXIS_INDEX]
int numXTicks
double minY
double maxY
double minPercentage
double maxPercentage
double originalMinX
double originalMaxX
int numYTicks

Detailed Description

Definition at line 37 of file QtPlotSettings.h.


Member Enumeration Documentation

Enumerator:
xBottom 
xTop 
END_AXIS_INDEX 

Definition at line 51 of file QtPlotSettings.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::QtPlotSettings::adjust ( const QString &  topUnits,
const QString &  bottomUnits,
bool  autoScaleX,
bool  autoScaleY 
)
void casa::QtPlotSettings::adjustAxis ( double &  min,
double &  max,
int &  numTicks 
) [private]
void casa::QtPlotSettings::adjustAxisTop ( double &  min,
double &  max,
const QString &  topUnits,
const QString &  bottomUnits 
) [private]
double casa::QtPlotSettings::getMaxX ( AxisIndex  index) const [inline]

Definition at line 60 of file QtPlotSettings.h.

double casa::QtPlotSettings::getMaxY ( ) const [inline]

Definition at line 69 of file QtPlotSettings.h.

double casa::QtPlotSettings::getMinX ( AxisIndex  index) const [inline]

Definition at line 56 of file QtPlotSettings.h.

double casa::QtPlotSettings::getMinY ( ) const [inline]

Definition at line 64 of file QtPlotSettings.h.

int casa::QtPlotSettings::getNumTicksX ( ) const [inline]

Definition at line 74 of file QtPlotSettings.h.

int casa::QtPlotSettings::getNumTicksY ( ) const [inline]

Definition at line 77 of file QtPlotSettings.h.

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)
double casa::QtPlotSettings::spanX ( AxisIndex  index) const [inline]

Definition at line 52 of file QtPlotSettings.h.

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

Definition at line 55 of file QtPlotSettings.h.

void casa::QtPlotSettings::zoomIn ( double  zoomFactor,
const QString &  topUnits,
const QString &  bottomUnits,
bool  autoScaleX,
bool  autoScaleY 
)
void casa::QtPlotSettings::zoomOut ( double  zoomFactor,
const QString &  topUnits,
const QString &  bottomUnits,
bool  autoScaleX,
bool  autoScaleY 
)
void casa::QtPlotSettings::zoomY ( double  minY,
double  maxY,
bool  autoScaleY 
)

Member Data Documentation

Definition at line 94 of file QtPlotSettings.h.

Definition at line 89 of file QtPlotSettings.h.

double casa::QtPlotSettings::maxY [private]

Definition at line 92 of file QtPlotSettings.h.

Definition at line 93 of file QtPlotSettings.h.

Definition at line 88 of file QtPlotSettings.h.

double casa::QtPlotSettings::minY [private]

Definition at line 91 of file QtPlotSettings.h.

Definition at line 90 of file QtPlotSettings.h.

Definition at line 97 of file QtPlotSettings.h.

Definition at line 96 of file QtPlotSettings.h.

Definition at line 95 of file QtPlotSettings.h.


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