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

#include <ExternalAxisWidgetRight.h>

Inheritance diagram for casa::ExternalAxisWidgetRight:
casa::ExternalAxisWidgetVertical casa::ExternalAxisWidget

Public Member Functions

 ExternalAxisWidgetRight (QWidget *parent, QwtPlot *plot, bool leftAxisInternal, bool bottomAxisInternal, bool rightAxisInternal)
 
void setUseLeftScale (bool b)
 
virtual ~ExternalAxisWidgetRight ()
 
- Public Member Functions inherited from casa::ExternalAxisWidgetVertical
 ExternalAxisWidgetVertical (QWidget *parent, QwtPlot *plot, bool leftAxisInternal, bool bottomAxisInternal, bool rightAxisInternal)
 
virtual ~ExternalAxisWidgetVertical ()
 
- Public Member Functions inherited from casa::ExternalAxisWidget
 ExternalAxisWidget (QWidget *parent, QwtPlot *plot, bool leftAxisInternal, bool bottomAxisInternal, bool rightAxisInternal)
 
void setAxisLabel (const QString &label)
 
QString getAxisLabel () const
 
virtual void paintEvent (QPaintEvent *event)
 
void print (QPainter *painter, QRect imageRect)
 
void setDateFormat (const casacore::String &newFormat)
 Date formats. More...
 
void setRelativeDateFormat (const casacore::String &newFormat)
 
void setAxisScale (PlotAxisScale scale, casacore::uInt base=10)
 Axis scale. More...
 
void setReferenceValue (bool on, double value)
 
void setAxisFont (const QFont &font)
 Axis font. More...
 
virtual ~ExternalAxisWidget ()
 

Protected Member Functions

virtual void defineAxis (QLine &axisLine)
 virtual int getCanvasHeight() const; More...
 
virtual void drawAxisLabel (QPainter *painter)
 virtual void drawTicks(QPainter* painter, int tickLength); More...
 
virtual void drawTick (QPainter *painter, double yPixel, double value, int tickLength)
 
- Protected Member Functions inherited from casa::ExternalAxisWidgetVertical
virtual int getStartY () const
 Return the y pixel coordinate for the start of the axis. More...
 
virtual int getEndY () const
 Return the y pixel coordinate for the end of the axis. More...
 
virtual int getAxisLength () const
 Return the length of the axis in pixels. More...
 
void drawTicks (QPainter *painter, int tickLength)
 Draw tick marks on the axis of the specified length. More...
 
- Protected Member Functions inherited from casa::ExternalAxisWidget
virtual int getCanvasHeight () const
 
virtual int getCanvasWidth () const
 
virtual int getStartX () const
 
int getTickIncrement (int tickCount) const
 
double getTickStartPixel (QwtPlot::Axis axis)
 
double getTickDistance (QwtPlot::Axis axis)
 
double getTickIncrement (double tickDistance, QwtPlot::Axis axis)
 
QString formatLabel (double value) const
 

Private Attributes

bool useLeftScale
 

Additional Inherited Members

- Protected Attributes inherited from casa::ExternalAxisWidget
QwtPlot * plot
 
QPScaleDraw * scaleDraw
 
QString axisLabel
 
QwtPlot::Axis plotAxis
 
bool leftAxisInternal
 Which axis are internal (drawn by the Qwt plot) More...
 
bool bottomAxisInternal
 
bool rightAxisInternal
 
const int AXIS_SMALL_SIDE
 
const int TICK_LENGTH
 
const int MARGIN
 
const int MIN_START_Y
 

Detailed Description

Definition at line 33 of file ExternalAxisWidgetRight.h.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void casa::ExternalAxisWidgetRight::defineAxis ( QLine &  axisLine)
protectedvirtual
virtual void casa::ExternalAxisWidgetRight::drawAxisLabel ( QPainter *  painter)
protectedvirtual
virtual void casa::ExternalAxisWidgetRight::drawTick ( QPainter *  painter,
double  yPixel,
double  value,
int  tickLength 
)
protectedvirtual
void casa::ExternalAxisWidgetRight::setUseLeftScale ( bool  b)

Member Data Documentation

bool casa::ExternalAxisWidgetRight::useLeftScale
private

Definition at line 48 of file ExternalAxisWidgetRight.h.


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