Plot Class Reference

#include <Plot.h>

List of all members.


Detailed Description

Plot window class.

Public Types

enum  LabelFormat { Automatic, Decimal, Scientific, Superscripts }

Public Member Functions

int axesLinewidth () const
int axisLabelFormat (int axis)
void axisLabelFormat (int axis, char &f, int &prec) const
int axisLabelPrecision (int axis)
int closestCurve (int xpos, int ypos, int &dist, int &point)
QwtPlotCurve * curve (int index)
QList< int > curveKeys ()
QMap< int, QwtPlotItem * > curves ()
QList< QwtPlotItem * > curvesList ()
QColor frameColor ()
QList< int > getMajorTicksType ()
QList< int > getMinorTicksType ()
Gridgrid ()
int insertCurve (QwtPlotItem *c)
int insertMarker (QwtPlotMarker *m)
QLocale locale ()
int majorTickLength () const
QwtPlotMarker * marker (int index)
QList< int > markerKeys ()
int minorTickLength () const
const QColor & paletteBackgroundColor () const
 Plot (QWidget *parent=0, const char *name=0)
QwtPlotItem * plotItem (int index)
void print (QPainter *, const QRect &rect, const QwtPlotPrintFilter &=QwtPlotPrintFilter())
void printFrame (QPainter *painter, const QRect &rect) const
void removeCurve (int index)
void removeMarker (int index)
void setAxesLinewidth (int width)
void setAxisLabelFormat (int axis, char f, int prec)
void setLocale (const QLocale &l)
void setMajorTicksType (int axis, int type)
void setMinorTicksType (int axis, int type)
void setSVGMode (bool on=true)
void setTickLength (int minLength, int majLength)
void updateCurveLabels ()
void updateLayout ()
 Adjust plot content to its current size. Must be reimplemented because the base implementation adds a mask causing an ugly drawing artefact.

Protected Member Functions

void drawInwardTicks (QPainter *painter, const QRect &rect, const QwtScaleMap &map, int axis, bool min, bool maj) const
virtual void drawItems (QPainter *painter, const QRect &rect, const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const
void printCanvas (QPainter *painter, const QRect &canvasRect, const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const
void showEvent (QShowEvent *event)

Protected Attributes

int curve_key
QMap< int, QwtPlotItem * > d_curves
Gridd_grid
QLocale d_locale
QMap< int, QwtPlotMarker * > d_markers
bool d_SVG_mode
 Introduced as a work-around for bugs in exporting to SVG.
int majTickLength
int marker_key
int minTickLength

Member Enumeration Documentation

enum Plot::LabelFormat

Enumerator:
Automatic 
Decimal 
Scientific 
Superscripts 


Constructor & Destructor Documentation

Plot::Plot ( QWidget *  parent = 0,
const char *  name = 0 
)


Member Function Documentation

int Plot::axesLinewidth (  )  const

int Plot::axisLabelFormat ( int  axis  ) 

void Plot::axisLabelFormat ( int  axis,
char &  f,
int &  prec 
) const

Returns:
the number format for the major scale labels of a specified axis
Parameters:
axis axis index
Return values:
f format character
prec precision

int Plot::axisLabelPrecision ( int  axis  ) 

int Plot::closestCurve ( int  xpos,
int  ypos,
int &  dist,
int &  point 
)

QwtPlotCurve * Plot::curve ( int  index  ) 

QList<int> Plot::curveKeys (  )  [inline]

QMap<int, QwtPlotItem*> Plot::curves (  )  [inline]

QList<QwtPlotItem *> Plot::curvesList (  )  [inline]

void Plot::drawInwardTicks ( QPainter *  painter,
const QRect &  rect,
const QwtScaleMap &  map,
int  axis,
bool  min,
bool  maj 
) const [protected]

void Plot::drawItems ( QPainter *  painter,
const QRect &  rect,
const QwtScaleMap  map[axisCnt],
const QwtPlotPrintFilter &  pfilter 
) const [protected, virtual]

QColor Plot::frameColor (  ) 

QList< int > Plot::getMajorTicksType (  ) 

QList< int > Plot::getMinorTicksType (  ) 

Grid* Plot::grid (  )  [inline]

int Plot::insertCurve ( QwtPlotItem *  c  ) 

int Plot::insertMarker ( QwtPlotMarker *  m  ) 

QLocale Plot::locale (  )  [inline]

int Plot::majorTickLength (  )  const

QwtPlotMarker* Plot::marker ( int  index  )  [inline]

QList<int> Plot::markerKeys (  )  [inline]

int Plot::minorTickLength (  )  const

const QColor & Plot::paletteBackgroundColor (  )  const

QwtPlotItem* Plot::plotItem ( int  index  )  [inline]

void Plot::print ( QPainter *  painter,
const QRect &  rect,
const QwtPlotPrintFilter &  pfilter = QwtPlotPrintFilter() 
)

void Plot::printCanvas ( QPainter *  painter,
const QRect &  canvasRect,
const QwtScaleMap  map[axisCnt],
const QwtPlotPrintFilter &  pfilter 
) const [protected]

void Plot::printFrame ( QPainter *  painter,
const QRect &  rect 
) const

void Plot::removeCurve ( int  index  ) 

void Plot::removeMarker ( int  index  ) 

void Plot::setAxesLinewidth ( int  width  ) 

void Plot::setAxisLabelFormat ( int  axis,
char  f,
int  prec 
)

Change the number format for the major scale of a selected axis

Parameters:
axis axis index
f format
prec precision

void Plot::setLocale ( const QLocale &  l  )  [inline]

void Plot::setMajorTicksType ( int  axis,
int  type 
)

void Plot::setMinorTicksType ( int  axis,
int  type 
)

void Plot::setSVGMode ( bool  on = true  )  [inline]

void Plot::setTickLength ( int  minLength,
int  majLength 
)

void Plot::showEvent ( QShowEvent *  event  )  [protected]

void Plot::updateCurveLabels (  ) 

void Plot::updateLayout (  ) 

Adjust plot content to its current size. Must be reimplemented because the base implementation adds a mask causing an ugly drawing artefact.


Member Data Documentation

int Plot::curve_key [protected]

QMap<int, QwtPlotItem*> Plot::d_curves [protected]

Grid* Plot::d_grid [protected]

QLocale Plot::d_locale [protected]

QMap<int, QwtPlotMarker*> Plot::d_markers [protected]

bool Plot::d_SVG_mode [protected]

Introduced as a work-around for bugs in exporting to SVG.

int Plot::majTickLength [protected]

int Plot::marker_key [protected]

int Plot::minTickLength [protected]


The documentation for this class was generated from the following files:
Generated on Thu Feb 7 13:59:28 2008 for QtiPlot by  doxygen 1.5.4