Common code for drawing a vertical axis external to the plot. More...
#include <ExternalAxisWidgetVertical.h>
Public Member Functions | |
ExternalAxisWidgetVertical (QWidget *parent, QwtPlot *plot, bool leftAxisInternal, bool bottomAxisInternal, bool rightAxisInternal) | |
virtual | ~ExternalAxisWidgetVertical () |
Protected Member Functions | |
virtual int | getStartY () const |
Return the y pixel coordinate for the start of the axis. | |
virtual int | getEndY () const |
Return the y pixel coordinate for the end of the axis. | |
virtual int | getAxisLength () const |
Return the length of the axis in pixels. | |
void | drawTicks (QPainter *painter, int tickLength) |
Draw tick marks on the axis of the specified length. | |
virtual void | drawTick (QPainter *painter, double yPixel, double value, int tickLength)=0 |
Common code for drawing a vertical axis external to the plot.
Definition at line 37 of file ExternalAxisWidgetVertical.h.
casa::ExternalAxisWidgetVertical::ExternalAxisWidgetVertical | ( | QWidget * | parent, | |
QwtPlot * | plot, | |||
bool | leftAxisInternal, | |||
bool | bottomAxisInternal, | |||
bool | rightAxisInternal | |||
) |
virtual casa::ExternalAxisWidgetVertical::~ExternalAxisWidgetVertical | ( | ) | [virtual] |
virtual void casa::ExternalAxisWidgetVertical::drawTick | ( | QPainter * | painter, | |
double | yPixel, | |||
double | value, | |||
int | tickLength | |||
) | [protected, pure virtual] |
Implemented in casa::ExternalAxisWidgetLeft, and casa::ExternalAxisWidgetRight.
void casa::ExternalAxisWidgetVertical::drawTicks | ( | QPainter * | painter, | |
int | tickLength | |||
) | [protected, virtual] |
Draw tick marks on the axis of the specified length.
Implements casa::ExternalAxisWidget.
virtual int casa::ExternalAxisWidgetVertical::getAxisLength | ( | ) | const [protected, virtual] |
Return the length of the axis in pixels.
Implements casa::ExternalAxisWidget.
virtual int casa::ExternalAxisWidgetVertical::getEndY | ( | ) | const [protected, virtual] |
Return the y pixel coordinate for the end of the axis.
Reimplemented from casa::ExternalAxisWidget.
virtual int casa::ExternalAxisWidgetVertical::getStartY | ( | ) | const [protected, virtual] |
Return the y pixel coordinate for the start of the axis.
Reimplemented from casa::ExternalAxisWidget.