SciDAVis
1.D4
|
#include <Plot.h>
Public Types | |
enum | LabelFormat { Automatic, Decimal, Scientific, Superscripts } |
Public Member Functions | |
int | axesLinewidth () const |
void | axisLabelFormat (int axis, char &f, int &prec) const |
int | axisLabelFormat (int axis) |
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 () |
Grid * | 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 |
Grid * | d_grid |
QMap< int, QwtPlotMarker * > | d_markers |
int | majTickLength |
int | marker_key |
int | minTickLength |
Friends | |
class | Graph |
Plot window class.
enum Plot::LabelFormat |
Plot::Plot | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
References curve_key, d_grid, majTickLength, marker_key, minTickLength, Grid::setMajPenX(), and Grid::setMinPenX().
int Plot::axesLinewidth | ( | ) | const |
void Plot::axisLabelFormat | ( | int | axis, |
char & | f, | ||
int & | prec | ||
) | const |
axis | axis index |
f | format character |
prec | precision |
References ScaleDraw::labelFormat().
Referenced by Graph::copy(), Graph::saveLabelsFormat(), AxesDialog::setLabelsNumericFormat(), Graph::showAxis(), AxesDialog::showAxisFormatOptions(), and AxesDialog::updateLabelsFormat().
int Plot::axisLabelFormat | ( | int | axis | ) |
References Automatic, Decimal, ScaleDraw::labelFormat(), Scientific, and Superscripts.
int Plot::axisLabelPrecision | ( | int | axis | ) |
References ScaleDraw::labelNumericPrecision().
Referenced by Graph::copy(), Graph::saveLabelsFormat(), AxesDialog::setLabelsNumericFormat(), Graph::showAxis(), and AxesDialog::updateLabelsFormat().
int Plot::closestCurve | ( | int | xpos, |
int | ypos, | ||
int & | dist, | ||
int & | point | ||
) |
References d_curves, and Graph::ErrorBars.
Referenced by DataPickerTool::append(), Graph::contextMenuEvent(), CanvasPicker::eventFilter(), and RangeSelectorTool::pointSelected().
QwtPlotCurve * Plot::curve | ( | int | index | ) |
References d_curves.
Referenced by Graph::addErrorBars(), Graph::analysableCurvesList(), DataPickerTool::append(), Graph::contextMenuEvent(), Graph::curve(), Graph::curvesList(), Legend::drawSymbols(), Graph::guessUniqueCurveLayout(), Graph::pieLegendText(), RangeSelectorTool::pointSelected(), Graph::setAntialiasing(), and Legend::symbolsMaxLineLength().
|
inline |
References d_curves.
Referenced by Graph::addErrorBars(), Graph::analysableCurvesList(), Graph::curvesList(), Graph::deleteFitCurves(), Graph::masterCurve(), Graph::pieLegendText(), Graph::plotItemsList(), Graph::removeCurves(), Graph::setAntialiasing(), Legend::symbolsMaxLineLength(), Graph::updateCurveNames(), Graph::updateCurvesData(), and Graph::visibleCurves().
|
inline |
References d_curves.
|
inline |
References d_curves.
|
protected |
References axesLinewidth(), majTickLength, and minTickLength.
Referenced by drawItems().
|
protectedvirtual |
References ScaleDraw::Both, drawInwardTicks(), ScaleDraw::In, ScaleDraw::majorTicksStyle(), and ScaleDraw::minorTicksStyle().
Referenced by printCanvas(), and Graph::printCanvas().
QColor Plot::frameColor | ( | ) |
Referenced by Graph::copy(), Graph::saveToString(), PlotDialog::setActiveLayer(), and Graph::setFrame().
QList< int > Plot::getMajorTicksType | ( | ) |
References ScaleDraw::majorTicksStyle(), and ScaleDraw::Out.
Referenced by Graph::copy(), Graph::saveTicksType(), AxesDialog::setGraph(), Graph::setMajorTicksType(), Graph::setTicksLength(), and Graph::showAxis().
QList< int > Plot::getMinorTicksType | ( | ) |
References ScaleDraw::minorTicksStyle(), and ScaleDraw::Out.
Referenced by Graph::copy(), Graph::saveTicksType(), AxesDialog::setGraph(), Graph::setMinorTicksType(), Graph::setTicksLength(), and Graph::showAxis().
|
inline |
References d_grid.
Referenced by Graph::grid(), ApplicationWindow::openGraph(), Graph::showAxisContextMenu(), Graph::showGrid(), AxesDialog::showGridOptions(), and AxesDialog::updateGrid().
int Plot::insertCurve | ( | QwtPlotItem * | c | ) |
References curve_key, and d_curves.
Referenced by Graph::addErrorBars(), Graph::addFunctionCurve(), Graph::copy(), Graph::insertCurve(), Graph::insertPlotItem(), Graph::openBoxDiagram(), Graph::plotBoxDiagram(), Graph::plotHistogram(), Graph::plotPie(), Graph::plotSpectrogram(), Graph::plotVectorCurve(), Graph::restoreSpectrogram(), and Graph::setCurveType().
int Plot::insertMarker | ( | QwtPlotMarker * | m | ) |
int Plot::majorTickLength | ( | ) | const |
References majTickLength.
Referenced by Graph::changeTicksLength(), Graph::majorTickLength(), AxesDialog::setGraph(), Graph::setMajorTicksType(), and Graph::showAxis().
|
inline |
References d_markers.
Referenced by Graph::addLegendItem(), Graph::arrow(), Graph::copyMarker(), Graph::imageMarker(), Graph::legend(), Graph::modifyFunctionCurve(), Graph::plotBoxDiagram(), Graph::plotPie(), Graph::removeLegendItem(), Graph::removeMarker(), Graph::removePie(), Graph::saveMarkers(), Graph::scaleFonts(), Graph::selectedMarkerPtr(), CanvasPicker::selectMarker(), Graph::setAntialiasing(), Graph::setSelectedMarker(), Graph::showIntensityTable(), Graph::textMarker(), Graph::updateCurveNames(), Graph::updateImageMarker(), Graph::updateMarkersBoundingRect(), and Graph::updateTextMarker().
|
inline |
References d_markers.
Referenced by MultiPeakFitTool::finalize(), Graph::focusNextPrevChild(), and Graph::setAntialiasing().
int Plot::minorTickLength | ( | ) | const |
References minTickLength.
Referenced by Graph::changeTicksLength(), Graph::minorTickLength(), AxesDialog::setGraph(), Graph::setMajorTicksType(), and Graph::showAxis().
const QColor & Plot::paletteBackgroundColor | ( | ) | const |
Referenced by Graph::copy(), printFrame(), Graph::saveToString(), and PlotDialog::setActiveLayer().
|
inline |
References d_curves.
Referenced by Graph::masterCurve(), Graph::plotItem(), Graph::plotItemIndex(), Graph::plotItemsList(), Graph::removeCurves(), Graph::updateCurveNames(), Graph::updateCurvesData(), and Graph::visibleCurves().
void Plot::print | ( | QPainter * | painter, |
const QRect & | rect, | ||
const QwtPlotPrintFilter & | pfilter = QwtPlotPrintFilter() |
||
) |
References printFrame().
|
protected |
References drawItems().
void Plot::printFrame | ( | QPainter * | painter, |
const QRect & | rect | ||
) | const |
References paletteBackgroundColor().
Referenced by print(), and Graph::print().
void Plot::removeCurve | ( | int | index | ) |
References Spectrogram::colorScaleAxis(), and d_curves.
Referenced by Graph::removeCurve(), Graph::removePie(), and Graph::setCurveType().
void Plot::removeMarker | ( | int | index | ) |
References d_markers.
Referenced by Grid::enableZeroLineX(), Grid::enableZeroLineY(), MultiPeakFitTool::finalize(), Graph::removeLegend(), and Graph::removeMarker().
void Plot::setAxesLinewidth | ( | int | width | ) |
Referenced by Graph::loadAxesLinewidth(), and Graph::setAxesLinewidth().
void Plot::setAxisLabelFormat | ( | int | axis, |
char | f, | ||
int | prec | ||
) |
Change the number format for the major scale of a selected axis
axis | axis index |
f | format |
prec | precision |
References ScaleDraw::setLabelFormat().
void Plot::setMajorTicksType | ( | int | axis, |
int | type | ||
) |
References ScaleDraw::setMajorTicksStyle().
Referenced by Graph::setMajorTicksType().
void Plot::setMinorTicksType | ( | int | axis, |
int | type | ||
) |
References ScaleDraw::setMinorTicksStyle().
Referenced by Graph::setMinorTicksType().
void Plot::setTickLength | ( | int | minLength, |
int | majLength | ||
) |
References majTickLength, and minTickLength.
Referenced by Graph::setAxisTicksLength().
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.
Referenced by Graph::showAxis().
|
friend |
|
protected |
Referenced by insertCurve(), and Plot().
|
protected |
Referenced by closestCurve(), curve(), curveKeys(), curves(), curvesList(), insertCurve(), plotItem(), and removeCurve().
|
protected |
Referenced by insertMarker(), marker(), markerKeys(), and removeMarker().
|
protected |
Referenced by drawInwardTicks(), majorTickLength(), Plot(), and setTickLength().
|
protected |
Referenced by insertMarker(), and Plot().
|
protected |
Referenced by drawInwardTicks(), minorTickLength(), Plot(), and setTickLength().