casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
casa::ExternalAxisControl Class Referenceabstract

Base class for classes that use the QwtScaleDiv information to draw their own axis. More...

#include <ExternalAxisControl.h>

Inheritance diagram for casa::ExternalAxisControl:
casa::ExternalAxisControlBottom casa::ExternalAxisControlLeft casa::ExternalAxisControlRight

Public Member Functions

 ExternalAxisControl (QWidget *parent)
 
void setAxisLabel (const QString &label)
 
void setPlot (QwtPlot *canvas)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual ~ExternalAxisControl ()
 

Protected Member Functions

virtual void drawTicks (QPainter *painter, int tickLength)=0
 
virtual void defineAxis (QLine &axisLine)=0
 
virtual void drawAxisLabel (QPainter *painter)=0
 
virtual int getCanvasHeight () const
 
virtual int getStartY () const
 
int getTickIncrement (int tickCount) const
 
double getTickStartPixel (QwtPlot::Axis axis)
 
double getTickDistance (QwtPlot::Axis axis)
 
double getTickIncrement (double tickDistance, QwtPlot::Axis axis)
 

Protected Attributes

QwtPlot * plot
 
QString axisLabel
 
const int AXIS_SMALL_SIDE
 
const int MARGIN
 
const int MIN_START_Y
 

Private Member Functions

void drawBackBone (QPainter *painter)
 
void drawTicks (QPainter *painter)
 
void drawLabel (QPainter *painter)
 

Private Attributes

const int FONT_SIZE
 
const int FONT_SIZE_AXIS_LABEL
 

Detailed Description

Base class for classes that use the QwtScaleDiv information to draw their own axis.

Definition at line 40 of file ExternalAxisControl.h.

Constructor & Destructor Documentation

casa::ExternalAxisControl::ExternalAxisControl ( QWidget *  parent)
virtual casa::ExternalAxisControl::~ExternalAxisControl ( )
virtual

Member Function Documentation

virtual void casa::ExternalAxisControl::defineAxis ( QLine &  axisLine)
protectedpure virtual
virtual void casa::ExternalAxisControl::drawAxisLabel ( QPainter *  painter)
protectedpure virtual
void casa::ExternalAxisControl::drawBackBone ( QPainter *  painter)
private
void casa::ExternalAxisControl::drawLabel ( QPainter *  painter)
private
virtual void casa::ExternalAxisControl::drawTicks ( QPainter *  painter,
int  tickLength 
)
protectedpure virtual
void casa::ExternalAxisControl::drawTicks ( QPainter *  painter)
private
virtual int casa::ExternalAxisControl::getCanvasHeight ( ) const
protectedvirtual

Reimplemented in casa::ExternalAxisControlRight.

virtual int casa::ExternalAxisControl::getStartY ( ) const
protectedvirtual
double casa::ExternalAxisControl::getTickDistance ( QwtPlot::Axis  axis)
protected
int casa::ExternalAxisControl::getTickIncrement ( int  tickCount) const
protected
double casa::ExternalAxisControl::getTickIncrement ( double  tickDistance,
QwtPlot::Axis  axis 
)
protected
double casa::ExternalAxisControl::getTickStartPixel ( QwtPlot::Axis  axis)
protected
virtual void casa::ExternalAxisControl::paintEvent ( QPaintEvent *  event)
virtual
void casa::ExternalAxisControl::setAxisLabel ( const QString &  label)
void casa::ExternalAxisControl::setPlot ( QwtPlot *  canvas)

Member Data Documentation

const int casa::ExternalAxisControl::AXIS_SMALL_SIDE
protected

Definition at line 60 of file ExternalAxisControl.h.

QString casa::ExternalAxisControl::axisLabel
protected

Definition at line 59 of file ExternalAxisControl.h.

const int casa::ExternalAxisControl::FONT_SIZE
private

Definition at line 68 of file ExternalAxisControl.h.

const int casa::ExternalAxisControl::FONT_SIZE_AXIS_LABEL
private

Definition at line 69 of file ExternalAxisControl.h.

const int casa::ExternalAxisControl::MARGIN
protected

Definition at line 61 of file ExternalAxisControl.h.

const int casa::ExternalAxisControl::MIN_START_Y
protected

Definition at line 62 of file ExternalAxisControl.h.

QwtPlot* casa::ExternalAxisControl::plot
protected

Definition at line 58 of file ExternalAxisControl.h.


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