scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Graph.h
Go to the documentation of this file.
1 
11 
29 #ifndef GRAPH_H
30 #define GRAPH_H
31 
32 #include <QList>
33 #include <QPointer>
34 #include <QPrinter>
35 #include <QVector>
36 #include <QEvent>
37 #include <QMap>
38 
39 #include <qwt_plot.h>
40 #include <qwt_plot_marker.h>
41 #include <qwt_plot_curve.h>
42 
43 #include "Plot.h"
44 #include "Table.h"
45 #include "AxesDialog.h"
46 #include "PlotToolInterface.h"
47 #include "core/column/Column.h"
48 
49 class QwtPlotCurve;
50 class QwtPlotZoomer;
51 class QwtPieCurve;
52 class Table;
53 class Legend;
54 class ArrowMarker;
55 class ImageMarker;
56 class TitlePicker;
57 class ScalePicker;
58 class CanvasPicker;
59 class ApplicationWindow;
60 class Matrix;
62 class RangeSelectorTool;
63 class DataCurve;
64 class PlotCurve;
65 class QwtErrorPlotCurve;
66 
68 typedef struct{
69  unsigned int lCol;
70  int lWidth;
71  int lStyle;
72  int lCapStyle=0;
73  int lJoinStyle=0x40;
74  QString lCustomDash;
75  int filledArea;
76  unsigned int aCol;
77  int aStyle;
78  unsigned int symCol;
79  bool symbolFill;
80  unsigned int fillCol;
81  int penWidth;
82  int sSize;
83  int sType;
85 } CurveLayout;
86 
118 class Graph: public QWidget
119 {
120  Q_OBJECT
121 
122  public:
123  Graph (QWidget* parent=0, QString name=QString(), Qt::WindowFlags f=0);
124  ~Graph();
125 
127  enum AxisType{Numeric = 0, Txt = 1, Day = 2, Month = 3, Time = 4, Date = 5, ColHeader = 6, DateTime = 22};
128  enum MarkerType{None = -1, Text = 0, Arrow = 1, Image = 2};
132 
134  QwtPlotZoomer *d_zoomer[2];
138 
139  static int mapToQwtAxis(int axis);
140 
142  QString parentPlotName();
143 
145  void setActiveTool(PlotToolInterface *tool);
148 
149  Grid *grid(){return d_plot->grid();};
150 
151  void exportPainter(QPaintDevice &paintDevice, bool keepAspect = false, QRect rect = QRect());
152  void exportPainter(QPainter &painter, bool keepAspect = false, QRect rect = QRect(), QSize size = QSize());
153 public slots:
155  Plot* plotWidget() const {return d_plot;};
156  void copy(ApplicationWindow *parent, Graph* g);
157 
159 
160  bool isPiePlot() const {return (c_type.count() == 1 && c_type[0] == Pie);};
162  void plotPie(Table* w,const QString& name, int startRow = 0, int endRow = -1);
164  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);
165  void removePie();
166  QString pieLegendText();
167  QString savePieCurveLayout();
169 
170  bool insertCurvesList(Table* w, const QStringList& names, int style, int lWidth, int sSize, int startRow = 0, int endRow = -1);
171  bool insertCurve(Table* w, const QString& name, int style, int startRow = 0, int endRow = -1);
172  bool insertCurve(Table* w, int xcol, const QString& name, int style);
173  bool insertCurve(Table* w, const QString& xColName, const QString& yColName, int style, int startRow = 0, int endRow = -1);
174  void insertPlotItem(QwtPlotItem *i, int type);
175 
177  void showCurve(int index, bool visible = true);
178  int visibleCurves();
179 
181  void removeCurve(int index);
185  void removeCurve(const QString& s);
189  void removeCurves(const QString& s);
190 
191  void updateCurvesData(Table* w, const QString& yColName);
192 
193  int curves() const {return n_curves;};
194  bool validCurvesDataSize() const;
195  double selectedXStartValue();
196  double selectedXEndValue();
197 
198  long curveKey(int curve){return c_keys[curve];}
199  int curveIndex(long key) const {return c_keys.indexOf(key);}
201  int curveIndex(QwtPlotCurve *c) const;
203  int curveIndex(const QString &title) const {return plotItemsList().indexOf(title);}
205  QwtPlotCurve* curve(int index) const;
207  QwtPlotCurve* curve(const QString &title) const {return curve(curveIndex(title));}
208 
210  QStringList analysableCurvesList();
212  QStringList curvesList();
214  QStringList plotItemsList() const;
216  QwtPlotItem* plotItem(int index);
218  int plotItemIndex(QwtPlotItem *it) const;
219 
220  void updateCurveNames(const QString& oldName, const QString& newName, bool updateTableName = true);
221 
222  int curveType(int curveIndex);
224  static bool canConvertTo(QwtPlotCurve *curve, CurveType type);
226 
230  void setCurveType(int curve, CurveType type, bool update=true);
231  void setCurveFullRange(int curveIndex);
232 
234 
235  void print();
236  void setScaleOnPrint(bool on){d_scale_on_print = on;};
237  void printCropmarks(bool on){d_print_cropmarks = on;};
238 
239  void copyImage();
241  void exportToFile(const QString& fileName);
242  void exportSVG(const QString& fname);
243  void exportVector(const QString& fileName, int res = 0, bool color = true,
244  bool keepAspect = true, QPrinter::PageSize pageSize = QPrinter::Custom,
245  QPrinter::Orientation orientation = QPrinter::Portrait);
246  void exportImage(const QString& fileName, int quality = -1);
248 
249  void replot(){d_plot->replot();};
250  void updatePlot();
251 
253 
254  bool addErrorBars(const QString& xColName, const QString& yColName, Table *errTable,
255  const QString& errColName, int type = 1, int width = 1, int cap = 8, const QColor& color = QColor(Qt::black),
256  bool through = true, bool minus = true, bool plus = true);
257 
258  bool addErrorBars(const QString& yColName, Table *errTable, const QString& errColName,
259  int type = 1, int width = 1, int cap = 8, const QColor& color = QColor(Qt::black),
260  bool through = true, bool minus = true, bool plus = true);
261 
262  void updateErrorBars(QwtErrorPlotCurve *er, bool xErr,int width, int cap, const QColor& c, bool plus, bool minus, bool through);
263 
267  DataCurve* masterCurve(const QString& xColName, const QString& yColName);
269 
271 
272  void contextMenuEvent(QContextMenuEvent *);
273  void closeEvent(QCloseEvent *e);
274  bool focusNextPrevChild ( bool next );
276 
278  void setScale(int axis, double start, double end, double step = 0.0,
279  int majorTicks = 5, int minorTicks = 5, int type = 0, bool inverted = false);
280  double axisStep(int axis){return d_user_step[axis];};
281 
283 
284  CurveLayout initCurveLayout(int style, int curves = 0);
285  static CurveLayout initCurveLayout();
287  void updateCurveLayout(int index,const CurveLayout *cL);
289  void guessUniqueCurveLayout(int& colorIndex, int& symbolIndex);
291 
293 
294  void zoomed (const QwtDoubleRect &);
295  void zoom(bool on);
296  void zoomOut();
297  bool zoomOn();
299 
300  void setAutoScale();
301  void updateScale();
302 
304 
305  QString saveToString(bool saveAsTemplate = false);
306  QString saveScale();
307  QString saveScaleTitles();
308  QString saveFonts();
309  QString saveMarkers();
310  QString saveCurveLayout(int index);
311  QString saveAxesTitleColors();
312  QString saveAxesColors();
313  QString saveEnabledAxes();
314  QString saveCanvas();
315  QString saveTitle();
316  QString saveAxesTitleAlignement();
317  QString saveEnabledTickLabels();
318  QString saveTicksType();
319  QString saveCurves();
320  QString saveLabelsFormat();
321  QString saveLabelsRotation();
322  QString saveAxesLabelsType();
323  QString saveAxesBaseline();
324  QString saveAxesFormulas();
326 
328 
329  void drawText(bool on);
330  bool drawTextActive(){return drawTextOn;};
331  long insertTextMarker(Legend* mrk);
332 
334  long insertTextMarker(const QStringList& list, int fileVersion);
335  void updateTextMarker(const QString& text,int angle, int bkg,const QFont& fnt,
336  const QColor& textColor, const QColor& backgroundColor);
337 
342  void setTextMarkerDefaults(int f, const QFont &font, const QColor& textCol, const QColor& backgroundCol);
343 
345  void setCopiedMarkerEnds(const QPoint& start, const QPoint& end);
346  void setCopiedTextOptions(int bkg, const QString& text, const QFont& font,
347  const QColor& color, const QColor& bkgColor);
348  void setCopiedArrowOptions(int width, Qt::PenStyle style, const QColor& color,
349  bool start, bool end, int headLength, int headAngle, bool filledHead);
350  void setCopiedImageName(const QString& fn){auxMrkFileName=fn;};
351  QRect copiedMarkerRect(){return QRect(auxMrkStart, auxMrkEnd);};
352  QVector<int> textMarkerKeys(){return d_texts;};
353  Legend* textMarker(long id);
354 
355  void addTimeStamp();
356 
357  void removeLegend();
358  void removeLegendItem(int index);
359  void addLegendItem(const QString& colName);
360  void insertLegend(const QStringList& lst, int fileVersion);
361  Legend *legend();
362  Legend *newLegend();
363  Legend *newLegend(const QString& text);
364  bool hasLegend(){return legendMarkerID >= 0;};
365 
367  QString legendText();
369 
371 
372  ArrowMarker* arrow(long id);
373  void addArrow(ArrowMarker* mrk);
374 
376  void addArrow(QStringList list, int fileVersion);
377  QVector<int> lineMarkerKeys(){return d_lines;};
378 
380  void drawLine(bool on, bool arrow = false);
381  bool drawArrow(){return drawArrowOn;};
382  bool drawLineActive(){return drawLineOn;};
383 
390 
391  void setArrowDefaults(int lineWidth, const QColor& c, Qt::PenStyle style,
392  int headLength, int headAngle, bool fillHead);
393  bool arrowMarkerSelected();
395 
397 
398  ImageMarker* imageMarker(long id);
399  QVector<int> imageMarkerKeys(){return d_images;};
401  ImageMarker* addImage(const QString& fileName);
402 
403  void insertImageMarker(const QStringList& lst, int fileVersion);
404  bool imageMarkerSelected();
405  void updateImageMarker(int x, int y, int width, int height);
407 
409 
410  void removeMarker();
411  void cutMarker();
412  void copyMarker();
413  void pasteMarker();
416 
417  long selectedMarkerKey();
424  void setSelectedMarker(long mrk, bool add=false);
425  QwtPlotMarker* selectedMarkerPtr();
426  bool markerSelected();
428  void deselectMarker();
431 
433 
434  QList<int> axesType();
435 
436  QStringList scalesTitles();
437  void setXAxisTitle(const QString& text);
438  void setYAxisTitle(const QString& text);
439  void setRightAxisTitle(const QString& text);
440  void setTopAxisTitle(const QString& text);
441  void setAxisTitle(int axis, const QString& text);
442  QString axisTitle(int axis) { return d_plot->axisTitle(axis).text(); }
443 
444  QFont axisTitleFont(int axis);
445  void setXAxisTitleFont(const QFont &fnt);
446  void setYAxisTitleFont(const QFont &fnt);
447  void setRightAxisTitleFont(const QFont &fnt);
448  void setTopAxisTitleFont(const QFont &fnt);
449  void setAxisTitleFont(int axis,const QFont &fnt);
450 
451  void setAxisFont(int axis,const QFont &fnt);
452  QFont axisFont(int axis);
453  void initFonts(const QFont &scaleTitleFnt,const QFont &numbersFnt);
454 
455  QColor axisTitleColor(int axis);
456  void setXAxisTitleColor(const QColor& c);
457  void setYAxisTitleColor(const QColor& c);
458  void setRightAxisTitleColor(const QColor& c);
459  void setTopAxisTitleColor(const QColor& c);
460  void setAxesTitleColor(QStringList l);
461 
462  int axisTitleAlignment (int axis);
463  void setXAxisTitleAlignment(int align);
464  void setYAxisTitleAlignment(int align);
465  void setTopAxisTitleAlignment(int align);
466  void setRightAxisTitleAlignment(int align);
467  void setAxesTitlesAlignment(const QStringList& align);
468 
469  QColor axisColor(int axis);
470  QStringList axesColors();
471  void setAxesColors(const QStringList& colors);
472 
473  QColor axisNumbersColor(int axis);
474  QStringList axesNumColors();
475  void setAxesNumColors(const QStringList& colors);
476 
477  void showAxis(int axis, int type, const QString& formatInfo, Table *table, bool axisOn,
478  int majTicksType, int minTicksType, bool labelsOn, const QColor& c, int format,
479  int prec, int rotation, int baselineDist, const QString& formula, const QColor& labelsColor);
480 
481  void enableAxis(int axis, bool on = true);
482  QVector<bool> enabledAxes();
483  void enableAxes(QVector<bool> axesOn);
484  void enableAxes(const QStringList& list);
485 
486  int labelsRotation(int axis);
487  void setAxisLabelRotation(int axis, int rotation);
488 
489  QStringList enabledTickLabels();
490  void setEnabledTickLabels(const QStringList& list);
491 
492  void setAxesLinewidth(int width);
494  void loadAxesLinewidth(int width);
495 
496  void drawAxesBackbones(bool yes);
499  void loadAxesOptions(const QString& s);
500 
501  QList<int> axesBaseline();
502  void setAxesBaseline(const QList<int> &lst);
503  void setAxesBaseline(QStringList &lst);
504 
505  void setMajorTicksType(const QList<int>& lst);
506  void setMajorTicksType(const QStringList& lst);
507 
508  void setMinorTicksType(const QList<int>& lst);
509  void setMinorTicksType(const QStringList& lst);
510 
511  int minorTickLength();
512  int majorTickLength();
513  void setAxisTicksLength(int axis, int majTicksType, int minTicksType,
514  int minLength, int majLength);
515  void setTicksLength(int minLength, int majLength);
516  void changeTicksLength(int minLength, int majLength);
517 
518  void setLabelsNumericFormat(const QStringList& l);
519  void setLabelsNumericFormat(int axis, const QStringList& l);
520  void setLabelsNumericFormat(int axis, int format, int prec = 6, const QString& formula = QString());
521  void setLabelsDateTimeFormat(int axis, int type, const QString& formatInfo);
522  void setLabelsDayFormat(int axis, int format);
523  void setLabelsMonthFormat(int axis, int format);
524 
525  QString axisFormatInfo(int axis);
526  QStringList axesLabelsFormatInfo(){return axesFormatInfo;};
527 
528  void setLabelsTextFormat(int axis, const Column *column, int startRow, int endRow);
529  void setLabelsTextFormat(int axis, Table *table, const QString& columnName);
530  void setLabelsColHeaderFormat(int axis, Table *table);
531 
532  QStringList getAxesFormulas(){return axesFormulas;};
533  void setAxesFormulas(const QStringList& l){axesFormulas = l;};
534  void setAxisFormula(int pos, const QString &f){axesFormulas[pos] = f;};
536 
538 
539  void drawCanvasFrame(bool frameOn, int width);
540  void drawCanvasFrame(const QStringList& frame);
541  void drawCanvasFrame(bool frameOn, int width, const QColor& color);
542  QColor canvasFrameColor();
543  int canvasFrameWidth();
544  bool framed();
546 
548 
549  void setTitle(const QString& t);
550  void setTitleFont(const QFont &fnt);
551  void setTitleColor(const QColor &c);
552  void setTitleAlignment(int align);
553 
554  bool titleSelected();
555  void selectTitle();
556 
557  void removeTitle();
558  void initTitle( bool on, const QFont& fnt);
560 
562 
563  int selectedCurveID();
565  QString selectedCurveTitle();
567 
568  void disableTools();
569 
576  bool enableRangeSelectors(const QObject *status_target=NULL, const char *status_slot="");
577 
579  bool rangeSelectorsEnabled() const { return !d_range_selector.isNull(); }
580 
582 
583  void setMargin (int d);
584  void setFrame(int width = 1, const QColor& color = QColor(Qt::black));
585  void setBackgroundColor(const QColor& color);
586  void setCanvasBackground(const QColor& color);
588 
589  void addFitCurve(QwtPlotCurve *c);
590  void deleteFitCurves();
591  QList<QwtPlotCurve *> fitCurvesList(){return d_fit_curves;};
596  int range(int index, double *start, double *end);
597 
599  void setBarsGap(int curve, int gapPercent, int offset);
600 
602 
603  void showIntensityTable();
605 
607 
608  bool modifyFunctionCurve(ApplicationWindow * parent, int curve, int type, const QStringList &formulas, const QString &var,QList<double> &ranges, int points);
609  bool addFunctionCurve(ApplicationWindow *parent, int type, const QStringList &formulas, const QString& var,
610  QList<double> &ranges, int points, const QString& title = {});
612  bool insertFunctionCurve(ApplicationWindow * parent, const QStringList& func_spec, int points, int fileVersion);
614  QString generateFunctionName(const QString& name = tr("F"));
616 
618  void createTable(const QString& curveName);
619  void createTable(const QwtPlotCurve* curve);
620  void activateGraph();
621 
623 
624  void plotVectorCurve(Table* w, const QStringList& colList, int style, int startRow = 0, int endRow = -1);
625  void updateVectorsLayout(int curve, const QColor& color, int width, int arrowLength, int arrowAngle, bool filled, int position,
626  const QString& xEndColName = QString(), const QString& yEndColName = QString());
628 
630 
631  void openBoxDiagram(Table *w, const QStringList& l, int fileVersion);
632  void plotBoxDiagram(Table *w, const QStringList& names, int startRow = 0, int endRow = -1);
634 
635  bool plotHistogram(Table *w, QStringList names, int startRow=0, int endRow=-1);
636 
637  void setCurveSymbol(int index, const QwtSymbol& s);
638  void setCurvePen(int index, const QPen& p);
639  void setCurveBrush(int index, const QBrush& b);
640  void setCurveStyle(int index, int s);
641 
643 
646  void resizeEvent(QResizeEvent *e);
647  void hideEvent(QHideEvent *e);
648  void scaleFonts(double factor);
650 
651  void notifyChanges();
652 
653  void updateSecondaryAxis(int axis);
654  void enableAutoscaling(bool yes){m_autoscale = yes;};
655 
657  void setAutoscaleFonts(bool yes){autoScaleFonts = yes;};
658 
659  static int obsoleteSymbolStyle(int type);
660  static QString penStyleName(Qt::PenStyle style);
661  static Qt::PenStyle getPenStyle(const QString& s);
662  static Qt::PenStyle getPenStyle(int style);
663  static Qt::BrushStyle getBrushStyle(int style);
664  static void showPlotErrorMessage(QWidget *parent, const QStringList& emptyColumns);
665  static QPrinter::PageSize minPageSize(const QPrinter& printer, const QRect& r);
666 
667  void showTitleContextMenu();
668  void copyTitle();
669  void cutTitle();
670 
671  void removeAxisTitle();
672  void cutAxisTitle();
673  void copyAxisTitle();
674  void showAxisTitleMenu(int axis);
675  void showAxisContextMenu(int axis);
676  void hideSelectedAxis();
677  void showGrids();
678 
680  void showGrid();
682  void showGrid(int axis);
683 
684  void showAxisDialog();
685  void showScaleDialog();
686 
688  void plotSpectrogram(Matrix *m, CurveType type);
690  void restoreSpectrogram(ApplicationWindow *app, const QStringList& lst);
691 
692  bool antialiasing(){return d_antialiasing;};
694  void setAntialiasing(bool on = true, bool update = true);
695 
696  void deselect();
697  void print(QPainter *, const QRect &rect, const QwtPlotPrintFilter &pfilter = QwtPlotPrintFilter());
698 signals:
700  void closedGraph();
701  void drawTextOff();
702  void drawLineEnded(bool);
703  void cursorInfo(const QString&);
704  void showPlotDialog(int);
705  void createTable(const QString&,const QString&,QList<Column*>);
706 
712  void hiddenPlot(QWidget*);
713 
718 
719  void showAxisDialog(int);
720  void axisDblClicked(int);
725 
726  void createIntensityTable(const QString&);
728  void showFitResults(const QString&);
729 
730  private:
732  QList<QwtPlotCurve *>d_fit_curves;
736  QSize hidden_size;
739  QStringList axesFormulas;
741  QStringList axesFormatInfo;
742  QList <int> axisType;
744  QwtPlotMarker::LineStyle mrklStyle;
745 
747  QVector<double> d_user_step;
749  QVector<int> c_type;
751  QVector<int> c_keys;
753  QVector<int> d_lines;
755  QVector<int> d_images;
757  QVector<int> d_texts;
758 
763  Qt::PenStyle auxMrkStyle;
765 
766  int n_curves;
773 
776 
780  Qt::PenStyle defaultArrowLineStyle;
781 
783  QPointer<SelectionMoveResizer> d_markers_selector;
785  QPointer<RangeSelectorTool> d_range_selector;
788 };
789 #endif // GRAPH_H
PlotToolInterface
Definition: PlotToolInterface.h:60
Graph::insertFunctionCurve
bool insertFunctionCurve(ApplicationWindow *parent, const QStringList &func_spec, int points, int fileVersion)
Used when reading from a project file.
Definition: Graph.cpp:3954
Matrix
Matrix worksheet class.
Definition: Matrix.h:52
Graph::getBrushStyle
static Qt::BrushStyle getBrushStyle(int style)
Definition: Graph.cpp:4229
Graph::setCurveSymbol
void setCurveSymbol(int index, const QwtSymbol &s)
Definition: Graph.cpp:4876
Graph::showMarkerPopupMenu
void showMarkerPopupMenu()
Graph::addArrow
void addArrow(ArrowMarker *mrk)
Definition: Graph.cpp:2653
Graph::print
void print()
Definition: Graph.cpp:1429
Plot.h
Graph::widthLine
int widthLine
Definition: Graph.h:767
Graph::showFitResults
void showFitResults(const QString &)
Graph::saveMarkers
QString saveMarkers()
Definition: Graph.cpp:2708
Graph::setXAxisTitleFont
void setXAxisTitleFont(const QFont &fnt)
Definition: Graph.cpp:892
Graph::setAntialiasing
void setAntialiasing(bool on=true, bool update=true)
Enables/Disables antialiasing of plot items.
Definition: Graph.cpp:5239
Graph::plotItemIndex
int plotItemIndex(QwtPlotItem *it) const
get plot item by index
Definition: Graph.cpp:2811
Graph::cutTitle
void cutTitle()
Definition: Graph.cpp:4393
Graph::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *)
Definition: Graph.cpp:3698
Graph::createIntensityTable
void createIntensityTable(const QString &)
Graph::enableAxes
void enableAxes(QVector< bool > axesOn)
Definition: Graph.cpp:321
Graph::saveAxesColors
QString saveAxesColors()
Definition: Graph.cpp:970
Graph::ignoresResizeEvents
bool ignoresResizeEvents()
Definition: Graph.h:644
Graph::visibleCurves
int visibleCurves()
Definition: Graph.cpp:5393
Graph::insertTextMarker
long insertTextMarker(Legend *mrk)
Definition: Graph.cpp:2687
Graph::drawLine
void drawLine(bool on, bool arrow=false)
Draws a line/arrow depending on the value of "arrow".
Definition: Graph.cpp:3851
Graph::topAxisTitleDblClicked
void topAxisTitleDblClicked()
Graph::setRightAxisTitleFont
void setRightAxisTitleFont(const QFont &fnt)
Definition: Graph.cpp:901
Graph::showTitleContextMenu
void showTitleContextMenu()
Definition: Graph.cpp:4382
Graph::exportToFile
void exportToFile(const QString &fileName)
Provided for convenience in scripts.
Definition: Graph.cpp:1357
Graph::arrowLineDefaultStyle
Qt::PenStyle arrowLineDefaultStyle()
Definition: Graph.h:384
Graph::insertImageMarker
void insertImageMarker(const QStringList &lst, int fileVersion)
Definition: Graph.cpp:3822
Graph::drawLineActive
bool drawLineActive()
Definition: Graph.h:382
Graph::removeLegend
void removeLegend()
Definition: Graph.cpp:1758
Graph::zoom
void zoom(bool on)
Definition: Graph.cpp:3735
Graph::cutMarker
void cutMarker()
Definition: Graph.cpp:1595
Graph::arrowMarkerSelected
bool arrowMarkerSelected()
Definition: Graph.cpp:1601
Graph::setTitleFont
void setTitleFont(const QFont &fnt)
Definition: Graph.cpp:1073
Graph::setAxisTitle
void setAxisTitle(int axis, const QString &text)
Definition: Graph.cpp:1164
Graph::curveIndex
int curveIndex(const QString &title) const
map curve title to index
Definition: Graph.h:203
Graph::loadAxesOptions
void loadAxesOptions(const QString &s)
used when opening a project file
Definition: Graph.cpp:1993
Graph::setAxisFormula
void setAxisFormula(int pos, const QString &f)
Definition: Graph.h:534
Graph::deleteFitCurves
void deleteFitCurves()
Definition: Graph.cpp:5050
Graph::setYAxisTitleColor
void setYAxisTitleColor(const QColor &c)
Definition: Graph.cpp:2150
ArrowMarker
Draws lines and arrows on a QwtPlot.
Definition: ArrowMarker.h:44
Graph::curveKey
long curveKey(int curve)
Definition: Graph.h:198
Graph::exportImage
void exportImage(const QString &fileName, int quality=-1)
Definition: Graph.cpp:1382
Graph::auxArrowHeadLength
int auxArrowHeadLength
Definition: Graph.h:770
Graph::setActiveTool
void setActiveTool(PlotToolInterface *tool)
Change the active tool, deleting the old one if it exists.
Definition: Graph.cpp:4943
Graph::auxMrkWidth
int auxMrkWidth
Definition: Graph.h:769
Graph::openBoxDiagram
void openBoxDiagram(Table *w, const QStringList &l, int fileVersion)
Definition: Graph.cpp:4903
Graph::auxFilledArrowHead
bool auxFilledArrowHead
Definition: Graph.h:774
Graph::canvasFrameColor
QColor canvasFrameColor()
Definition: Graph.cpp:1916
Graph::deselectMarker
void deselectMarker()
Reset any selection states on markers.
Definition: Graph.cpp:203
Graph::addTimeStamp
void addTimeStamp()
Definition: Graph.cpp:2510
Graph::createTable
void createTable(const QString &, const QString &, QList< Column * >)
Graph::mapToQwtAxis
static int mapToQwtAxis(int axis)
Definition: Graph.cpp:5484
Graph::Function
@ Function
Definition: Graph.h:131
Graph::imageMarkerKeys
QVector< int > imageMarkerKeys()
Definition: Graph.h:399
Graph::selectedCurveIndex
int selectedCurveIndex()
Definition: Graph.h:564
Graph::insertPlotItem
void insertPlotItem(QwtPlotItem *i, int type)
Definition: Graph.cpp:3281
CurveLayout::fillCol
unsigned int fillCol
symbol fill color
Definition: Graph.h:80
Graph::loadAxesLinewidth
void loadAxesLinewidth(int width)
used when opening a project file
Definition: Graph.cpp:2033
Graph::showAxisDialog
void showAxisDialog(int)
Graph::hideSelectedAxis
void hideSelectedAxis()
Definition: Graph.cpp:4494
QwtErrorPlotCurve
Error bars curve.
Definition: QwtErrorPlotCurve.h:37
Graph::setMajorTicksType
void setMajorTicksType(const QList< int > &lst)
Definition: Graph.cpp:530
Column.h
Graph::minPageSize
static QPrinter::PageSize minPageSize(const QPrinter &printer, const QRect &r)
Definition: Graph.cpp:5406
Graph::setCurvePen
void setCurvePen(int index, const QPen &p)
Definition: Graph.cpp:4885
Graph::defaultArrowColor
QColor defaultArrowColor
Definition: Graph.h:777
Graph::viewImageDialog
void viewImageDialog()
Graph::exportSVG
void exportSVG(const QString &fname)
Definition: Graph.cpp:1487
Graph::d_images
QVector< int > d_images
Images on plot keys.
Definition: Graph.h:755
Graph::setYAxisTitleFont
void setYAxisTitleFont(const QFont &fnt)
Definition: Graph.cpp:883
Graph::setAxisTitleFont
void setAxisTitleFont(int axis, const QFont &fnt)
Definition: Graph.cpp:919
Graph::setXAxisTitle
void setXAxisTitle(const QString &text)
Definition: Graph.cpp:1089
Graph::Date
@ Date
Definition: Graph.h:127
Graph::defaultArrowHeadFill
bool defaultArrowHeadFill
Definition: Graph.h:779
Graph::saveTitle
QString saveTitle()
Definition: Graph.cpp:2217
Graph::cursorInfo
void cursorInfo(const QString &)
Graph::deselect
void deselect()
Definition: Graph.cpp:5511
Graph::defaultArrowLineStyle
Qt::PenStyle defaultArrowLineStyle
Definition: Graph.h:780
Graph::setLabelsMonthFormat
void setLabelsMonthFormat(int axis, int format)
Definition: Graph.cpp:740
CurveLayout::lWidth
int lWidth
line width
Definition: Graph.h:70
Graph::scalePicker
ScalePicker * scalePicker
Definition: Graph.h:136
Graph::setScaleOnPrint
void setScaleOnPrint(bool on)
Definition: Graph.h:236
Graph::axisFont
QFont axisFont(int axis)
Definition: Graph.cpp:288
Graph::axesLabelsFormatInfo
QStringList axesLabelsFormatInfo()
Definition: Graph.h:526
Graph::removeTitle
void removeTitle()
Definition: Graph.cpp:1738
Graph::axesFormulas
QStringList axesFormulas
Definition: Graph.h:739
Graph::setTopAxisTitleFont
void setTopAxisTitleFont(const QFont &fnt)
Definition: Graph.cpp:910
Graph::drawAxesBackbones
void drawAxesBackbones(bool yes)
Definition: Graph.cpp:1971
Graph::c_type
QVector< int > c_type
Curve types.
Definition: Graph.h:749
Graph::analysableCurvesList
QStringList analysableCurvesList()
Returns the names of all the curves suitable for data analysis, as a string list. The list excludes e...
Definition: Graph.cpp:1311
Graph::changeTicksLength
void changeTicksLength(int minLength, int majLength)
Definition: Graph.cpp:619
Column
Aspect that manages a column.
Definition: Column.h:59
Graph::auxMrkFileName
QString auxMrkFileName
Definition: Graph.h:764
Graph::arrow
ArrowMarker * arrow(long id)
Definition: Graph.cpp:2672
Graph::setRightAxisTitleAlignment
void setRightAxisTitleAlignment(int align)
Definition: Graph.cpp:1154
Graph::setTitleColor
void setTitleColor(const QColor &c)
Definition: Graph.cpp:1055
Graph::pasteMarker
void pasteMarker()
Definition: Graph.cpp:1634
Graph::setAxesColors
void setAxesColors(const QStringList &colors)
Definition: Graph.cpp:956
Graph::drawCanvasFrame
void drawCanvasFrame(bool frameOn, int width)
Definition: Graph.cpp:1963
Graph::auxMrkColor
QColor auxMrkColor
Definition: Graph.h:761
Graph::Pie
@ Pie
Definition: Graph.h:129
Graph::titlePicker
TitlePicker * titlePicker
Definition: Graph.h:135
Graph::axisNumbersColor
QColor axisNumbersColor(int axis)
Definition: Graph.cpp:1026
Graph::saveLabelsRotation
QString saveLabelsRotation()
Definition: Graph.cpp:509
Graph::removeCurves
void removeCurves(const QString &s)
Removes all curves defined by the title/plot association string s.
Definition: Graph.cpp:3561
Graph::setAxisFont
void setAxisFont(int axis, const QFont &fnt)
Definition: Graph.cpp:281
Graph::updateErrorBars
void updateErrorBars(QwtErrorPlotCurve *er, bool xErr, int width, int cap, const QColor &c, bool plus, bool minus, bool through)
Definition: Graph.cpp:3064
Graph::hidden_size
QSize hidden_size
Definition: Graph.h:736
Graph::defaultMarkerFrame
int defaultMarkerFrame
Definition: Graph.h:767
Graph::hiddenPlot
void hiddenPlot(QWidget *)
Graph::setTextMarkerDefaults
void setTextMarkerDefaults(int f, const QFont &font, const QColor &textCol, const QColor &backgroundCol)
Definition: Graph.cpp:4976
Graph::axesFormatInfo
QStringList axesFormatInfo
Stores columns used for axes with text labels or time/date format info.
Definition: Graph.h:741
Graph::setTopAxisTitleColor
void setTopAxisTitleColor(const QColor &c)
Definition: Graph.cpp:2174
Graph::ContourMap
@ ContourMap
Definition: Graph.h:131
Graph::d_antialiasing
bool d_antialiasing
Render hint for plot items.
Definition: Graph.h:734
Graph::defaultTextMarkerColor
QColor defaultTextMarkerColor
Definition: Graph.h:768
Graph::exportPainter
void exportPainter(QPaintDevice &paintDevice, bool keepAspect=false, QRect rect=QRect())
Definition: Graph.cpp:1502
Graph::notifyChanges
void notifyChanges()
Definition: Graph.cpp:192
Graph::setLabelsDateTimeFormat
void setLabelsDateTimeFormat(int axis, int type, const QString &formatInfo)
Definition: Graph.cpp:809
Graph::VectXYAM
@ VectXYAM
Definition: Graph.h:131
CurveLayout::connectType
int connectType
symbol connection type
Definition: Graph.h:84
Graph::setXAxisTitleColor
void setXAxisTitleColor(const QColor &c)
Definition: Graph.cpp:2138
CurveLayout::symCol
unsigned int symCol
symbol outline color
Definition: Graph.h:78
Graph::Spline
@ Spline
Definition: Graph.h:130
Graph::auxArrowHeadAngle
int auxArrowHeadAngle
Definition: Graph.h:770
Graph::setBarsGap
void setBarsGap(int curve, int gapPercent, int offset)
Used for VerticalBars, HorizontalBars and Histograms.
Definition: Graph.cpp:3530
Graph::canConvertTo
static bool canConvertTo(QwtPlotCurve *curve, CurveType type)
Test whether curve can be converted to type using setCurveType().
Definition: Graph.cpp:2925
Graph::d_active_tool
PlotToolInterface * d_active_tool
The currently active tool, or NULL for default (pointer).
Definition: Graph.h:787
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:51
Graph::Time
@ Time
Definition: Graph.h:127
Graph::axesType
QList< int > axesType()
Definition: Graph.cpp:378
Graph::defaultArrowLineWidth
int defaultArrowLineWidth
Definition: Graph.h:778
Graph::setAxesNumColors
void setAxesNumColors(const QStringList &colors)
Definition: Graph.cpp:942
Graph::auxMrkAngle
int auxMrkAngle
Definition: Graph.h:769
Graph::generateFunctionName
QString generateFunctionName(const QString &name=tr("F"))
Returns an unique function name.
Definition: Graph.cpp:3901
Graph::defaultTextMarkerFont
QFont defaultTextMarkerFont()
Definition: Graph.h:338
Graph::DateTime
@ DateTime
Definition: Graph.h:127
Graph::addFunctionCurve
bool addFunctionCurve(ApplicationWindow *parent, int type, const QStringList &formulas, const QString &var, QList< double > &ranges, int points, const QString &title={})
Definition: Graph.cpp:3922
Graph::antialiasing
bool antialiasing()
Definition: Graph.h:692
Graph::obsoleteSymbolStyle
static int obsoleteSymbolStyle(int type)
Definition: Graph.cpp:4347
Graph::viewTitleDialog
void viewTitleDialog()
Graph::copyMarker
void copyMarker()
Definition: Graph.cpp:1611
Graph::d_texts
QVector< int > d_texts
Stores the identifiers (keys) of the text objects on the plot.
Definition: Graph.h:757
Graph::insertCurvesList
bool insertCurvesList(Table *w, const QStringList &names, int style, int lWidth, int sSize, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3293
Graph::selectedXStartValue
double selectedXStartValue()
Definition: Graph.cpp:2787
Graph::showScaleDialog
void showScaleDialog()
Definition: Graph.cpp:4489
Graph::axisStep
double axisStep(int axis)
Definition: Graph.h:280
Graph::canvasFrameWidth
int canvasFrameWidth()
Definition: Graph.cpp:1923
CurveLayout
Structure containing curve layout parameters.
Definition: Graph.h:68
Graph::ColHeader
@ ColHeader
Definition: Graph.h:127
Graph::axisTitleFont
QFont axisTitleFont(int axis)
Definition: Graph.cpp:928
Graph::setTicksLength
void setTicksLength(int minLength, int majLength)
Definition: Graph.cpp:610
Graph::Top
@ Top
Definition: Graph.h:126
Graph::updateMarkersBoundingRect
void updateMarkersBoundingRect()
Keep the markers on screen each time the scales are modified by adding/removing curves.
Definition: Graph.cpp:4111
Graph::drawTextOn
bool drawTextOn
Definition: Graph.h:772
Graph::plotPie
void plotPie(Table *w, const QString &name, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3155
Graph::plotVectorCurve
void plotVectorCurve(Table *w, const QStringList &colList, int style, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3422
Graph::Left
@ Left
Definition: Graph.h:126
Graph::updateImageMarker
void updateImageMarker(int x, int y, int width, int height)
Definition: Graph.cpp:1773
Graph::VectXYXY
@ VectXYXY
Definition: Graph.h:130
Graph::copyAxisTitle
void copyAxisTitle()
Definition: Graph.cpp:4419
Graph::selectedXEndValue
double selectedXEndValue()
Definition: Graph.cpp:2795
Graph::copiedMarkerType
MarkerType copiedMarkerType()
Definition: Graph.h:429
Graph::setCopiedMarkerEnds
void setCopiedMarkerEnds(const QPoint &start, const QPoint &end)
Definition: Graph.cpp:1685
Graph::curvesList
QStringList curvesList()
Returns the names of all the QwtPlotCurve items on the plot, as a string list.
Definition: Graph.cpp:1324
Graph::textMarkerDefaultFrame
int textMarkerDefaultFrame()
Definition: Graph.h:341
Graph::titleSelected
bool titleSelected()
Definition: Graph.cpp:1715
Graph::viewLineDialog
void viewLineDialog()
Graph::axesNumColors
QStringList axesNumColors()
Definition: Graph.cpp:1035
Graph::auxMrkStyle
Qt::PenStyle auxMrkStyle
Definition: Graph.h:763
Graph::setAxesLinewidth
void setAxesLinewidth(int width)
Definition: Graph.cpp:2012
Graph::removeAxisTitle
void removeAxisTitle()
Definition: Graph.cpp:4404
Graph::curve
QwtPlotCurve * curve(const QString &title) const
get curve by name
Definition: Graph.h:207
Graph::setAxisTicksLength
void setAxisTicksLength(int axis, int majTicksType, int minTicksType, int minLength, int majLength)
Definition: Graph.cpp:582
Graph::drawArrow
bool drawArrow()
Definition: Graph.h:381
Graph::showContextMenu
void showContextMenu()
Graph::plotSpectrogram
void plotSpectrogram(Matrix *m, CurveType type)
Add a spectrogram to the graph.
Definition: Graph.cpp:5059
CurveLayout::sSize
int sSize
symbol size
Definition: Graph.h:82
Graph::showAxisContextMenu
void showAxisContextMenu(int axis)
Definition: Graph.cpp:4457
Graph::d_fit_curves
QList< QwtPlotCurve * > d_fit_curves
List storing pointers to the curves resulting after a fit session, in case the user wants to delete t...
Definition: Graph.h:732
Graph::guessUniqueCurveLayout
void guessUniqueCurveLayout(int &colorIndex, int &symbolIndex)
Tries to guess not already used curve color and symbol style.
Definition: Graph.cpp:5002
Graph::resizeEvent
void resizeEvent(QResizeEvent *e)
Definition: Graph.cpp:4140
CanvasPicker
Handles parts of the user interaction for a Plot by registering itself as an event filter for its Qwt...
Definition: CanvasPicker.h:42
Graph::Right
@ Right
Definition: Graph.h:126
Graph::VerticalDropLines
@ VerticalDropLines
Definition: Graph.h:129
Graph::initCurveLayout
static CurveLayout initCurveLayout()
Definition: Graph.cpp:2851
Graph::arrowHeadDefaultLength
int arrowHeadDefaultLength()
Definition: Graph.h:387
Graph::defaultArrowHeadLength
int defaultArrowHeadLength
Definition: Graph.h:778
Graph::cutAxisTitle
void cutAxisTitle()
Definition: Graph.cpp:4413
Graph::showPlotErrorMessage
static void showPlotErrorMessage(QWidget *parent, const QStringList &emptyColumns)
Definition: Graph.cpp:4363
Graph::Arrow
@ Arrow
Definition: Graph.h:128
Graph::closeEvent
void closeEvent(QCloseEvent *e)
Definition: Graph.cpp:3718
Graph::arrowHeadDefaultAngle
int arrowHeadDefaultAngle()
Definition: Graph.h:388
Graph::plotBoxDiagram
void plotBoxDiagram(Table *w, const QStringList &names, int startRow=0, int endRow=-1)
Definition: Graph.cpp:4811
ScalePicker
Handles user interaction with a QwtScaleWidget.
Definition: ScalePicker.h:43
Graph::textMarkerKeys
QVector< int > textMarkerKeys()
Definition: Graph.h:352
Graph::saveAxesTitleAlignement
QString saveAxesTitleAlignement()
Definition: Graph.cpp:2256
Graph::parentPlotName
QString parentPlotName()
Returns the name of the parent MultiLayer object.
Definition: Graph.cpp:4996
Graph::auxMrkBkg
int auxMrkBkg
Definition: Graph.h:769
Graph::Area
@ Area
Definition: Graph.h:129
Graph::d_print_cropmarks
bool d_print_cropmarks
Definition: Graph.h:737
Graph::setCurveStyle
void setCurveStyle(int index, int s)
Definition: Graph.cpp:4848
Graph::auxMrkText
QString auxMrkText
Definition: Graph.h:764
Graph::viewTextDialog
void viewTextDialog()
Graph::setAxesFormulas
void setAxesFormulas(const QStringList &l)
Definition: Graph.h:533
Graph::textMarker
Legend * textMarker(long id)
Definition: Graph.cpp:2682
Graph::updateCurveLayout
void updateCurveLayout(int index, const CurveLayout *cL)
Set layout parameters of the curve given by index.
Definition: Graph.cpp:3015
Graph::newLegend
Legend * newLegend()
Definition: Graph.cpp:2485
Graph::insertCurve
bool insertCurve(Table *w, const QString &name, int style, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3367
Graph::m_autoscale
bool m_autoscale
Definition: Graph.h:775
Graph::n_curves
int n_curves
Definition: Graph.h:766
Graph::updateSecondaryAxis
void updateSecondaryAxis(int axis)
Definition: Graph.cpp:1204
Graph::setCurveType
void setCurveType(int curve, CurveType type, bool update=true)
Change the type of the given curve.
Definition: Graph.cpp:2949
Graph::replot
void replot()
Definition: Graph.h:249
Graph::plotWidget
Plot * plotWidget() const
Accessor method for d_plot.
Definition: Graph.h:155
Graph::HorizontalBars
@ HorizontalBars
Definition: Graph.h:130
Graph::setRightAxisTitleColor
void setRightAxisTitleColor(const QColor &c)
Definition: Graph.cpp:2162
Graph::removeLegendItem
void removeLegendItem(int index)
Definition: Graph.cpp:3641
Graph::updateScale
void updateScale()
Definition: Graph.cpp:3496
Graph::setLabelsTextFormat
void setLabelsTextFormat(int axis, const Column *column, int startRow, int endRow)
Definition: Graph.cpp:754
Graph::arrowHeadDefaultFill
bool arrowHeadDefaultFill()
Definition: Graph.h:385
Graph::enabledTickLabels
QStringList enabledTickLabels()
Definition: Graph.cpp:462
RangeSelectorTool
Definition: RangeSelectorTool.h:55
Graph::setAxesTitlesAlignment
void setAxesTitlesAlignment(const QStringList &align)
Definition: Graph.cpp:1115
Graph::setEnabledTickLabels
void setEnabledTickLabels(const QStringList &list)
Definition: Graph.cpp:517
Graph::updateCurveNames
void updateCurveNames(const QString &oldName, const QString &newName, bool updateTableName=true)
Definition: Graph.cpp:5305
Graph::getAxesFormulas
QStringList getAxesFormulas()
Definition: Graph.h:532
Graph::selectedCurveTitle
QString selectedCurveTitle()
Definition: Graph.cpp:1535
Graph::showGrid
void showGrid()
Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales.
Definition: Graph.cpp:4512
Graph::majorTickLength
int majorTickLength()
Definition: Graph.cpp:577
Graph::yAxisTitleDblClicked
void yAxisTitleDblClicked()
Graph::imageMarkerSelected
bool imageMarkerSelected()
Definition: Graph.cpp:1606
Graph::fitCurvesList
QList< QwtPlotCurve * > fitCurvesList()
Definition: Graph.h:591
CurveLayout::aStyle
int aStyle
area filling style
Definition: Graph.h:77
Graph::drawTextActive
bool drawTextActive()
Definition: Graph.h:330
Graph::plotHistogram
bool plotHistogram(Table *w, QStringList names, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3250
Graph::setTitleAlignment
void setTitleAlignment(int align)
Definition: Graph.cpp:1064
Graph::showGrids
void showGrids()
Definition: Graph.cpp:4507
Graph::addFitCurve
void addFitCurve(QwtPlotCurve *c)
Definition: Graph.cpp:5044
Graph::dataRangeChanged
void dataRangeChanged()
Graph::d_scale_on_print
bool d_scale_on_print
Definition: Graph.h:737
Graph::saveAxesFormulas
QString saveAxesFormulas()
Definition: Graph.cpp:2096
Graph::removeMarker
void removeMarker()
Definition: Graph.cpp:1548
Graph::exportVector
void exportVector(const QString &fileName, int res=0, bool color=true, bool keepAspect=true, QPrinter::PageSize pageSize=QPrinter::Custom, QPrinter::Orientation orientation=QPrinter::Portrait)
Definition: Graph.cpp:1389
Graph::curves
int curves() const
Definition: Graph.h:193
Graph::Day
@ Day
Definition: Graph.h:127
Graph::scaleFonts
void scaleFonts(double factor)
Definition: Graph.cpp:4161
Graph::autoscaleFonts
bool autoscaleFonts()
Definition: Graph.h:656
Graph::enableAxis
void enableAxis(int axis, bool on=true)
Definition: Graph.cpp:293
Graph::cp
CanvasPicker * cp
Definition: Graph.h:137
Graph::showAxisTitleMenu
void showAxisTitleMenu(int axis)
Definition: Graph.cpp:4426
Graph::setTopAxisTitleAlignment
void setTopAxisTitleAlignment(int align)
Definition: Graph.cpp:1145
Graph::Scatter
@ Scatter
Definition: Graph.h:129
Graph::removeCurve
void removeCurve(int index)
Removes a curve defined by its index.
Definition: Graph.cpp:3592
Graph::setCurveFullRange
void setCurveFullRange(int curveIndex)
Definition: Graph.cpp:5334
Graph::setMargin
void setMargin(int d)
Definition: Graph.cpp:4192
Graph::HorizontalSteps
@ HorizontalSteps
Definition: Graph.h:130
Graph::saveEnabledAxes
QString saveEnabledAxes()
Definition: Graph.cpp:1901
CurveLayout::sType
int sType
symbol type (shape)
Definition: Graph.h:83
Graph::saveEnabledTickLabels
QString saveEnabledTickLabels()
Definition: Graph.cpp:473
Graph::AxisType
AxisType
Definition: Graph.h:127
CurveLayout::lCol
unsigned int lCol
line color
Definition: Graph.h:69
Graph::getPenStyle
static Qt::PenStyle getPenStyle(const QString &s)
Definition: Graph.cpp:4329
Graph::defaultArrowHeadAngle
int defaultArrowHeadAngle
Definition: Graph.h:778
Graph::plotItemsList
QStringList plotItemsList() const
Returns the names of all plot items, including spectrograms, as a string list.
Definition: Graph.cpp:1337
Graph::defaultMarkerFont
QFont defaultMarkerFont
Definition: Graph.h:760
Graph::axesBaseline
QList< int > axesBaseline()
Definition: Graph.cpp:343
Graph::drawTextOff
void drawTextOff()
Graph::setXAxisTitleAlignment
void setXAxisTitleAlignment(int align)
Definition: Graph.cpp:1125
Graph::enableAutoscaling
void enableAutoscaling(bool yes)
Definition: Graph.h:654
Graph::axisTitleAlignment
int axisTitleAlignment(int axis)
Definition: Graph.cpp:1110
PlotCurve
Abstract 2D plot curve class.
Definition: PlotCurve.h:37
Plot::grid
Grid * grid()
Definition: Plot.h:54
ApplicationWindow
SciDAVis's main window.
Definition: ApplicationWindow.h:122
Graph::drawAxesBackbone
bool drawAxesBackbone
Definition: Graph.h:775
Graph::auxMrkFont
QFont auxMrkFont
Definition: Graph.h:760
CurveLayout::penWidth
int penWidth
symbol outline width
Definition: Graph.h:81
Graph::setAxesTitleColor
void setAxesTitleColor(QStringList l)
Definition: Graph.cpp:2186
Graph::Line
@ Line
Definition: Graph.h:129
Graph::selectedGraph
void selectedGraph(Graph *)
Graph::copiedMarkerRect
QRect copiedMarkerRect()
Definition: Graph.h:351
Graph::zoomOut
void zoomOut()
Definition: Graph.cpp:3758
Graph::axisTitleColor
QColor axisTitleColor(int axis)
Definition: Graph.cpp:933
Plot
Plot window class.
Definition: Plot.h:44
Graph::savePieCurveLayout
QString savePieCurveLayout()
Definition: Graph.cpp:2275
Graph::setYAxisTitleAlignment
void setYAxisTitleAlignment(int align)
Definition: Graph.cpp:1135
Graph::axesBackbones
bool axesBackbones()
Definition: Graph.h:497
Graph::modifyFunctionCurve
bool modifyFunctionCurve(ApplicationWindow *parent, int curve, int type, const QStringList &formulas, const QString &var, QList< double > &ranges, int points)
Definition: Graph.cpp:3859
Graph::selectedMarkerKey
long selectedMarkerKey()
Definition: Graph.cpp:210
Graph::axisTitle
QString axisTitle(int axis)
Definition: Graph.h:442
Graph::selectedAxis
int selectedAxis
Definition: Graph.h:738
Graph::copyTitle
void copyTitle()
Definition: Graph.cpp:4399
Graph::saveScale
QString saveScale()
Definition: Graph.cpp:2109
Graph::selectedMarkerPtr
QwtPlotMarker * selectedMarkerPtr()
Definition: Graph.cpp:215
Graph::markerSelected
bool markerSelected()
Definition: Graph.cpp:1543
Graph::restoreSpectrogram
void restoreSpectrogram(ApplicationWindow *app, const QStringList &lst)
Restores a spectrogram. Used when opening a project file.
Definition: Graph.cpp:5099
Graph::addImage
ImageMarker * addImage(ImageMarker *mrk)
Definition: Graph.cpp:3778
Graph::drawArrowOn
bool drawArrowOn
Definition: Graph.h:772
Graph::autoScaleFonts
bool autoScaleFonts
Definition: Graph.h:735
Graph::curveType
int curveType(int curveIndex)
Definition: Graph.cpp:4355
Graph::hasLegend
bool hasLegend()
Definition: Graph.h:364
Graph::ignoreResize
bool ignoreResize
Definition: Graph.h:774
Graph::axisFormatInfo
QString axisFormatInfo(int axis)
Definition: Graph.cpp:5297
Graph::setCopiedArrowOptions
void setCopiedArrowOptions(int width, Qt::PenStyle style, const QColor &color, bool start, bool end, int headLength, int headAngle, bool filledHead)
Definition: Graph.cpp:1701
Graph::updateCurvesData
void updateCurvesData(Table *w, const QString &yColName)
Definition: Graph.cpp:1845
Graph::modifiedGraph
void modifiedGraph()
Graph::Bottom
@ Bottom
Definition: Graph.h:126
Graph::grid
Grid * grid()
Definition: Graph.h:149
CurveLayout::symbolFill
bool symbolFill
flag: toggles symbol filling
Definition: Graph.h:79
Graph::scalesTitles
QStringList scalesTitles()
Definition: Graph.cpp:1172
Graph::arrowDefaultColor
QColor arrowDefaultColor()
Definition: Graph.h:389
Graph::setBackgroundColor
void setBackgroundColor(const QColor &color)
Definition: Graph.cpp:4213
Graph::setYAxisTitle
void setYAxisTitle(const QString &text)
Definition: Graph.cpp:1082
Graph::setTopAxisTitle
void setTopAxisTitle(const QString &text)
Definition: Graph.cpp:1103
Graph::d_lines
QVector< int > d_lines
Arrows/lines on plot keys.
Definition: Graph.h:753
Graph::legend
Legend * legend()
Definition: Graph.cpp:1796
Graph::setScale
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.
Definition: Graph.cpp:1269
Graph::copy
void copy(ApplicationWindow *parent, Graph *g)
Definition: Graph.cpp:4537
Graph::d_plot
Plot * d_plot
Definition: Graph.h:133
Graph::setAutoscaleFonts
void setAutoscaleFonts(bool yes)
Definition: Graph.h:657
Graph::setCurveBrush
void setCurveBrush(int index, const QBrush &b)
Definition: Graph.cpp:4894
PlotToolInterface.h
Graph::removePie
void removePie()
Definition: Graph.cpp:3543
Graph::labelsRotation
int labelsRotation(int axis)
Definition: Graph.cpp:877
Graph::setLabelsColHeaderFormat
void setLabelsColHeaderFormat(int axis, Table *table)
Definition: Graph.cpp:794
Graph::None
@ None
Definition: Graph.h:128
name
char * name()
Definition: exp_saturation.c:45
Graph::addErrorBars
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)
Definition: Graph.cpp:3107
Graph::hideEvent
void hideEvent(QHideEvent *e)
Definition: Graph.cpp:4134
Graph::mrkLinePen
QPen mrkLinePen
Definition: Graph.h:759
Graph::d_zoomer
QwtPlotZoomer * d_zoomer[2]
Definition: Graph.h:134
Graph::saveAxesTitleColors
QString saveAxesTitleColors()
Definition: Graph.cpp:2200
Graph::minorTickLength
int minorTickLength()
Definition: Graph.cpp:572
Graph::textMarkerDefaultBackground
QColor textMarkerDefaultBackground()
Definition: Graph.h:340
Graph::drawLineEnded
void drawLineEnded(bool)
Graph::saveScaleTitles
QString saveScaleTitles()
Definition: Graph.cpp:2226
Graph::Month
@ Month
Definition: Graph.h:127
Graph::enabledAxes
QVector< bool > enabledAxes()
Definition: Graph.cpp:335
Graph::pieLegendText
QString pieLegendText()
Definition: Graph.cpp:1826
Graph::mrklStyle
QwtPlotMarker::LineStyle mrklStyle
Definition: Graph.h:744
Graph::Graph
Graph(QWidget *parent=0, QString name=QString(), Qt::WindowFlags f=0)
Definition: Graph.cpp:96
Graph::saveToString
QString saveToString(bool saveAsTemplate=false)
Definition: Graph.cpp:4060
Graph::setLabelsDayFormat
void setLabelsDayFormat(int axis, int format)
Definition: Graph.cpp:726
Grid
2D Grid class
Definition: Grid.h:38
Graph::d_range_selector
QPointer< RangeSelectorTool > d_range_selector
The current curve selection, or NULL if none is active.
Definition: Graph.h:785
AxesDialog.h
Graph::validCurvesDataSize
bool validCurvesDataSize() const
Definition: Graph.cpp:5203
DataCurve
Definition: PlotCurve.h:52
Graph::Image
@ Image
Definition: Graph.h:128
Graph::Axis
Axis
Definition: Graph.h:126
Graph::ColorMap
@ ColorMap
Definition: Graph.h:131
Graph::showCurveContextMenu
void showCurveContextMenu(int)
Graph::auxMrkEnd
QPoint auxMrkEnd
Definition: Graph.h:762
Graph::setArrowDefaults
void setArrowDefaults(int lineWidth, const QColor &c, Qt::PenStyle style, int headLength, int headAngle, bool fillHead)
Definition: Graph.cpp:4985
Graph::updateVectorsLayout
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())
Definition: Graph.cpp:3452
CurveLayout::filledArea
int filledArea
flag: toggles area filling under curve
Definition: Graph.h:75
SelectionMoveResizer
Handler for modifying one or more QWidget and/or QwtPlotMarker with mouse or keyboard.
Definition: SelectionMoveResizer.h:90
Graph::setSelectedMarker
void setSelectedMarker(long mrk, bool add=false)
Set the selected marker.
Definition: Graph.cpp:220
Graph::showCurve
void showCurve(int index, bool visible=true)
Shows/Hides a curve defined by its index.
Definition: Graph.cpp:5384
Graph::zoomed
void zoomed(const QwtDoubleRect &)
Definition: Graph.cpp:3730
Graph::ErrorBars
@ ErrorBars
Definition: Graph.h:130
Graph::showPlotDialog
void showPlotDialog(int)
Graph::setCopiedTextOptions
void setCopiedTextOptions(int bkg, const QString &text, const QFont &font, const QColor &color, const QColor &bkgColor)
Definition: Graph.cpp:1691
Graph::setAutoScale
void setAutoScale()
Definition: Graph.cpp:1256
Graph::saveAxesLabelsType
QString saveAxesLabelsType()
Definition: Graph.cpp:429
Graph::saveLabelsFormat
QString saveLabelsFormat()
Definition: Graph.cpp:484
Graph::selectedMarkerType
MarkerType selectedMarkerType
Definition: Graph.h:743
Graph::Txt
@ Txt
Definition: Graph.h:127
Graph::defaultTextMarkerBackground
QColor defaultTextMarkerBackground
Definition: Graph.h:768
Graph::setCopiedMarkerType
void setCopiedMarkerType(Graph::MarkerType type)
Definition: Graph.h:344
Graph::saveCurves
QString saveCurves()
Definition: Graph.cpp:2421
Graph::setMinorTicksType
void setMinorTicksType(const QList< int > &lst)
Definition: Graph.cpp:557
Graph::showIntensityTable
void showIntensityTable()
Definition: Graph.cpp:4102
Graph::setCanvasBackground
void setCanvasBackground(const QColor &color)
Definition: Graph.cpp:4223
Graph::Text
@ Text
Definition: Graph.h:128
Graph::endArrowOn
bool endArrowOn
Definition: Graph.h:772
Graph::updateTextMarker
void updateTextMarker(const QString &text, int angle, int bkg, const QFont &fnt, const QColor &textColor, const QColor &backgroundColor)
Definition: Graph.cpp:1781
Graph::GrayMap
@ GrayMap
Definition: Graph.h:131
TitlePicker
Definition: TitlePicker.h:35
Graph::enableRangeSelectors
bool enableRangeSelectors(const QObject *status_target=NULL, const char *status_slot="")
Definition: Graph.cpp:4967
Graph::CurveType
CurveType
Definition: Graph.h:129
Graph::auxMrkBkgColor
QColor auxMrkBkgColor
Definition: Graph.h:761
Graph::activateGraph
void activateGraph()
Definition: Graph.cpp:197
Graph::showAxis
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)
Definition: Graph.cpp:642
Graph::initFonts
void initFonts(const QFont &scaleTitleFnt, const QFont &numbersFnt)
Definition: Graph.cpp:270
Graph::rightAxisTitleDblClicked
void rightAxisTitleDblClicked()
Graph
A 2D-plotting widget.
Definition: Graph.h:119
Graph::setFrame
void setFrame(int width=1, const QColor &color=QColor(Qt::black))
Definition: Graph.cpp:4201
CurveLayout::lCustomDash
QString lCustomDash
Definition: Graph.h:74
Graph::axisType
QList< int > axisType
Definition: Graph.h:742
Graph::framed
bool framed()
Definition: Graph.cpp:1911
Graph::saveTicksType
QString saveTicksType()
Definition: Graph.cpp:445
Graph::Histogram
@ Histogram
Definition: Graph.h:130
Graph::setAxisLabelRotation
void setAxisLabelRotation(int axis, int rotation)
Definition: Graph.cpp:854
Graph::startArrowOn
bool startArrowOn
Definition: Graph.h:772
Graph::rangeSelectorsEnabled
bool rangeSelectorsEnabled() const
Check wether range selectors are currently enabled.
Definition: Graph.h:579
Graph::Box
@ Box
Definition: Graph.h:131
ImageMarker
Draw images on a QwtPlot.
Definition: ImageMarker.h:65
Graph::isPiePlot
bool isPiePlot() const
Returns true if this Graph is a pie plot, false otherwise.
Definition: Graph.h:161
Graph::closedGraph
void closedGraph()
Graph::addLegendItem
void addLegendItem(const QString &colName)
Definition: Graph.cpp:3682
Graph::selectedCurveID
int selectedCurveID()
Definition: Graph.cpp:1527
Graph::d_markers_selector
QPointer< SelectionMoveResizer > d_markers_selector
The markers selected for move/resize operations or NULL if none are selected.
Definition: Graph.h:783
Graph::VerticalSteps
@ VerticalSteps
Definition: Graph.h:131
Graph::legendMarkerID
long legendMarkerID
Definition: Graph.h:771
CurveLayout::aCol
unsigned int aCol
curve area color
Definition: Graph.h:76
Graph::focusNextPrevChild
bool focusNextPrevChild(bool next)
Definition: Graph.cpp:5266
Graph::d_user_step
QVector< double > d_user_step
Stores the step the user specified for the four scale. If step = 0.0, the step will be calculated aut...
Definition: Graph.h:747
Graph::zoomOn
bool zoomOn()
Definition: Graph.cpp:3725
CurveLayout::lStyle
int lStyle
line style
Definition: Graph.h:71
QwtPieCurve
Pie plot class.
Definition: QwtPieCurve.h:34
Graph::legendText
QString legendText()
Creates a new legend text using the curves titles.
Definition: Graph.cpp:1804
Graph::copyImage
void copyImage()
Definition: Graph.cpp:1350
Graph::disableTools
void disableTools()
Definition: Graph.cpp:4956
Graph::activeTool
PlotToolInterface * activeTool() const
Return the active tool, or NULL if none is active.
Definition: Graph.h:147
Graph::saveCurveLayout
QString saveCurveLayout(int index)
Definition: Graph.cpp:2328
Graph::axisDblClicked
void axisDblClicked(int)
Graph::updatePlot
void updatePlot()
Definition: Graph.cpp:3474
Graph::imageMarker
ImageMarker * imageMarker(long id)
Definition: Graph.cpp:2677
Graph::xAxisTitleDblClicked
void xAxisTitleDblClicked()
Graph::c_keys
QVector< int > c_keys
Curves on plot keys.
Definition: Graph.h:751
Graph::createTable
void createTable(const QString &curveName)
Provided for convenience in scripts.
Definition: Graph.cpp:4028
Graph::selectedMarker
long selectedMarker
Definition: Graph.h:771
Graph::lineMarkerKeys
QVector< int > lineMarkerKeys()
Definition: Graph.h:377
Table.h
Graph::curve
QwtPlotCurve * curve(int index) const
get curve by index
Definition: Graph.cpp:2821
Graph::saveCanvas
QString saveCanvas()
Definition: Graph.cpp:2038
Graph::auxMrkStart
QPoint auxMrkStart
Definition: Graph.h:762
Graph::LineSymbols
@ LineSymbols
Definition: Graph.h:129
Graph::axisColor
QColor axisColor(int axis)
Definition: Graph.cpp:1017
Graph::axesColors
QStringList axesColors()
Definition: Graph.cpp:997
Graph::curveIndex
int curveIndex(long key) const
Definition: Graph.h:199
Graph::masterCurve
DataCurve * masterCurve(QwtErrorPlotCurve *er)
Returns a valid master curve for the error bars curve.
Definition: Graph.cpp:5345
Graph::drawText
void drawText(bool on)
Definition: Graph.cpp:3767
Graph::printCropmarks
void printCropmarks(bool on)
Definition: Graph.h:237
Graph::penStyleName
static QString penStyleName(Qt::PenStyle style)
Definition: Graph.cpp:4282
Graph::initTitle
void initTitle(bool on, const QFont &fnt)
Definition: Graph.cpp:1747
Graph::setRightAxisTitle
void setRightAxisTitle(const QString &text)
Definition: Graph.cpp:1096
Graph::setCopiedImageName
void setCopiedImageName(const QString &fn)
Definition: Graph.h:350
Graph::saveAxesBaseline
QString saveAxesBaseline()
Definition: Graph.cpp:495
Graph::textMarkerDefaultColor
QColor textMarkerDefaultColor()
Definition: Graph.h:339
Graph::MarkerType
MarkerType
Definition: Graph.h:128
Graph::setAxesBaseline
void setAxesBaseline(const QList< int > &lst)
Definition: Graph.cpp:357
Graph::drawLineOn
bool drawLineOn
Definition: Graph.h:772
Graph::Numeric
@ Numeric
Definition: Graph.h:127
Graph::insertLegend
void insertLegend(const QStringList &lst, int fileVersion)
Definition: Graph.cpp:2538
Graph::setTitle
void setTitle(const QString &t)
Definition: Graph.cpp:1732
Graph::arrowDefaultWidth
int arrowDefaultWidth()
Definition: Graph.h:386
Graph::showLayerButtonContextMenu
void showLayerButtonContextMenu()
Graph::saveFonts
QString saveFonts()
Definition: Graph.cpp:2052
Graph::selectTitle
void selectTitle()
Definition: Graph.cpp:1720
Legend
A piece of text to be drawn on a Plot.
Definition: Legend.h:56
Graph::~Graph
~Graph()
Definition: Graph.cpp:5228
Graph::setIgnoreResizeEvents
void setIgnoreResizeEvents(bool ok)
Definition: Graph.h:645
Graph::VerticalBars
@ VerticalBars
Definition: Graph.h:129
Graph::showAxisDialog
void showAxisDialog()
Definition: Graph.cpp:4484
Graph::setLabelsNumericFormat
void setLabelsNumericFormat(const QStringList &l)
Definition: Graph.cpp:423
Graph::range
int range(int index, double *start, double *end)
Definition: Graph.cpp:2834
Graph::plotItem
QwtPlotItem * plotItem(int index)
get plotted item by index
Definition: Graph.cpp:2803