Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_AxisScaleDraw Class Reference

#include <Plot2d_ViewFrame.h>

Inheritance diagram for Plot2d_AxisScaleDraw:
Inheritance graph

Public Member Functions

 Plot2d_AxisScaleDraw (Plot2d_Plot2d *plot)
 
virtual ~Plot2d_AxisScaleDraw ()
 
void unactivTicksDrawing (int numcall)
 
virtual void draw (QPainter *painter, const QPalette &palette) const
 
virtual QwtText label (double value) const
 
void setLabelTick (double value, QString label, bool isDevice=false)
 
void setTicks (const QList< double > aTicks)
 
void setInterval (double lowerBound, double upperBound)
 
void applyTicks ()
 
double extent (const QFont &font) const
 

Static Public Attributes

static const QString DEVICE_FONT = QString("Times")
 
static const int DEVICE_FONT_SIZE = 12
 
static const int DEVICE_BY = 40
 

Protected Member Functions

void drawLabel (QPainter *painter, double value) const
 
void drawTick (QPainter *painter, double value, int len) const
 

Private Attributes

bool myActivTicksDrawing
 
int myNumTicksDrawingCall
 
QMap< double, QString > myLabelX
 
QList< double > myTicks
 
QMap< double, QString > myLabelDevice
 
Plot2d_Plot2dmyPlot
 
double myLowerBound
 
double myUpperBound
 

Constructor & Destructor Documentation

Plot2d_AxisScaleDraw::Plot2d_AxisScaleDraw ( Plot2d_Plot2d plot)
Plot2d_AxisScaleDraw::~Plot2d_AxisScaleDraw ( )
virtual

Member Function Documentation

void Plot2d_AxisScaleDraw::applyTicks ( )
void Plot2d_AxisScaleDraw::draw ( QPainter *  painter,
const QPalette &  palette 
) const
virtual
void Plot2d_AxisScaleDraw::drawLabel ( QPainter *  painter,
double  value 
) const
protected
void Plot2d_AxisScaleDraw::drawTick ( QPainter *  painter,
double  value,
int  len 
) const
protected

References myLabelX.

double Plot2d_AxisScaleDraw::extent ( const QFont &  font) const
QwtText Plot2d_AxisScaleDraw::label ( double  value) const
virtual

References myLabelX.

void Plot2d_AxisScaleDraw::setInterval ( double  lowerBound,
double  upperBound 
)
void Plot2d_AxisScaleDraw::setLabelTick ( double  value,
QString  label,
bool  isDevice = false 
)

References label(), myLabelDevice, and myLabelX.

void Plot2d_AxisScaleDraw::setTicks ( const QList< double >  aTicks)

References applyTicks(), and myTicks.

void Plot2d_AxisScaleDraw::unactivTicksDrawing ( int  numcall)

Member Data Documentation

const int Plot2d_AxisScaleDraw::DEVICE_BY = 40
static
const QString Plot2d_AxisScaleDraw::DEVICE_FONT = QString("Times")
static
const int Plot2d_AxisScaleDraw::DEVICE_FONT_SIZE = 12
static
bool Plot2d_AxisScaleDraw::myActivTicksDrawing
private
QMap<double, QString> Plot2d_AxisScaleDraw::myLabelDevice
private
QMap<double, QString> Plot2d_AxisScaleDraw::myLabelX
private
double Plot2d_AxisScaleDraw::myLowerBound
private
int Plot2d_AxisScaleDraw::myNumTicksDrawingCall
private
Plot2d_Plot2d* Plot2d_AxisScaleDraw::myPlot
private
QList<double> Plot2d_AxisScaleDraw::myTicks
private
double Plot2d_AxisScaleDraw::myUpperBound
private

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