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 ()
QwtPlotGrid * grid ()
int insertCurve (QwtPlotItem *c)
int insertMarker (QwtPlotMarker *m)
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 setMajorTicksType (int axis, int type)
void setMinorTicksType (int axis, int type)
void setTickLength (int minLength, int majLength)
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

Protected Attributes

int curve_key
QMap< int,
QwtPlotItem * > 
d_curves
Gridd_grid
QMap< int,
QwtPlotMarker * > 
d_markers
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 (  ) 

QwtPlotGrid* Plot::grid (  )  [inline]

int Plot::insertCurve ( QwtPlotItem *  c  ) 

int Plot::insertMarker ( QwtPlotMarker *  m  ) 

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::setMajorTicksType ( int  axis,
int  type 
)

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

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

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]

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

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 Mon Oct 15 06:11:43 2007 for QtiPlot by  doxygen 1.5.3