casa::ExternalAxisWidgetHorizontal Class Reference

Common code for drawing a horizontal axis external to the plot. More...

#include <ExternalAxisWidgetHorizontal.h>

Inheritance diagram for casa::ExternalAxisWidgetHorizontal:
casa::ExternalAxisWidget casa::ExternalAxisWidgetBottom casa::ExternalAxisWidgetTop

List of all members.

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

Detailed Description

Common code for drawing a horizontal axis external to the plot.

Definition at line 37 of file ExternalAxisWidgetHorizontal.h.


Constructor & Destructor Documentation

casa::ExternalAxisWidgetHorizontal::ExternalAxisWidgetHorizontal ( QWidget *  parent,
QwtPlot *  plot,
bool  leftAxisInternal,
bool  bottomAxisInternal,
bool  rightAxisInternal 
)
virtual casa::ExternalAxisWidgetHorizontal::~ExternalAxisWidgetHorizontal (  )  [virtual]

Member Function Documentation

virtual void casa::ExternalAxisWidgetHorizontal::drawTick ( QPainter *  painter,
double  xPixel,
double  value,
int  tickLength 
) [protected, pure virtual]
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1