#include <Graph.h>
Graphs are managed by a MultiLayer, where they are sometimes referred to as "graphs" and sometimes as "layers". Other parts of the code also call them "plots", regardless of the fact that there's also a class Plot. Within the user interface, they are quite consistently called "layers".
Each graph owns a Plot called d_plot, which handles parts of the curve, axis and marker management (similarly to QwtPlot), as well as the pickers d_zoomer (a QwtPlotZoomer), titlePicker (a TitlePicker), scalePicker (a ScalePicker) and cp (a CanvasPicker), which handle various parts of the user interaction.
Graph contains support for various curve types (see CurveType), some of them relying on Qtiplot-specific QwtPlotCurve subclasses for parts of the functionality.
Note that some of Graph's methods are implemented in analysis.cpp.
What definitely should be split out are plot types like histograms and pie charts (TODO: which others?). We need a generic framework for this in any case so that new plot types can be implemented in plugins, and Graph could do with a little diet. Especially after merging in Plot and CanvasPicker. [ Framework needs to support plug-ins; assigned to knut ]
Add support for floating-point line widths of curves and axes (request 2300). [ assigned to thzs ]
Public Types | |
enum | AxisType { Numeric = 0, Txt = 1, Day = 2, Month = 3, Time = 4, Date = 5, ColHeader = 6 } |
enum | CurveType { Line, Scatter, LineSymbols, VerticalBars, Area, Pie, VerticalDropLines, Spline, HorizontalSteps, Histogram, HorizontalBars, VectXYXY, ErrorBars, Box, VectXYAM, VerticalSteps, ColorMap, GrayMap, ContourMap, Function } |
enum | MarkerType { None = -1, Text = 0, Arrow = 1, Image = 2 } |
Public Slots | |
void | activateGraph () |
void | addFitCurve (QwtPlotCurve *c) |
QStringList | analysableCurvesList () |
Returns the names of all the curves suitable for data analysis, as a string list. The list excludes error bars and spectrograms. | |
bool | antialiasing () |
bool | autoscaleFonts () |
double | axisStep (int axis) |
void | copy (Graph *g) |
void | copyAxisTitle () |
void | copyTitle () |
void | createTable (const QwtPlotCurve *curve) |
void | createTable (const QString &curveName) |
Provided for convenience in scripts. | |
QwtPlotCurve * | curve (const QString &title) |
get curve by name | |
QwtPlotCurve * | curve (int index) |
get curve by index | |
int | curveIndex (const QString &title) |
map curve title to index | |
int | curveIndex (QwtPlotCurve *c) const |
Map curve pointer to index. | |
int | curveIndex (long key) |
long | curveKey (int curve) |
int | curves () |
QStringList | curvesList () |
Returns the names of all the QwtPlotCurve items on the plot, as a string list. | |
int | curveType (int curveIndex) |
void | cutAxisTitle () |
void | cutTitle () |
void | deleteFitCurves () |
void | disableTools () |
void | enableAutoscaling (bool yes) |
bool | enableRangeSelectors (const QObject *status_target=NULL, const char *status_slot="") |
QList< QwtPlotCurve * > | fitCurvesList () |
static Qt::BrushStyle | getBrushStyle (int style) |
static Qt::PenStyle | getPenStyle (int style) |
static Qt::PenStyle | getPenStyle (const QString &s) |
GridOptions | gridOptions () |
void | hideSelectedAxis () |
bool | insertCurve (Table *w, const QString &xColName, const QString &yColName, int style, int startRow=0, int endRow=-1) |
bool | insertCurve (Table *w, int xcol, const QString &name, int style) |
bool | insertCurve (Table *w, const QString &name, int style, int startRow=0, int endRow=-1) |
bool | insertCurvesList (Table *w, const QStringList &names, int style, int lWidth, int sSize, int startRow=0, int endRow=-1) |
void | insertPlotItem (QwtPlotItem *i, int type) |
static QPrinter::PageSize | minPageSize (const QPrinter &printer, const QRect &r) |
void | notifyChanges () |
static int | obsoleteSymbolStyle (int type) |
static QString | penStyleName (Qt::PenStyle style) |
QwtPlotItem * | plotItem (int index) |
get plotted item by index | |
int | plotItemIndex (QwtPlotItem *it) const |
get plot item by index | |
QStringList | plotItemsList () |
Returns the names of all plot items, including spectrograms, as a string list. | |
void | plotSpectrogram (Matrix *m, CurveType type) |
Add a spectrogram to the graph. | |
Plot * | plotWidget () |
Accessor method for d_plot. | |
int | range (int index, double *start, double *end) |
void | removeAxisTitle () |
void | removeCurve (const QString &s) |
Removes a curve defined by its title string s. | |
void | removeCurve (int index) |
Removes a curve defined by its index. | |
void | removeCurves (const QString &s) |
Removes all curves defined by the title/plot association string s. | |
void | replot () |
void | restoreSpectrogram (ApplicationWindow *app, const QStringList &lst) |
Restores a spectrogram. Used when opening a project file. | |
double | selectedXEndValue () |
double | selectedXStartValue () |
void | setAntialiasing (bool on=true, bool update=true) |
Enables/Disables antialiasing of plot items. | |
void | setAutoScale () |
void | setAutoscaleFonts (bool yes) |
void | setBarsGap (int curve, int gapPercent, int offset) |
Used for VerticalBars, HorizontalBars and Histograms. | |
void | setCurveBrush (int index, const QBrush &b) |
void | setCurveFullRange (int curveIndex) |
void | setCurvePen (int index, const QPen &p) |
void | setCurveStyle (int index, int s) |
void | setCurveSymbol (int index, const QwtSymbol &s) |
void | setCurveType (int curve, int style) |
void | setGridOptions (const GridOptions &options) |
void | setScale (int axis, double start, double end, double step=0.0, int majorTicks=5, int minorTicks=5, int type=0, bool inverted=false) |
Set axis scale. | |
void | showAxisContextMenu (int axis) |
void | showAxisDialog () |
void | showAxisTitleMenu (int axis) |
void | showCurve (int index, bool visible=true) |
Shows/Hides a curve defined by its index. | |
void | showGrids () |
static void | showPlotErrorMessage (QWidget *parent, const QStringList &emptyColumns) |
void | showScaleDialog () |
void | showTitleContextMenu () |
void | updateCurveNames (const QString &oldName, const QString &newName, bool updateTableName=true) |
void | updateCurvesData (Table *w, const QString &yColName) |
void | updatePlot () |
void | updateScale () |
void | updateSecondaryAxis (int axis) |
bool | validCurvesDataSize () |
int | visibleCurves () |
Error Bars | |
bool | addErrorBars (const QString &yColName, Table *errTable, const QString &errColName, int type=1, int width=1, int cap=8, const QColor &color=QColor(Qt::black), bool through=true, bool minus=true, bool plus=true) |
bool | addErrorBars (const QString &xColName, const QString &yColName, Table *errTable, const QString &errColName, int type=1, int width=1, int cap=8, const QColor &color=QColor(Qt::black), bool through=true, bool minus=true, bool plus=true) |
DataCurve * | masterCurve (const QString &xColName, const QString &yColName) |
Returns a valid master curve for a plot association. | |
DataCurve * | masterCurve (QwtErrorPlotCurve *er) |
Returns a valid master curve for the error bars curve. | |
void | updateErrorBars (QwtErrorPlotCurve *er, bool xErr, int width, int cap, const QColor &c, bool plus, bool minus, bool through) |
User-defined Functions | |
void | addFunctionCurve (int type, const QStringList &formulas, const QString &var, QList< double > &ranges, int points, const QString &title=QString::null) |
QString | generateFunctionName (const QString &name=tr("F")) |
Returns an unique function name. | |
void | insertFunctionCurve (const QString &formula, int points, int fileVersion) |
Used when reading from a project file. | |
void | modifyFunctionCurve (int curve, int type, const QStringList &formulas, const QString &var, QList< double > &ranges, int points) |
Text Markers | |
void | addLegendItem (const QString &colName) |
void | addTimeStamp () |
QRect | copiedMarkerRect () |
QFont | defaultTextMarkerFont () |
void | drawText (bool on) |
bool | drawTextActive () |
bool | hasLegend () |
void | insertLegend (const QStringList &lst, int fileVersion) |
long | insertTextMarker (const QStringList &list, int fileVersion) |
Used when opening a project file. | |
long | insertTextMarker (LegendMarker *mrk) |
LegendMarker * | legend () |
QString | legendText () |
Creates a new legend text using the curves titles. | |
LegendMarker * | newLegend (const QString &text) |
void | newLegend () |
void | removeLegend () |
void | removeLegendItem (int index) |
void | setCopiedArrowOptions (int width, Qt::PenStyle style, const QColor &color, bool start, bool end, int headLength, int headAngle, bool filledHead) |
void | setCopiedImageName (const QString &fn) |
void | setCopiedMarkerEnds (const QPoint &start, const QPoint &end) |
void | setCopiedMarkerType (Graph::MarkerType type) |
void | setCopiedTextOptions (int bkg, const QString &text, const QFont &font, const QColor &color, const QColor &bkgColor) |
void | setTextMarkerDefaults (int f, const QFont &font, const QColor &textCol, const QColor &backgroundCol) |
LegendMarker * | textMarker (long id) |
QColor | textMarkerDefaultBackground () |
QColor | textMarkerDefaultColor () |
int | textMarkerDefaultFrame () |
QVector< int > | textMarkerKeys () |
void | updateTextMarker (const QString &text, int angle, int bkg, const QFont &fnt, const QColor &textColor, const QColor &backgroundColor) |
Line Markers | |
QColor | arrowDefaultColor () |
int | arrowDefaultWidth () |
int | arrowHeadDefaultAngle () |
bool | arrowHeadDefaultFill () |
int | arrowHeadDefaultLength () |
Qt::PenStyle | arrowLineDefaultStyle () |
bool | drawArrow () |
void | drawLine (bool on, bool arrow=FALSE) |
Draws a line/arrow depending on the value of "arrow". | |
bool | drawLineActive () |
void | insertLineMarker (QStringList list, int fileVersion) |
Used when opening a project file. | |
void | insertLineMarker (LineMarker *mrk) |
LineMarker * | lineMarker (long id) |
QVector< int > | lineMarkerKeys () |
void | setArrowDefaults (int lineWidth, const QColor &c, Qt::PenStyle style, int headLength, int headAngle, bool fillHead) |
Image Markers | |
bool | arrowMarkerSelected () |
ImageMarker * | imageMarker (long id) |
QVector< int > | imageMarkerKeys () |
bool | imageMarkerSelected () |
void | insertImageMarker (const QStringList &lst, int fileVersion) |
void | insertImageMarker (const QPixmap &photo, const QString &fileName) |
void | insertImageMarker (ImageMarker *mrk) |
void | updateImageMarker (int x, int y, int width, int height) |
Axes | |
bool | axesBackbones () |
QList< int > | axesBaseline () |
QStringList | axesColors () |
QStringList | axesLabelsFormatInfo () |
QStringList | axesNumColors () |
QList< int > | axesType () |
QColor | axisColor (int axis) |
QFont | axisFont (int axis) |
QString | axisFormatInfo (int axis) |
QColor | axisNumbersColor (int axis) |
int | axisTitleAlignment (int axis) |
QColor | axisTitleColor (int axis) |
QFont | axisTitleFont (int axis) |
void | changeTicksLength (int minLength, int majLength) |
void | drawAxesBackbones (bool yes) |
void | enableAxes (const QStringList &list) |
void | enableAxes (QVector< bool > axesOn) |
QVector< bool > | enabledAxes () |
QStringList | enabledTickLabels () |
QStringList | getAxesFormulas () |
void | initFonts (const QFont &scaleTitleFnt, const QFont &numbersFnt) |
int | labelsRotation (int axis) |
void | loadAxesLinewidth (int width) |
used when opening a project file | |
void | loadAxesOptions (const QString &s) |
used when opening a project file | |
int | majorTickLength () |
int | minorTickLength () |
QStringList | scalesTitles () |
void | setAxesBaseline (QStringList &lst) |
void | setAxesBaseline (const QList< int > &lst) |
void | setAxesColors (const QStringList &colors) |
void | setAxesFormulas (const QStringList &l) |
void | setAxesLinewidth (int width) |
void | setAxesNumColors (const QStringList &colors) |
void | setAxesTitleColor (QStringList l) |
void | setAxesTitlesAlignment (const QStringList &align) |
void | setAxesType (const QList< int > tl) |
void | setAxisFont (int axis, const QFont &fnt) |
void | setAxisFormula (int pos, const QString &f) |
void | setAxisLabelRotation (int axis, int rotation) |
void | setAxisTicksLength (int axis, int majTicksType, int minTicksType, int minLength, int majLength) |
void | setAxisTitle (int axis, const QString &text) |
void | setAxisTitleFont (int axis, const QFont &fnt) |
void | setEnabledTickLabels (const QStringList &list) |
void | setLabelsDateTimeFormat (int axis, int type, const QString &formatInfo) |
void | setLabelsDayFormat (int axis, int format) |
void | setLabelsMonthFormat (int axis, int format) |
void | setLabelsNumericFormat (int axis, int format, int prec, const QString &formula) |
void | setLabelsNumericFormat (int axis, const QStringList &l) |
void | setLabelsNumericFormat (const QStringList &l) |
void | setLabelsTextFormat (int axis, int type, const QString &labelsColName, Table *table) |
void | setLabelsTextFormat (int axis, int type, const QString &name, const QStringList &lst) |
void | setMajorTicksType (const QStringList &lst) |
void | setMajorTicksType (const QList< int > &lst) |
void | setMinorTicksType (const QStringList &lst) |
void | setMinorTicksType (const QList< int > &lst) |
void | setRightAxisTitle (const QString &text) |
void | setRightAxisTitleAlignment (int align) |
void | setRightAxisTitleColor (const QColor &c) |
void | setRightAxisTitleFont (const QFont &fnt) |
void | setTicksLength (int minLength, int majLength) |
void | setTopAxisTitle (const QString &text) |
void | setTopAxisTitleAlignment (int align) |
void | setTopAxisTitleColor (const QColor &c) |
void | setTopAxisTitleFont (const QFont &fnt) |
void | setXAxisTitle (const QString &text) |
void | setXAxisTitleAlignment (int align) |
void | setXAxisTitleColor (const QColor &c) |
void | setXAxisTitleFont (const QFont &fnt) |
void | setYAxisTitle (const QString &text) |
void | setYAxisTitleAlignment (int align) |
void | setYAxisTitleColor (const QColor &c) |
void | setYAxisTitleFont (const QFont &fnt) |
void | showAxis (int axis, int type, const QString &formatInfo, Table *table, bool axisOn, int majTicksType, int minTicksType, bool labelsOn, const QColor &c, int format, int prec, int rotation, int baselineDist, const QString &formula, const QColor &labelsColor) |
Canvas Frame | |
QColor | canvasFrameColor () |
int | canvasFrameWidth () |
void | drawCanvasFrame (bool frameOn, int width, const QColor &color) |
void | drawCanvasFrame (const QStringList &frame) |
void | drawCanvasFrame (bool frameOn, int width) |
bool | framed () |
Border and Margin | |
void | changeMargin (int d) |
void | setBackgroundColor (const QColor &color) |
void | setBorder (int width=1, const QColor &color=QColor(Qt::black)) |
void | setCanvasBackground (const QColor &color) |
Event Handlers | |
void | closeEvent (QCloseEvent *e) |
void | contextMenuEvent (QContextMenuEvent *) |
bool | focusNextPrevChild (bool next) |
Common to all Markers | |
MarkerType | copiedMarkerType () |
void | copyMarker () |
void | cutMarker () |
void | deselectMarker () |
Reset any selection states on markers. | |
bool | markerSelected () |
void | pasteMarker () |
void | removeMarker () |
long | selectedMarkerKey () |
QwtPlotMarker * | selectedMarkerPtr () |
void | setSelectedMarker (long mrk, bool add=false) |
Set the selected marker. | |
void | updateMarkersBoundingRect () |
Keep the markers on screen each time the scales are modified by adding/removing curves. | |
Output: Copy/Export/Print | |
void | copyImage () |
void | exportImage (const QString &fileName, int quality=100, bool transparent=false) |
void | exportSVG (const QString &fname) |
void | exportToFile (const QString &fileName) |
Provided for convenience in scripts. | |
void | exportVector (const QString &fileName, int res=0, bool color=true) |
QPixmap | graphPixmap () |
void | print () |
void | printCropmarks (bool on) |
void | setScaleOnPrint (bool on) |
Curves Layout | |
void | guessUniqueCurveLayout (int &colorIndex, int &symbolIndex) |
Tries to guess not already used curve color and symbol style. | |
static CurveLayout | initCurveLayout () |
CurveLayout | initCurveLayout (int style, int curves=0) |
void | updateCurveLayout (int index, const CurveLayout *cL) |
Resizing | |
bool | ignoresResizeEvents () |
void | resizeEvent (QResizeEvent *e) |
void | scaleFonts (double factor) |
void | setIgnoreResizeEvents (bool ok) |
Plot Title | |
void | initTitle (bool on, const QFont &fnt) |
void | removeTitle () |
void | selectTitle () |
void | setTitle (const QString &t) |
void | setTitleAlignment (int align) |
void | setTitleColor (const QColor &c) |
void | setTitleFont (const QFont &fnt) |
bool | titleSelected () |
Pie Curves | |
bool | isPiePlot () |
Returns true if this Graph is a pie plot, false otherwise. | |
QString | pieLegendText () |
void | plotPie (Table *w, const QString &name, const QPen &pen, int brush, int size, int firstColor, int startRow=0, int endRow=-1, bool visible=true) |
Used when restoring a pie plot from a project file. | |
void | plotPie (Table *w, const QString &name, int startRow=0, int endRow=-1) |
void | removePie () |
QString | savePieCurveLayout () |
Box Plots | |
void | openBoxDiagram (Table *w, const QStringList &l, int fileVersion) |
void | plotBoxDiagram (Table *w, const QStringList &names, int startRow=0, int endRow=-1) |
Vector Curves | |
void | plotVectorCurve (Table *w, const QStringList &colList, int style, int startRow=0, int endRow=-1) |
void | updateVectorsLayout (int curve, const QColor &color, int width, int arrowLength, int arrowAngle, bool filled, int position, const QString &xEndColName=QString(), const QString &yEndColName=QString()) |
Saving to File | |
QString | saveAxesBaseline () |
QString | saveAxesColors () |
QString | saveAxesFormulas () |
QString | saveAxesLabelsType () |
QString | saveAxesTitleAlignement () |
QString | saveAxesTitleColors () |
QString | saveCanvas () |
QString | saveCurveLayout (int index) |
QString | saveCurves () |
QString | saveEnabledAxes () |
QString | saveEnabledTickLabels () |
QString | saveFonts () |
QString | saveGridOptions () |
QString | saveLabelsFormat () |
QString | saveLabelsRotation () |
QString | saveMarkers () |
QString | saveScale () |
QString | saveScaleTitles () |
QString | saveTicksType () |
QString | saveTitle () |
QString | saveToString (bool saveAsTemplate=false) |
Modifing insertCurve Data | |
int | selectedCurveID () |
int | selectedCurveIndex () |
QString | selectedCurveTitle () |
Image Analysis Tools | |
void | showIntensityTable () |
Zoom | |
void | zoom (bool on) |
void | zoomed (const QwtDoubleRect &) |
bool | zoomOn () |
void | zoomOut () |
Signals | |
void | axisDblClicked (int) |
void | closedGraph () |
void | createIntensityTable (const QString &) |
void | createTable (const QString &, int, int, const QString &) |
void | cursorInfo (const QString &) |
void | dataRangeChanged () |
void | drawLineEnded (bool) |
void | drawTextOff () |
void | hiddenPlot (QWidget *) |
void | modifiedGraph () |
void | rightAxisTitleDblClicked () |
void | selectedGraph (Graph *) |
void | showAxisDialog (int) |
void | showContextMenu () |
void | showCurveContextMenu (int) |
void | showFitResults (const QString &) |
void | showMarkerPopupMenu () |
void | showPlotDialog (int) |
void | topAxisTitleDblClicked () |
void | viewImageDialog () |
void | viewLineDialog () |
void | viewTextDialog () |
void | viewTitleDialog () |
void | xAxisTitleDblClicked () |
void | yAxisTitleDblClicked () |
Public Member Functions | |
PlotToolInterface * | activeTool () const |
Return the active tool, or NULL if none is active. | |
Graph (QWidget *parent=0, const char *name=0, Qt::WFlags f=0) | |
QString | parentPlotName () |
Returns the name of the parent MultiLayer object. | |
void | setActiveTool (PlotToolInterface *tool) |
Change the active tool, deleting the old one if it exists. | |
~Graph () | |
Public Attributes | |
CanvasPicker * | cp |
Plot * | d_plot |
QwtPlotZoomer * | d_zoomer [2] |
ScalePicker * | scalePicker |
TitlePicker * | titlePicker |
Private Attributes | |
bool | autoscale |
bool | autoScaleFonts |
int | auxArrowHeadAngle |
int | auxArrowHeadLength |
bool | auxFilledArrowHead |
int | auxMrkAngle |
int | auxMrkBkg |
QColor | auxMrkBkgColor |
QColor | auxMrkColor |
QPoint | auxMrkEnd |
QString | auxMrkFileName |
QFont | auxMrkFont |
QPoint | auxMrkStart |
Qt::PenStyle | auxMrkStyle |
QString | auxMrkText |
int | auxMrkWidth |
QStringList | axesFormatInfo |
Stores columns used for axes with text labels or time/date format info. | |
QStringList | axesFormulas |
QList< int > | axisType |
QVector< int > | c_keys |
Curves on plot keys. | |
QVector< int > | c_type |
Curve types. | |
PlotToolInterface * | d_active_tool |
The currently active tool, or NULL for default (pointer). | |
bool | d_antialiasing |
Render hint for plot items. | |
QList< QwtPlotCurve * > | d_fit_curves |
List storing pointers to the curves resulting after a fit session, in case the user wants to delete them later on. | |
QVector< int > | d_images |
Images on plot keys. | |
QVector< int > | d_lines |
Arrows/lines on plot keys. | |
QPointer < SelectionMoveResizer > | d_markers_selector |
The markers selected for move/resize operations or NULL if none are selected. | |
bool | d_print_cropmarks |
QPointer < RangeSelectorTool > | d_range_selector |
The current curve selection, or NULL if none is active. | |
bool | d_scale_on_print |
QVector< int > | d_texts |
Stores the identifiers (keys) of the text objects on the plot. | |
QVector< double > | d_user_step |
Stores the step the user specified for the four scale. If step = 0.0, the step will be calculated automatically by the Qwt scale engine. | |
QColor | defaultArrowColor |
int | defaultArrowHeadAngle |
bool | defaultArrowHeadFill |
int | defaultArrowHeadLength |
Qt::PenStyle | defaultArrowLineStyle |
int | defaultArrowLineWidth |
QFont | defaultMarkerFont |
int | defaultMarkerFrame |
QColor | defaultTextMarkerBackground |
QColor | defaultTextMarkerColor |
bool | drawArrowOn |
bool | drawAxesBackbone |
bool | drawLineOn |
bool | drawTextOn |
bool | endArrowOn |
GridOptions | grid |
Structure used to define the grid. | |
bool | ignoreResize |
long | legendMarkerID |
QPen | mrkLinePen |
QwtPlotMarker::LineStyle | mrklStyle |
long | mrkX |
long | mrkY |
int | n_curves |
int | selectedAxis |
long | selectedMarker |
MarkerType | selectedMarkerType |
bool | startArrowOn |
int | widthLine |
enum Graph::AxisType |
enum Graph::CurveType |
enum Graph::MarkerType |
Graph::Graph | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
Qt::WFlags | f = 0 | |||
) |
Graph::~Graph | ( | ) |
void Graph::activateGraph | ( | ) | [slot] |
PlotToolInterface* Graph::activeTool | ( | ) | const [inline] |
Return the active tool, or NULL if none is active.
bool Graph::addErrorBars | ( | const QString & | yColName, | |
Table * | errTable, | |||
const QString & | errColName, | |||
int | type = 1 , |
|||
int | width = 1 , |
|||
int | cap = 8 , |
|||
const QColor & | color = QColor(Qt::black) , |
|||
bool | through = true , |
|||
bool | minus = true , |
|||
bool | plus = true | |||
) | [slot] |
bool Graph::addErrorBars | ( | const QString & | xColName, | |
const QString & | yColName, | |||
Table * | errTable, | |||
const QString & | errColName, | |||
int | type = 1 , |
|||
int | width = 1 , |
|||
int | cap = 8 , |
|||
const QColor & | color = QColor(Qt::black) , |
|||
bool | through = true , |
|||
bool | minus = true , |
|||
bool | plus = true | |||
) | [slot] |
void Graph::addFitCurve | ( | QwtPlotCurve * | c | ) | [slot] |
void Graph::addFunctionCurve | ( | int | type, | |
const QStringList & | formulas, | |||
const QString & | var, | |||
QList< double > & | ranges, | |||
int | points, | |||
const QString & | title = QString::null | |||
) | [slot] |
void Graph::addLegendItem | ( | const QString & | colName | ) | [slot] |
void Graph::addTimeStamp | ( | ) | [slot] |
QStringList Graph::analysableCurvesList | ( | ) | [slot] |
Returns the names of all the curves suitable for data analysis, as a string list. The list excludes error bars and spectrograms.
bool Graph::antialiasing | ( | ) | [inline, slot] |
QColor Graph::arrowDefaultColor | ( | ) | [inline, slot] |
int Graph::arrowDefaultWidth | ( | ) | [inline, slot] |
int Graph::arrowHeadDefaultAngle | ( | ) | [inline, slot] |
bool Graph::arrowHeadDefaultFill | ( | ) | [inline, slot] |
int Graph::arrowHeadDefaultLength | ( | ) | [inline, slot] |
Qt::PenStyle Graph::arrowLineDefaultStyle | ( | ) | [inline, slot] |
bool Graph::arrowMarkerSelected | ( | ) | [slot] |
bool Graph::autoscaleFonts | ( | ) | [inline, slot] |
bool Graph::axesBackbones | ( | ) | [inline, slot] |
QList< int > Graph::axesBaseline | ( | ) | [slot] |
QStringList Graph::axesColors | ( | ) | [slot] |
QStringList Graph::axesLabelsFormatInfo | ( | ) | [inline, slot] |
QStringList Graph::axesNumColors | ( | ) | [slot] |
QList< int > Graph::axesType | ( | ) | [slot] |
QColor Graph::axisColor | ( | int | axis | ) | [slot] |
void Graph::axisDblClicked | ( | int | ) | [signal] |
QFont Graph::axisFont | ( | int | axis | ) | [slot] |
QString Graph::axisFormatInfo | ( | int | axis | ) | [slot] |
QColor Graph::axisNumbersColor | ( | int | axis | ) | [slot] |
double Graph::axisStep | ( | int | axis | ) | [inline, slot] |
int Graph::axisTitleAlignment | ( | int | axis | ) | [slot] |
QColor Graph::axisTitleColor | ( | int | axis | ) | [slot] |
QFont Graph::axisTitleFont | ( | int | axis | ) | [slot] |
QColor Graph::canvasFrameColor | ( | ) | [slot] |
int Graph::canvasFrameWidth | ( | ) | [slot] |
void Graph::changeMargin | ( | int | d | ) | [slot] |
void Graph::changeTicksLength | ( | int | minLength, | |
int | majLength | |||
) | [slot] |
void Graph::closedGraph | ( | ) | [signal] |
void Graph::closeEvent | ( | QCloseEvent * | e | ) | [slot] |
void Graph::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [slot] |
QRect Graph::copiedMarkerRect | ( | ) | [inline, slot] |
MarkerType Graph::copiedMarkerType | ( | ) | [inline, slot] |
void Graph::copy | ( | Graph * | g | ) | [slot] |
void Graph::copyAxisTitle | ( | ) | [slot] |
void Graph::copyImage | ( | ) | [slot] |
void Graph::copyMarker | ( | ) | [slot] |
void Graph::copyTitle | ( | ) | [slot] |
void Graph::createIntensityTable | ( | const QString & | ) | [signal] |
void Graph::createTable | ( | const QString & | , | |
int | , | |||
int | , | |||
const QString & | ||||
) | [signal] |
void Graph::createTable | ( | const QwtPlotCurve * | curve | ) | [slot] |
void Graph::createTable | ( | const QString & | curveName | ) | [slot] |
Provided for convenience in scripts.
void Graph::cursorInfo | ( | const QString & | ) | [signal] |
QwtPlotCurve* Graph::curve | ( | const QString & | title | ) | [inline, slot] |
get curve by name
QwtPlotCurve * Graph::curve | ( | int | index | ) | [slot] |
get curve by index
int Graph::curveIndex | ( | const QString & | title | ) | [inline, slot] |
map curve title to index
int Graph::curveIndex | ( | QwtPlotCurve * | c | ) | const [slot] |
Map curve pointer to index.
int Graph::curveIndex | ( | long | key | ) | [inline, slot] |
long Graph::curveKey | ( | int | curve | ) | [inline, slot] |
int Graph::curves | ( | ) | [inline, slot] |
QStringList Graph::curvesList | ( | ) | [slot] |
Returns the names of all the QwtPlotCurve items on the plot, as a string list.
int Graph::curveType | ( | int | curveIndex | ) | [slot] |
void Graph::cutAxisTitle | ( | ) | [slot] |
void Graph::cutMarker | ( | ) | [slot] |
void Graph::cutTitle | ( | ) | [slot] |
void Graph::dataRangeChanged | ( | ) | [signal] |
QFont Graph::defaultTextMarkerFont | ( | ) | [inline, slot] |
void Graph::deleteFitCurves | ( | ) | [slot] |
void Graph::deselectMarker | ( | ) | [slot] |
Reset any selection states on markers.
void Graph::disableTools | ( | ) | [slot] |
bool Graph::drawArrow | ( | ) | [inline, slot] |
void Graph::drawAxesBackbones | ( | bool | yes | ) | [slot] |
void Graph::drawCanvasFrame | ( | bool | frameOn, | |
int | width, | |||
const QColor & | color | |||
) | [slot] |
void Graph::drawCanvasFrame | ( | const QStringList & | frame | ) | [slot] |
void Graph::drawCanvasFrame | ( | bool | frameOn, | |
int | width | |||
) | [slot] |
void Graph::drawLine | ( | bool | on, | |
bool | arrow = FALSE | |||
) | [slot] |
Draws a line/arrow depending on the value of "arrow".
bool Graph::drawLineActive | ( | ) | [inline, slot] |
void Graph::drawLineEnded | ( | bool | ) | [signal] |
void Graph::drawText | ( | bool | on | ) | [slot] |
bool Graph::drawTextActive | ( | ) | [inline, slot] |
void Graph::drawTextOff | ( | ) | [signal] |
void Graph::enableAutoscaling | ( | bool | yes | ) | [inline, slot] |
void Graph::enableAxes | ( | const QStringList & | list | ) | [slot] |
void Graph::enableAxes | ( | QVector< bool > | axesOn | ) | [slot] |
QVector< bool > Graph::enabledAxes | ( | ) | [slot] |
QStringList Graph::enabledTickLabels | ( | ) | [slot] |
bool Graph::enableRangeSelectors | ( | const QObject * | status_target = NULL , |
|
const char * | status_slot = "" | |||
) | [slot] |
Enables the data range selector tool.
This one is a bit special, because other tools can depend upon an existing selection. Therefore, range selection (like zooming) has to be provided in addition to the generic tool interface.
void Graph::exportImage | ( | const QString & | fileName, | |
int | quality = 100 , |
|||
bool | transparent = false | |||
) | [slot] |
void Graph::exportSVG | ( | const QString & | fname | ) | [slot] |
void Graph::exportToFile | ( | const QString & | fileName | ) | [slot] |
Provided for convenience in scripts.
void Graph::exportVector | ( | const QString & | fileName, | |
int | res = 0 , |
|||
bool | color = true | |||
) | [slot] |
QList<QwtPlotCurve *> Graph::fitCurvesList | ( | ) | [inline, slot] |
bool Graph::focusNextPrevChild | ( | bool | next | ) | [slot] |
bool Graph::framed | ( | ) | [slot] |
QString Graph::generateFunctionName | ( | const QString & | name = tr("F") |
) | [slot] |
Returns an unique function name.
QStringList Graph::getAxesFormulas | ( | ) | [inline, slot] |
Qt::BrushStyle Graph::getBrushStyle | ( | int | style | ) | [static, slot] |
Qt::PenStyle Graph::getPenStyle | ( | int | style | ) | [static, slot] |
Qt::PenStyle Graph::getPenStyle | ( | const QString & | s | ) | [static, slot] |
QPixmap Graph::graphPixmap | ( | ) | [slot] |
GridOptions Graph::gridOptions | ( | ) | [inline, slot] |
void Graph::guessUniqueCurveLayout | ( | int & | colorIndex, | |
int & | symbolIndex | |||
) | [slot] |
Tries to guess not already used curve color and symbol style.
bool Graph::hasLegend | ( | ) | [inline, slot] |
void Graph::hiddenPlot | ( | QWidget * | ) | [signal] |
void Graph::hideSelectedAxis | ( | ) | [slot] |
bool Graph::ignoresResizeEvents | ( | ) | [inline, slot] |
ImageMarker * Graph::imageMarker | ( | long | id | ) | [slot] |
QVector<int> Graph::imageMarkerKeys | ( | ) | [inline, slot] |
bool Graph::imageMarkerSelected | ( | ) | [slot] |
CurveLayout Graph::initCurveLayout | ( | ) | [static, slot] |
CurveLayout Graph::initCurveLayout | ( | int | style, | |
int | curves = 0 | |||
) | [slot] |
void Graph::initFonts | ( | const QFont & | scaleTitleFnt, | |
const QFont & | numbersFnt | |||
) | [slot] |
void Graph::initTitle | ( | bool | on, | |
const QFont & | fnt | |||
) | [slot] |
bool Graph::insertCurve | ( | Table * | w, | |
const QString & | xColName, | |||
const QString & | yColName, | |||
int | style, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
bool Graph::insertCurve | ( | Table * | w, | |
int | xcol, | |||
const QString & | name, | |||
int | style | |||
) | [slot] |
bool Graph::insertCurve | ( | Table * | w, | |
const QString & | name, | |||
int | style, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
bool Graph::insertCurvesList | ( | Table * | w, | |
const QStringList & | names, | |||
int | style, | |||
int | lWidth, | |||
int | sSize, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
void Graph::insertFunctionCurve | ( | const QString & | formula, | |
int | points, | |||
int | fileVersion | |||
) | [slot] |
Used when reading from a project file.
void Graph::insertImageMarker | ( | const QStringList & | lst, | |
int | fileVersion | |||
) | [slot] |
void Graph::insertImageMarker | ( | const QPixmap & | photo, | |
const QString & | fileName | |||
) | [slot] |
void Graph::insertImageMarker | ( | ImageMarker * | mrk | ) | [slot] |
void Graph::insertLegend | ( | const QStringList & | lst, | |
int | fileVersion | |||
) | [slot] |
void Graph::insertLineMarker | ( | QStringList | list, | |
int | fileVersion | |||
) | [slot] |
Used when opening a project file.
void Graph::insertLineMarker | ( | LineMarker * | mrk | ) | [slot] |
void Graph::insertPlotItem | ( | QwtPlotItem * | i, | |
int | type | |||
) | [slot] |
long Graph::insertTextMarker | ( | const QStringList & | list, | |
int | fileVersion | |||
) | [slot] |
Used when opening a project file.
long Graph::insertTextMarker | ( | LegendMarker * | mrk | ) | [slot] |
bool Graph::isPiePlot | ( | ) | [inline, slot] |
Returns true if this Graph is a pie plot, false otherwise.
int Graph::labelsRotation | ( | int | axis | ) | [slot] |
LegendMarker * Graph::legend | ( | ) | [slot] |
QString Graph::legendText | ( | ) | [slot] |
Creates a new legend text using the curves titles.
LineMarker * Graph::lineMarker | ( | long | id | ) | [slot] |
QVector<int> Graph::lineMarkerKeys | ( | ) | [inline, slot] |
void Graph::loadAxesLinewidth | ( | int | width | ) | [slot] |
used when opening a project file
void Graph::loadAxesOptions | ( | const QString & | s | ) | [slot] |
used when opening a project file
int Graph::majorTickLength | ( | ) | [slot] |
bool Graph::markerSelected | ( | ) | [slot] |
DataCurve * Graph::masterCurve | ( | const QString & | xColName, | |
const QString & | yColName | |||
) | [slot] |
Returns a valid master curve for a plot association.
DataCurve * Graph::masterCurve | ( | QwtErrorPlotCurve * | er | ) | [slot] |
Returns a valid master curve for the error bars curve.
int Graph::minorTickLength | ( | ) | [slot] |
QPrinter::PageSize Graph::minPageSize | ( | const QPrinter & | printer, | |
const QRect & | r | |||
) | [static, slot] |
void Graph::modifiedGraph | ( | ) | [signal] |
void Graph::modifyFunctionCurve | ( | int | curve, | |
int | type, | |||
const QStringList & | formulas, | |||
const QString & | var, | |||
QList< double > & | ranges, | |||
int | points | |||
) | [slot] |
LegendMarker * Graph::newLegend | ( | const QString & | text | ) | [slot] |
void Graph::newLegend | ( | ) | [slot] |
void Graph::notifyChanges | ( | ) | [slot] |
int Graph::obsoleteSymbolStyle | ( | int | type | ) | [static, slot] |
void Graph::openBoxDiagram | ( | Table * | w, | |
const QStringList & | l, | |||
int | fileVersion | |||
) | [slot] |
QString Graph::parentPlotName | ( | ) |
Returns the name of the parent MultiLayer object.
void Graph::pasteMarker | ( | ) | [slot] |
QString Graph::penStyleName | ( | Qt::PenStyle | style | ) | [static, slot] |
QString Graph::pieLegendText | ( | ) | [slot] |
void Graph::plotBoxDiagram | ( | Table * | w, | |
const QStringList & | names, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
QwtPlotItem * Graph::plotItem | ( | int | index | ) | [slot] |
get plotted item by index
int Graph::plotItemIndex | ( | QwtPlotItem * | it | ) | const [slot] |
get plot item by index
QStringList Graph::plotItemsList | ( | ) | [slot] |
Returns the names of all plot items, including spectrograms, as a string list.
void Graph::plotPie | ( | Table * | w, | |
const QString & | name, | |||
const QPen & | pen, | |||
int | brush, | |||
int | size, | |||
int | firstColor, | |||
int | startRow = 0 , |
|||
int | endRow = -1 , |
|||
bool | visible = true | |||
) | [slot] |
Used when restoring a pie plot from a project file.
void Graph::plotPie | ( | Table * | w, | |
const QString & | name, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
void Graph::plotVectorCurve | ( | Table * | w, | |
const QStringList & | colList, | |||
int | style, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
void Graph::print | ( | ) | [slot] |
void Graph::printCropmarks | ( | bool | on | ) | [inline, slot] |
int Graph::range | ( | int | index, | |
double * | start, | |||
double * | end | |||
) | [slot] |
Set start and end to selected X range of curve index or, if there's no selection, to the curve's total range.
void Graph::removeAxisTitle | ( | ) | [slot] |
void Graph::removeCurve | ( | const QString & | s | ) | [slot] |
Removes a curve defined by its title string s.
void Graph::removeCurve | ( | int | index | ) | [slot] |
Removes a curve defined by its index.
void Graph::removeCurves | ( | const QString & | s | ) | [slot] |
Removes all curves defined by the title/plot association string s.
void Graph::removeLegend | ( | ) | [slot] |
void Graph::removeLegendItem | ( | int | index | ) | [slot] |
void Graph::removeMarker | ( | ) | [slot] |
void Graph::removePie | ( | ) | [slot] |
void Graph::removeTitle | ( | ) | [slot] |
void Graph::replot | ( | ) | [slot] |
void Graph::resizeEvent | ( | QResizeEvent * | e | ) | [slot] |
void Graph::restoreSpectrogram | ( | ApplicationWindow * | app, | |
const QStringList & | lst | |||
) | [slot] |
Restores a spectrogram. Used when opening a project file.
void Graph::rightAxisTitleDblClicked | ( | ) | [signal] |
QString Graph::saveAxesBaseline | ( | ) | [slot] |
QString Graph::saveAxesColors | ( | ) | [slot] |
QString Graph::saveAxesFormulas | ( | ) | [slot] |
QString Graph::saveAxesLabelsType | ( | ) | [slot] |
QString Graph::saveAxesTitleAlignement | ( | ) | [slot] |
QString Graph::saveAxesTitleColors | ( | ) | [slot] |
QString Graph::saveCanvas | ( | ) | [slot] |
QString Graph::saveCurveLayout | ( | int | index | ) | [slot] |
QString Graph::saveCurves | ( | ) | [slot] |
QString Graph::saveEnabledAxes | ( | ) | [slot] |
QString Graph::saveEnabledTickLabels | ( | ) | [slot] |
QString Graph::saveFonts | ( | ) | [slot] |
QString Graph::saveGridOptions | ( | ) | [slot] |
QString Graph::saveLabelsFormat | ( | ) | [slot] |
QString Graph::saveLabelsRotation | ( | ) | [slot] |
QString Graph::saveMarkers | ( | ) | [slot] |
QString Graph::savePieCurveLayout | ( | ) | [slot] |
QString Graph::saveScale | ( | ) | [slot] |
QString Graph::saveScaleTitles | ( | ) | [slot] |
QString Graph::saveTicksType | ( | ) | [slot] |
QString Graph::saveTitle | ( | ) | [slot] |
QString Graph::saveToString | ( | bool | saveAsTemplate = false |
) | [slot] |
void Graph::scaleFonts | ( | double | factor | ) | [slot] |
QStringList Graph::scalesTitles | ( | ) | [slot] |
int Graph::selectedCurveID | ( | ) | [slot] |
int Graph::selectedCurveIndex | ( | ) | [inline, slot] |
QString Graph::selectedCurveTitle | ( | ) | [slot] |
void Graph::selectedGraph | ( | Graph * | ) | [signal] |
long Graph::selectedMarkerKey | ( | ) | [slot] |
QwtPlotMarker * Graph::selectedMarkerPtr | ( | ) | [slot] |
double Graph::selectedXEndValue | ( | ) | [slot] |
double Graph::selectedXStartValue | ( | ) | [slot] |
void Graph::selectTitle | ( | ) | [slot] |
void Graph::setActiveTool | ( | PlotToolInterface * | tool | ) | [inline] |
Change the active tool, deleting the old one if it exists.
void Graph::setAntialiasing | ( | bool | on = true , |
|
bool | update = true | |||
) | [slot] |
Enables/Disables antialiasing of plot items.
void Graph::setArrowDefaults | ( | int | lineWidth, | |
const QColor & | c, | |||
Qt::PenStyle | style, | |||
int | headLength, | |||
int | headAngle, | |||
bool | fillHead | |||
) | [slot] |
void Graph::setAutoScale | ( | ) | [slot] |
void Graph::setAutoscaleFonts | ( | bool | yes | ) | [inline, slot] |
void Graph::setAxesBaseline | ( | QStringList & | lst | ) | [slot] |
void Graph::setAxesBaseline | ( | const QList< int > & | lst | ) | [slot] |
void Graph::setAxesColors | ( | const QStringList & | colors | ) | [slot] |
void Graph::setAxesFormulas | ( | const QStringList & | l | ) | [inline, slot] |
void Graph::setAxesLinewidth | ( | int | width | ) | [slot] |
void Graph::setAxesNumColors | ( | const QStringList & | colors | ) | [slot] |
void Graph::setAxesTitleColor | ( | QStringList | l | ) | [slot] |
void Graph::setAxesTitlesAlignment | ( | const QStringList & | align | ) | [slot] |
void Graph::setAxesType | ( | const QList< int > | tl | ) | [slot] |
void Graph::setAxisFont | ( | int | axis, | |
const QFont & | fnt | |||
) | [slot] |
void Graph::setAxisFormula | ( | int | pos, | |
const QString & | f | |||
) | [inline, slot] |
void Graph::setAxisLabelRotation | ( | int | axis, | |
int | rotation | |||
) | [slot] |
void Graph::setAxisTicksLength | ( | int | axis, | |
int | majTicksType, | |||
int | minTicksType, | |||
int | minLength, | |||
int | majLength | |||
) | [slot] |
void Graph::setAxisTitle | ( | int | axis, | |
const QString & | text | |||
) | [slot] |
void Graph::setAxisTitleFont | ( | int | axis, | |
const QFont & | fnt | |||
) | [slot] |
void Graph::setBackgroundColor | ( | const QColor & | color | ) | [slot] |
void Graph::setBarsGap | ( | int | curve, | |
int | gapPercent, | |||
int | offset | |||
) | [slot] |
Used for VerticalBars, HorizontalBars and Histograms.
void Graph::setBorder | ( | int | width = 1 , |
|
const QColor & | color = QColor(Qt::black) | |||
) | [slot] |
void Graph::setCanvasBackground | ( | const QColor & | color | ) | [slot] |
void Graph::setCopiedArrowOptions | ( | int | width, | |
Qt::PenStyle | style, | |||
const QColor & | color, | |||
bool | start, | |||
bool | end, | |||
int | headLength, | |||
int | headAngle, | |||
bool | filledHead | |||
) | [slot] |
void Graph::setCopiedImageName | ( | const QString & | fn | ) | [inline, slot] |
void Graph::setCopiedMarkerEnds | ( | const QPoint & | start, | |
const QPoint & | end | |||
) | [slot] |
void Graph::setCopiedMarkerType | ( | Graph::MarkerType | type | ) | [inline, slot] |
void Graph::setCopiedTextOptions | ( | int | bkg, | |
const QString & | text, | |||
const QFont & | font, | |||
const QColor & | color, | |||
const QColor & | bkgColor | |||
) | [slot] |
void Graph::setCurveBrush | ( | int | index, | |
const QBrush & | b | |||
) | [slot] |
void Graph::setCurveFullRange | ( | int | curveIndex | ) | [slot] |
void Graph::setCurvePen | ( | int | index, | |
const QPen & | p | |||
) | [slot] |
void Graph::setCurveStyle | ( | int | index, | |
int | s | |||
) | [slot] |
void Graph::setCurveSymbol | ( | int | index, | |
const QwtSymbol & | s | |||
) | [slot] |
void Graph::setCurveType | ( | int | curve, | |
int | style | |||
) | [slot] |
void Graph::setEnabledTickLabels | ( | const QStringList & | list | ) | [slot] |
void Graph::setGridOptions | ( | const GridOptions & | options | ) | [slot] |
void Graph::setIgnoreResizeEvents | ( | bool | ok | ) | [inline, slot] |
void Graph::setLabelsDateTimeFormat | ( | int | axis, | |
int | type, | |||
const QString & | formatInfo | |||
) | [slot] |
void Graph::setLabelsDayFormat | ( | int | axis, | |
int | format | |||
) | [slot] |
void Graph::setLabelsMonthFormat | ( | int | axis, | |
int | format | |||
) | [slot] |
void Graph::setLabelsNumericFormat | ( | int | axis, | |
int | format, | |||
int | prec, | |||
const QString & | formula | |||
) | [slot] |
void Graph::setLabelsNumericFormat | ( | int | axis, | |
const QStringList & | l | |||
) | [slot] |
void Graph::setLabelsNumericFormat | ( | const QStringList & | l | ) | [slot] |
void Graph::setLabelsTextFormat | ( | int | axis, | |
int | type, | |||
const QString & | labelsColName, | |||
Table * | table | |||
) | [slot] |
void Graph::setLabelsTextFormat | ( | int | axis, | |
int | type, | |||
const QString & | name, | |||
const QStringList & | lst | |||
) | [slot] |
void Graph::setMajorTicksType | ( | const QStringList & | lst | ) | [slot] |
void Graph::setMajorTicksType | ( | const QList< int > & | lst | ) | [slot] |
void Graph::setMinorTicksType | ( | const QStringList & | lst | ) | [slot] |
void Graph::setMinorTicksType | ( | const QList< int > & | lst | ) | [slot] |
void Graph::setRightAxisTitle | ( | const QString & | text | ) | [slot] |
void Graph::setRightAxisTitleAlignment | ( | int | align | ) | [slot] |
void Graph::setRightAxisTitleColor | ( | const QColor & | c | ) | [slot] |
void Graph::setRightAxisTitleFont | ( | const QFont & | fnt | ) | [slot] |
void Graph::setScale | ( | int | axis, | |
double | start, | |||
double | end, | |||
double | step = 0.0 , |
|||
int | majorTicks = 5 , |
|||
int | minorTicks = 5 , |
|||
int | type = 0 , |
|||
bool | inverted = false | |||
) | [slot] |
Set axis scale.
void Graph::setScaleOnPrint | ( | bool | on | ) | [inline, slot] |
void Graph::setSelectedMarker | ( | long | mrk, | |
bool | add = false | |||
) | [slot] |
Set the selected marker.
mrk | key of the marker to be selected. | |
add | whether the marker is to be added to an existing selection. If add is false (the default) or there is no existing selection, a new SelectionMoveResizer is created and stored in d_markers_selector. |
void Graph::setTextMarkerDefaults | ( | int | f, | |
const QFont & | font, | |||
const QColor & | textCol, | |||
const QColor & | backgroundCol | |||
) | [slot] |
void Graph::setTicksLength | ( | int | minLength, | |
int | majLength | |||
) | [slot] |
void Graph::setTitle | ( | const QString & | t | ) | [slot] |
void Graph::setTitleAlignment | ( | int | align | ) | [slot] |
void Graph::setTitleColor | ( | const QColor & | c | ) | [slot] |
void Graph::setTitleFont | ( | const QFont & | fnt | ) | [slot] |
void Graph::setTopAxisTitle | ( | const QString & | text | ) | [slot] |
void Graph::setTopAxisTitleAlignment | ( | int | align | ) | [slot] |
void Graph::setTopAxisTitleColor | ( | const QColor & | c | ) | [slot] |
void Graph::setTopAxisTitleFont | ( | const QFont & | fnt | ) | [slot] |
void Graph::setXAxisTitle | ( | const QString & | text | ) | [slot] |
void Graph::setXAxisTitleAlignment | ( | int | align | ) | [slot] |
void Graph::setXAxisTitleColor | ( | const QColor & | c | ) | [slot] |
void Graph::setXAxisTitleFont | ( | const QFont & | fnt | ) | [slot] |
void Graph::setYAxisTitle | ( | const QString & | text | ) | [slot] |
void Graph::setYAxisTitleAlignment | ( | int | align | ) | [slot] |
void Graph::setYAxisTitleColor | ( | const QColor & | c | ) | [slot] |
void Graph::setYAxisTitleFont | ( | const QFont & | fnt | ) | [slot] |
void Graph::showAxis | ( | int | axis, | |
int | type, | |||
const QString & | formatInfo, | |||
Table * | table, | |||
bool | axisOn, | |||
int | majTicksType, | |||
int | minTicksType, | |||
bool | labelsOn, | |||
const QColor & | c, | |||
int | format, | |||
int | prec, | |||
int | rotation, | |||
int | baselineDist, | |||
const QString & | formula, | |||
const QColor & | labelsColor | |||
) | [slot] |
void Graph::showAxisContextMenu | ( | int | axis | ) | [slot] |
void Graph::showAxisDialog | ( | int | ) | [signal] |
void Graph::showAxisDialog | ( | ) | [slot] |
void Graph::showAxisTitleMenu | ( | int | axis | ) | [slot] |
void Graph::showContextMenu | ( | ) | [signal] |
void Graph::showCurve | ( | int | index, | |
bool | visible = true | |||
) | [slot] |
Shows/Hides a curve defined by its index.
void Graph::showCurveContextMenu | ( | int | ) | [signal] |
void Graph::showFitResults | ( | const QString & | ) | [signal] |
void Graph::showGrids | ( | ) | [slot] |
void Graph::showIntensityTable | ( | ) | [slot] |
void Graph::showMarkerPopupMenu | ( | ) | [signal] |
void Graph::showPlotDialog | ( | int | ) | [signal] |
void Graph::showPlotErrorMessage | ( | QWidget * | parent, | |
const QStringList & | emptyColumns | |||
) | [static, slot] |
void Graph::showScaleDialog | ( | ) | [slot] |
void Graph::showTitleContextMenu | ( | ) | [slot] |
LegendMarker * Graph::textMarker | ( | long | id | ) | [slot] |
QColor Graph::textMarkerDefaultBackground | ( | ) | [inline, slot] |
QColor Graph::textMarkerDefaultColor | ( | ) | [inline, slot] |
int Graph::textMarkerDefaultFrame | ( | ) | [inline, slot] |
QVector<int> Graph::textMarkerKeys | ( | ) | [inline, slot] |
bool Graph::titleSelected | ( | ) | [slot] |
void Graph::topAxisTitleDblClicked | ( | ) | [signal] |
void Graph::updateCurveLayout | ( | int | index, | |
const CurveLayout * | cL | |||
) | [slot] |
void Graph::updateCurveNames | ( | const QString & | oldName, | |
const QString & | newName, | |||
bool | updateTableName = true | |||
) | [slot] |
void Graph::updateCurvesData | ( | Table * | w, | |
const QString & | yColName | |||
) | [slot] |
void Graph::updateErrorBars | ( | QwtErrorPlotCurve * | er, | |
bool | xErr, | |||
int | width, | |||
int | cap, | |||
const QColor & | c, | |||
bool | plus, | |||
bool | minus, | |||
bool | through | |||
) | [slot] |
void Graph::updateImageMarker | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) | [slot] |
void Graph::updateMarkersBoundingRect | ( | ) | [slot] |
Keep the markers on screen each time the scales are modified by adding/removing curves.
void Graph::updatePlot | ( | ) | [slot] |
void Graph::updateScale | ( | ) | [slot] |
void Graph::updateSecondaryAxis | ( | int | axis | ) | [slot] |
void Graph::updateTextMarker | ( | const QString & | text, | |
int | angle, | |||
int | bkg, | |||
const QFont & | fnt, | |||
const QColor & | textColor, | |||
const QColor & | backgroundColor | |||
) | [slot] |
void Graph::updateVectorsLayout | ( | int | curve, | |
const QColor & | color, | |||
int | width, | |||
int | arrowLength, | |||
int | arrowAngle, | |||
bool | filled, | |||
int | position, | |||
const QString & | xEndColName = QString() , |
|||
const QString & | yEndColName = QString() | |||
) | [slot] |
bool Graph::validCurvesDataSize | ( | ) | [slot] |
void Graph::viewImageDialog | ( | ) | [signal] |
void Graph::viewLineDialog | ( | ) | [signal] |
void Graph::viewTextDialog | ( | ) | [signal] |
void Graph::viewTitleDialog | ( | ) | [signal] |
int Graph::visibleCurves | ( | ) | [slot] |
void Graph::xAxisTitleDblClicked | ( | ) | [signal] |
void Graph::yAxisTitleDblClicked | ( | ) | [signal] |
void Graph::zoom | ( | bool | on | ) | [slot] |
void Graph::zoomed | ( | const QwtDoubleRect & | ) | [slot] |
bool Graph::zoomOn | ( | ) | [slot] |
void Graph::zoomOut | ( | ) | [slot] |
bool Graph::autoscale [private] |
bool Graph::autoScaleFonts [private] |
int Graph::auxArrowHeadAngle [private] |
int Graph::auxArrowHeadLength [private] |
bool Graph::auxFilledArrowHead [private] |
int Graph::auxMrkAngle [private] |
int Graph::auxMrkBkg [private] |
QColor Graph::auxMrkBkgColor [private] |
QColor Graph::auxMrkColor [private] |
QPoint Graph::auxMrkEnd [private] |
QString Graph::auxMrkFileName [private] |
QFont Graph::auxMrkFont [private] |
QPoint Graph::auxMrkStart [private] |
Qt::PenStyle Graph::auxMrkStyle [private] |
QString Graph::auxMrkText [private] |
int Graph::auxMrkWidth [private] |
QStringList Graph::axesFormatInfo [private] |
Stores columns used for axes with text labels or time/date format info.
QStringList Graph::axesFormulas [private] |
QList<int> Graph::axisType [private] |
QVector<int> Graph::c_keys [private] |
Curves on plot keys.
QVector<int> Graph::c_type [private] |
Curve types.
PlotToolInterface* Graph::d_active_tool [private] |
The currently active tool, or NULL for default (pointer).
bool Graph::d_antialiasing [private] |
Render hint for plot items.
QList<QwtPlotCurve *> Graph::d_fit_curves [private] |
List storing pointers to the curves resulting after a fit session, in case the user wants to delete them later on.
QVector<int> Graph::d_images [private] |
Images on plot keys.
QVector<int> Graph::d_lines [private] |
Arrows/lines on plot keys.
QPointer<SelectionMoveResizer> Graph::d_markers_selector [private] |
The markers selected for move/resize operations or NULL if none are selected.
bool Graph::d_print_cropmarks [private] |
QPointer<RangeSelectorTool> Graph::d_range_selector [private] |
The current curve selection, or NULL if none is active.
bool Graph::d_scale_on_print [private] |
QVector<int> Graph::d_texts [private] |
Stores the identifiers (keys) of the text objects on the plot.
QVector<double> Graph::d_user_step [private] |
Stores the step the user specified for the four scale. If step = 0.0, the step will be calculated automatically by the Qwt scale engine.
QwtPlotZoomer* Graph::d_zoomer[2] |
QColor Graph::defaultArrowColor [private] |
int Graph::defaultArrowHeadAngle [private] |
bool Graph::defaultArrowHeadFill [private] |
int Graph::defaultArrowHeadLength [private] |
Qt::PenStyle Graph::defaultArrowLineStyle [private] |
int Graph::defaultArrowLineWidth [private] |
QFont Graph::defaultMarkerFont [private] |
int Graph::defaultMarkerFrame [private] |
QColor Graph::defaultTextMarkerBackground [private] |
QColor Graph::defaultTextMarkerColor [private] |
bool Graph::drawArrowOn [private] |
bool Graph::drawAxesBackbone [private] |
bool Graph::drawLineOn [private] |
bool Graph::drawTextOn [private] |
bool Graph::endArrowOn [private] |
GridOptions Graph::grid [private] |
Structure used to define the grid.
bool Graph::ignoreResize [private] |
long Graph::legendMarkerID [private] |
QPen Graph::mrkLinePen [private] |
QwtPlotMarker::LineStyle Graph::mrklStyle [private] |
long Graph::mrkX [private] |
long Graph::mrkY [private] |
int Graph::n_curves [private] |
int Graph::selectedAxis [private] |
long Graph::selectedMarker [private] |
MarkerType Graph::selectedMarkerType [private] |
bool Graph::startArrowOn [private] |
int Graph::widthLine [private] |