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