void QPAxis::showGrid(bool , bool , bool ,bool ) {
#include <casaqt/QwtPlotter/QPAxis.qo.h>
#include <casaqt/QwtPlotter/QPCanvas.qo.h>
#include <casaqt/QtUtilities/QtLayeredLayout.h>
#include <casaqt/QtUtilities/Axis/ExternalAxisWidgetLeft.h>
#include <casaqt/QtUtilities/Axis/ExternalAxisWidgetRight.h>
#include <casaqt/QtUtilities/Axis/ExternalAxisWidgetTop.h>
#include <casaqt/QtUtilities/Axis/ExternalAxisWidgetBottom.h>
#include <casaqt/QwtPlotter/QPAnnotation.h>
#include <casaqt/QwtPlotter/QPFactory.h>
#include <casaqt/QwtPlotter/QPPlotter.qo.h>
#include <casaqt/QwtPlotter/QPRasterPlot.h>
#include <casaqt/QwtPlotter/QPShape.h>
#include <qwt_scale_widget.h>
using namespace casacore;
double QPAxis::zOrder = 1;
const String QPAxis::CLASS_NAME = "QPAxis";
const String QPAxis::DRAW_NAME = "drawItems";
bool QPAxis::print( QPrinter& ){
const QPalette& QPAxis::palette() const {
return axisWidget->palette();
QPalette::ColorRole QPAxis::backgroundRole() const {
return axisWidget->backgroundRole();
bool QPAxis::print( QPainter* painter, PlotAreaFillPtr paf, double widgetWidth,
double widgetHeight, int axisWidth, int axisHeight,
int rowIndex, int colIndex, QRect ){
PlotAreaFillPtr originalBackground = background();
int xPosition = static_cast<int>(colIndex * widgetWidth );
int yPosition = static_cast<int>(rowIndex * widgetHeight + axisHeight);
printGeom = QRect( xPosition, yPosition, axisWidth,
static_cast<int>(widgetHeight));