Graph.h
Go to the documentation of this file.
/***************************************************************************
File : Graph.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2004-2008 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Graph widget
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef GRAPH_H
#define GRAPH_H
#include <QList>
#include <QPointer>
#include <QPrinter>
#include <QVector>
#include <QEvent>
#include <QMap>
#include <qwt_text.h>
#include <qwt_plot.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_curve.h>
#include <AxesDialog.h>
#include <PlotToolInterface.h>
#include <ScaleDraw.h>
#include <FrameWidget.h>
#include <float.h>
class QwtPlotPanner;
class QwtPlotMagnifier;
class QwtPlotCurve;
class QwtPlotZoomer;
class PieCurve;
class Table;
class ArrowMarker;
class ImageWidget;
class TitlePicker;
class ScalePicker;
class CanvasPicker;
class ApplicationWindow;
class Matrix;
class SelectionMoveResizer;
class RangeSelectorTool;
class ImageProfilesTool;
class DataCurve;
class PlotCurve;
class ErrorBarsCurve;
class MultiLayer;
class Spectrogram;
class FunctionCurve;
class VectorCurve;
class BoxCurve;
class QwtHistogram;
class Grid;
class TexWidget;
class LegendWidget;
typedef struct{
QColor lCol;
float lWidth;
int lStyle;
double filledArea;
QColor aCol;
int aStyle;
QColor symCol;
QColor fillCol;
float penWidth;
int sSize;
int sType;
int connectType;
} CurveLayout;
class Graph: public QwtPlot
{
Q_OBJECT
public:
Graph (int x = 0, int y = 0, int width = 500, int height = 400, QWidget* parent=0, Qt::WFlags f=0);
~Graph();
enum Axis{Left, Right, Bottom, Top};
enum Scale{Linear, Log10, Ln, Log2, Reciprocal, Probability, Logit};
enum Ticks{NoTicks = 0, Out = 1, InOut = 2, In = 3};
enum MarkerType{None = -1, Text = 0, Arrow = 1, Image = 2};
enum CurveType{Line, Scatter, LineSymbols, VerticalBars, Area, Pie, VerticalDropLines,
Spline, HorizontalSteps, Histogram, HorizontalBars, VectXYXY, ErrorBars,
Box, VectXYAM, VerticalSteps, ColorMap, GrayScale, Contour, Function, ImagePlot,
StackBar, StackColumn};
enum LegendDisplayMode{Auto, ColumnName, ColumnComment, TableName, TableLegend, DataSetName};
enum AxisTitlePolicy{Default, ColName, ColComment, NameAndComment};
MultiLayer *multiLayer() const;
void setActiveTool(PlotToolInterface *tool);
PlotToolInterface* activeTool() const { return d_active_tool; }
bool hasActiveTool();
QList <LegendWidget *> textsList();
LegendWidget *activeText();
void setActiveText(LegendWidget *l){d_active_enrichment = (FrameWidget *)l;};
void select(QWidget *l, bool add = false);
FrameWidget *activeEnrichment(){return d_active_enrichment;};
QList <FrameWidget *> enrichmentsList(){return d_enrichments;};
QList <FrameWidget *> increasingAreaEnrichmentsList();
bool hasSeletedItems();
void deselect();
void deselect(QWidget *);
void selectCanvas();
QPointer<SelectionMoveResizer> selectionMoveResizer(){return d_markers_selector;};
QwtPlotItem* selectedCurveLabels();
void restoreCurveLabels(int curveID, const QStringList& lst);
Grid *grid(){return (Grid *)d_grid;};
QList<QwtPlotItem *> curvesList(){return d_curves;};
void setCurvesList(QList<QwtPlotItem *> lst){d_curves = lst;};
QwtPlotItem* closestCurve(int xpos, int ypos, int &dist, int &point);
void insertMarker(QwtPlotMarker *m);
QList<int> getMajorTicksType();
void setMajorTicksType(int axis, int type);
QList<int> getMinorTicksType();
void setMinorTicksType(int axis, int type);
int minorTickLength() const;
int majorTickLength() const;
void setTickLength (int minLength, int majLength);
int axesLinewidth() const;
void setAxesLinewidth(int width);
void axisLabelFormat(int axis, char &f, int &prec) const;
int axisLabelFormat(int axis);
int axisLabelPrecision(int axis);
QColor frameColor();
const QColor & paletteBackgroundColor() const;
void print(QPainter *, const QRect &rect, const QwtPlotPrintFilter & = QwtPlotPrintFilter());
void updateLayout();
void setCanvasGeometry(const QRect &canvasRect);
void setCanvasGeometry(int x, int y, int w, int h){setCanvasGeometry(QRect(x, y, w, h));};
void setCanvasSize(const QSize &size);
void setCanvasSize(int w, int h){setCanvasSize(QSize(w, h));};
void updateCurveLabels();
TexWidget* addTexFormula(const QString& s, const QPixmap& pix);
FrameWidget* add(FrameWidget* fw, bool copy = true);
void remove(FrameWidget*);
QRect boundingRect();
void raiseEnrichements();
void addLegendItem();
bool isPrinting(){return d_is_printing;};
void enablePanningMagnifier(bool on = true, int mode = 0);
bool hasPanningMagnifierEnabled(){if (d_magnifier && d_panner) return true; return false;};
QwtPlotMagnifier* magnifyTool(){return d_magnifier;};
#ifdef TEX_OUTPUT
static QString escapeTeXSpecialCharacters(const QString &);
static QString texSuperscripts(const QString &);
#endif
void changeCurveIndex(int fromIndex, int toIndex);
void enableDouglasPeukerSpeedMode(double tolerance, int maxPoints = 3000);
int speedModeMaxPoints(){return d_speed_mode_points;};
double getDouglasPeukerTolerance(){return d_Douglas_Peuker_tolerance;};
AxisTitlePolicy axisTitlePolicy(){return d_axis_title_policy;};
void setAxisTitlePolicy(const AxisTitlePolicy& policy){d_axis_title_policy = policy;};
bool hasSynchronizedScaleDivisions(){return d_synchronize_scales;};
void setSynchronizedScaleDivisions(bool on){d_synchronize_scales = on;};
QRectF pageGeometry(){return d_page_rect;}
void setPageGeometry(const QRectF& r){d_page_rect = r;}
public slots:
void copy(Graph* g);
void copyCurves(Graph* g);
void copyEnrichments(Graph* g);
void copyScaleWidget(Graph* g, int i);
void copyScaleDraw(Graph* g, int i);
bool isPiePlot();
PieCurve* plotPie(Table* w,const QString& name, int startRow = 0, int endRow = -1);
PieCurve* plotPie(Table* w, const QString& name, const QPen& pen, int brush, int size,
int firstColor, int startRow = 0, int endRow = -1, bool visible = true,
double d_start_azimuth = 270, double d_view_angle = 90, double d_thickness = 33,
double d_horizontal_offset = 0.0, double d_edge_dist = 25, bool d_counter_clockwise = false,
bool d_auto_labeling = true, bool d_values = false, bool d_percentages = true,
bool d_categories = false, bool d_fixed_labels_pos = true);
void removePie();
QString pieLegendText();
QString savePieCurveLayout();
bool addCurves(Table* w, const QStringList& names, int style = 0, double lWidth = 1, int sSize = 3, int startRow = 0, int endRow = -1);
DataCurve* insertCurve(Table* w, const QString& name, int style, int startRow = 0, int endRow = -1);
DataCurve* insertCurve(Table* w, int xcol, const QString& name, int style);
DataCurve* insertCurve(Table* w, const QString& xColName, const QString& yColName, int style, int startRow = 0, int endRow = -1);
DataCurve* insertCurve(Table* xt, const QString& xColName, Table* yt, const QString& yColName, int style, int startRow = 0, int endRow = -1);
void insertPlotItem(QwtPlotItem *i, int type);
void insertCurve(QwtPlotItem *c);
void showCurve(int index, bool visible = true);
int visibleCurves();
void removeCurve(QwtPlotItem *it);
void removeCurve(int index);
void removeCurve(const QString& s);
void removeCurves(const QString& s);
void updateCurvesData(Table* w, const QString& yColName);
void reloadCurvesData();
int curveCount(){return d_curves.size();};
bool validCurvesDataSize();
double selectedXStartValue();
double selectedXEndValue();
int curveIndex(QwtPlotItem *c){return d_curves.indexOf(c);};
int curveIndex(const QString &title){return plotItemsList().indexOf(title);}
DataCurve* dataCurve(int index);
FunctionCurve* functionCurve(int index);
PlotCurve* curve(int index);
PlotCurve* curve(const QString &title){return curve(curveIndex(title));};
QString curveTitle(int index);
QString curveRange(QwtPlotCurve *c);
QStringList analysableCurvesList();
QStringList curveNamesList();
QStringList plotItemsList();
QwtPlotItem* plotItem(int index);
void updateCurveNames(const QString& oldName, const QString& newName, bool updateTableName = true);
void setCurveStyle(int index, int s);
void setCurveFullRange(int curveIndex);
void setCurveLineColor(int curveIndex, int colorIndex);
void setCurveLineColor(int curveIndex, QColor qColor);
void setCurveLineStyle(int curveIndex, Qt::PenStyle style);
void setCurveLineWidth(int curveIndex, double width);
void setGrayScale();
void setIndexedColors();
void print();
void copyImage();
QPixmap graphPixmap(const QSize& size = QSize(), double scaleFontsFactor = 1.0, bool transparent = false);
void exportToFile(const QString& fileName);
void exportSVG(const QString& fname, const QSizeF& customSize = QSizeF(), int unit = FrameWidget::Pixel, double fontsFactor = 1.0);
void exportEMF(const QString& fname, const QSizeF& customSize = QSizeF(), int unit = FrameWidget::Pixel, double fontsFactor = 1.0);
void exportTeX(const QString& fname, bool color = true, bool escapeStrings = true, bool fontSizes = true,
const QSizeF& customSize = QSizeF(), int unit = FrameWidget::Pixel, double fontsFactor = 1.0);
#ifdef TEX_OUTPUT
bool isExportingTeX(){return d_is_exporting_tex;};
void setTeXExportingMode(bool on = true){d_is_exporting_tex = on;};
bool escapeTeXStrings(){return d_tex_escape_strings;};
void setEscapeTeXStringsMode(bool on = true){d_tex_escape_strings = on;};
#endif
void exportVector(const QString& fileName, int res = 0, bool color = true,
const QSizeF& customSize = QSizeF (), int unit = FrameWidget::Pixel, double fontsFactor = 1.0);
void exportVector(QPrinter *printer, int res = 0, bool color = true,
const QSizeF& customSize = QSizeF (), int unit = FrameWidget::Pixel, double fontsFactor = 1.0);
void exportImage(const QString& fileName, int quality = 100, bool transparent = false,
int dpi = 0, const QSizeF& customSize = QSizeF (),
int unit = FrameWidget::Pixel, double fontsFactor = 1.0, int compression = 0);
void draw(QPaintDevice *, const QSize& size, double fontsFactor = 1.0);
static QSize customPrintSize(const QSizeF& customSize, int unit, int dpi);
void updatePlot();
ErrorBarsCurve* addErrorBars(const QString& xColName, const QString& yColName, Table *errTable,
const QString& errColName, int type = 1, double width = 1, int cap = 8, const QColor& color = QColor(Qt::black),
bool through = true, bool minus = true, bool plus = true);
ErrorBarsCurve* addErrorBars(const QString& yColName, Table *errTable, const QString& errColName,
int type = 1, double width = 1, int cap = 8, const QColor& color = QColor(Qt::black),
bool through = true, bool minus = true, bool plus = true);
ErrorBarsCurve* addErrorBars(DataCurve *c, Table *errTable, const QString& errColName,
int type = 1, double width = 1, int cap = 8, const QColor& color = QColor(Qt::black),
bool through = true, bool minus = true, bool plus = true);
void updateErrorBars(ErrorBarsCurve *er, bool xErr, double width, int cap, const QColor& c, bool plus, bool minus, bool through);
void loadErrorBars(QList<ErrorBarsCurve *> errBars, QList<int> mcIndexes);
DataCurve* masterCurve(ErrorBarsCurve *er);
DataCurve* masterCurve(const QString& xColName, const QString& yColName);
bool mousePressed(QEvent *);
void contextMenuEvent(QContextMenuEvent *);
void closeEvent(QCloseEvent *e);
bool focusNextPrevChild ( bool next );
void invertScale(int axis);
void setScale(int axis, double start, double end, double step = 0.0,
int majorTicks = 5, int minorTicks = 5, int type = 0, bool inverted = false,
double left_break = -DBL_MAX, double right_break = DBL_MAX, int pos = 50,
double stepBeforeBreak = 0.0, double stepAfterBreak = 0.0, int minTicksBeforeBreak = 4,
int minTicksAfterBreak = 4, bool log10AfterBreak = false, int breakWidth = 4, bool breakDecoration = true);
double axisStep(int axis){return d_user_step[axis];};
void setAxisStep(int axis, double step){d_user_step[axis] = step;};
void setCanvasCoordinates(const QRectF&);
CurveLayout initCurveLayout(int style, int curves = 0, bool guessLayout = true);
static CurveLayout initCurveLayout();
void updateCurveLayout(PlotCurve* c, const CurveLayout *cL);
void guessUniqueCurveLayout(int& colorIndex, int& symbolIndex);
void zoomed (const QwtDoubleRect &);
void zoom(bool on);
void zoomOut();
bool zoomOn();
void setAutoScale();
void updateScale();
QString saveToString(bool saveAsTemplate = false);
QString saveScale();
QString saveScaleTitles();
QString saveFonts();
QString saveMarkers();
QString saveCurveLayout(int index);
QString saveAxesTitleColors();
QString saveAxesColors();
QString saveEnabledAxes();
QString saveCanvas();
QString saveTitle();
QString saveAxesTitleAlignement();
QString saveEnabledTickLabels();
QString saveTicksType();
QString saveCurves();
QString saveLabelsFormat();
QString saveLabelsRotation();
QString saveAxesLabelsType();
QString saveAxesBaseline();
QString saveAxesFormulas();
QString saveAxesBackbones();
QString saveTickLabelsSpace();
QString saveLabelsPrefixAndSuffix();
QString saveBackgroundImage();
void restoreBackgroundImage(const QStringList& lst);
void restoreSymbolImage(int index, const QStringList& lst);
static QString rgbaName(const QColor& color);
LegendWidget* addText(LegendWidget*);
LegendWidget* insertText(const QStringList& list, int fileVersion);
LegendWidget* addTimeStamp();
void removeLegendItem(int index);
void insertLegend(const QStringList& lst, int fileVersion);
LegendWidget* newLegend(const QString& text = QString());
QString legendText(bool layerSpec = false, int fromIndex = 0);
LegendWidget* legend();
void setLegend(const QString&);
void removeLegend();
ArrowMarker* addArrow(ArrowMarker* mrk);
void remove(ArrowMarker* arrow);
void addArrow(QStringList list, int fileVersion);
QList<ArrowMarker *> arrowsList(){return d_lines;};
int numArrows(){return d_lines.count();};
void drawLine(bool on, bool arrow = false);
bool drawArrow(){return drawArrowOn;};
bool drawLineActive(){return drawLineOn;};
bool arrowMarkerSelected();
ImageWidget* addImage(ImageWidget* i);
ImageWidget* addImage(const QString& fileName);
ImageWidget* addImage(const QImage& image);
void insertImageMarker(const QStringList& lst, int fileVersion);
bool imageMarkerSelected();
void removeMarker();
void updateMarkersBoundingRect(bool rescaleEvent = true);
void setSelectedArrow(ArrowMarker* mrk, bool add = false);
ArrowMarker* selectedArrow(){return d_selected_arrow;};
bool markerSelected();
void deselectMarker();
QwtScaleWidget* currentScale();
QwtScaleWidget* selectedScale();
QRect axisTitleRect(const QwtScaleWidget *scale);
bool axisTitleSelected();
ScaleDraw::ScaleType axisType(int axis);
void setXAxisTitle(const QString& text);
void setYAxisTitle(const QString& text);
void setRightAxisTitle(const QString& text);
void setTopAxisTitle(const QString& text);
QString axisTitleString(int axis);
void setAxisTitleString(int axis, const QString& text);
void setAxisTitle(int axis, const QString& text);
void updateAxesTitles();
void updateAxisTitle(int axis);
void setScaleTitle(int axis, const QString& text);
QFont axisTitleFont(int axis);
void setAxisTitleFont(int axis,const QFont &fnt);
void setAxisFont(int axis, const QFont &fnt);
void initFonts(const QFont &scaleTitleFnt,const QFont &numbersFnt);
QColor axisTitleColor(int axis);
void setAxisTitleColor(int axis, const QColor& c);
int axisTitleAlignment (int axis);
void setAxisTitleAlignment(int axis, int align);
int axisTitleDistance(int axis);
void setAxisTitleDistance(int axis, int dist);
QColor axisColor(int axis);
void setAxisColor(int axis, const QColor& color);
QColor axisLabelsColor(int axis);
void setAxisLabelsColor(int axis, const QColor& color);
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,
int spacing = 4, bool backbone = true, const ScaleDraw::ShowTicksPolicy& showTicks = ScaleDraw::ShowAll,
const QString& prefix = QString::null, const QString& suffix = QString::null);
void enableAxis(int axis, bool on = true);
void enableAxisLabels(int axis, bool on = true);
int labelsRotation(int axis);
void setAxisLabelRotation(int axis, int rotation);
void loadAxesLinewidth(int width);
void drawAxesBackbones(bool yes);
bool axesBackbones(){return drawAxesBackbone;};
void loadAxesOptions(const QStringList& lst);
void setAxisMargin(int axis, int margin);
void setMajorTicksType(const QList<int>& lst);
void setMajorTicksType(const QStringList& lst);
void setMinorTicksType(const QList<int>& lst);
void setMinorTicksType(const QStringList& lst);
void setAxisTicksLength(int axis, int majTicksType, int minTicksType, int minLength, int majLength);
void setTicksLength(int minLength, int majLength);
void changeTicksLength(int minLength, int majLength);
void setLabelsNumericFormat(const QStringList& l);
void setLabelsNumericFormat(int axis, int format, int prec = 6, const QString& formula = QString());
void setLabelsDateTimeFormat(int axis, int type, const QString& formatInfo);
void setLabelsDayFormat(int axis, int format);
void setLabelsMonthFormat(int axis, int format);
void recoverObsoleteDateTimeScale(int axis, int type, const QString& origin, const QString& format);
QString axisFormatInfo(int axis);
void setLabelsTextFormat(int axis, int type, const QString& name, const QStringList& lst);
void setLabelsTextFormat(int axis, int type, const QString& labelsColName, Table *table);
QString axisFormula(int axis);
void setAxisFormula(int axis, const QString &);
void setCanvasFrame(int width = 1, const QColor& color = QColor(Qt::black));
QColor canvasFrameColor();
int canvasFrameWidth();
QString canvasBackgroundFileName(){return d_canvas_bkg_path;};
void setCanvasBackgroundImage (const QString & fn = QString(), bool update = true);
QPixmap backgroundPixmap(){return d_canvas_bkg_pix;};
void setTitleFont(const QFont &fnt);
void setTitleColor(const QColor &c);
void setTitleAlignment(int align);
bool titleSelected();
void selectTitle(bool select = true);
void clearTitle();
void removeTitle();
void initTitle( bool on, const QFont& fnt);
void disableTools();
void disableImageProfilesTool();
QPointer<ImageProfilesTool> imageProfilesTool(){return d_image_profiles_tool;}
bool enableRangeSelectors(const QObject *status_target=NULL, const char *status_slot="");
bool rangeSelectorsEnabled();
QPointer<RangeSelectorTool> rangeSelectorTool(){return d_range_selector;};
void setFrame(int width = 1, const QColor& color = Qt::black);
void setBackgroundColor(const QColor& color);
void addFitCurve(QwtPlotCurve *c);
void deleteFitCurves();
QList<QwtPlotCurve *> fitCurvesList(){return d_fit_curves;};
int range(const QString& curveTitle, double *start, double *end);
int range(QwtPlotCurve *c, double *start, double *end);
void setBarsGap(int curve, int gapPercent, int offset);
void modifyFunctionCurve(int curve, int type, const QStringList &formulas, const QString &var,
double start, double end, int points, const QMap<QString, double>& constants);
FunctionCurve* addFunction(const QStringList &formulas, double start, double end, int points = 100, const QString &var = "x", int type = 0, const QString& title = QString::null);
FunctionCurve* insertFunctionCurve(const QString& formula, int points, int fileVersion);
QString generateFunctionName(const QString& name = tr("F"));
void createTable(const QString& curveName);
void createTable(const QwtPlotCurve* curve);
void activateGraph();
VectorCurve* plotVectors(Table* w, const QStringList& colList, int style, int startRow = 0, int endRow = -1);
void updateVectorsLayout(int curve, const QColor& color, double width, int arrowLength, int arrowAngle, bool filled, int position,
const QString& xEndColName = QString(), const QString& yEndColName = QString());
BoxCurve* openBoxDiagram(Table *w, const QStringList& l, int fileVersion);
void plotBox(Table *w, const QStringList& names, int startRow = 0, int endRow = -1);
BoxCurve * boxCurve(int index);
void resizeEvent(QResizeEvent *e);
void scaleFonts(double factor);
void notifyChanges();
void updateSecondaryAxis(int axis, bool changeFormat = false);
int oppositeAxis(int axis);
void updateOppositeScaleDiv(int axis);
bool isAutoscalingEnabled(){return d_auto_scale;};
void enableAutoscaling(bool on = true){d_auto_scale = on;};
bool autoscaleFonts(){return autoScaleFonts;};
void setAutoscaleFonts(bool on = true){autoScaleFonts = on;};
static int obsoleteSymbolStyle(int type);
static QString penStyleName(Qt::PenStyle style);
static Qt::PenStyle getPenStyle(const QString& s);
static Qt::PenStyle getPenStyle(int style);
static void showPlotErrorMessage(QWidget *parent, const QStringList& emptyColumns);
void showTitleContextMenu();
void copyTitle();
void cutTitle();
void clearAxisTitle();
void removeAxisTitle();
void cutAxisTitle();
void copyAxisTitle();
void showAxisTitleMenu();
void showAxisContextMenu(int axis);
void hideSelectedAxis();
void showGrids();
void showGrid();
void showGrid(int axis);
void setGridOnTop(bool on = true, bool update = true);
bool hasGridOnTop(){return d_grid_on_top;}
void showAxisDialog();
void showScaleDialog();
Spectrogram* spectrogram(Matrix *m);
Spectrogram* plotSpectrogram(Matrix *m, CurveType type);
void restoreSpectrogram(ApplicationWindow *app, const QStringList& lst);
QwtHistogram* addHistogram(Matrix *m);
QwtHistogram* restoreHistogram(Matrix *m, const QStringList& l);
bool antialiasing(){return d_antialiasing;};
void setAntialiasing(bool on = true, bool update = true);
void disableCurveAntialiasing(bool disable, int maxPoints);
bool isCurveAntialiasingEnabled(QwtPlotItem *it);
bool isCurveAntialiasingDisabled(){return d_disable_curve_antialiasing;};
int maxAntialisingSize(){return d_max_antialising_size;};
void setCurrentColor(const QColor& c);
void notifyColorChange(const QColor& c){emit currentColorChanged(c);};
void setCurrentFont(const QFont& f);
void notifyFontChange(const QFont& f){emit currentFontChanged(f);};
void enableTextEditor();
void showMissingDataGap(bool on = true, bool update = true);
bool isMissingDataGapEnabled(){return d_missing_data_gap;}
bool isWaterfallPlot(){return d_waterfall_offset_x != 0 || d_waterfall_offset_y != 0;};
int waterfallXOffset(){return d_waterfall_offset_x;};
int waterfallYOffset(){return d_waterfall_offset_y;};
void setWaterfallOffset(int x, int y, bool update = false);
void setWaterfallXOffset(int);
void setWaterfallYOffset(int);
void setWaterfallSideLines(bool on = true);
void setWaterfallFillColor(const QColor&);
void updateWaterfallFill(bool on);
void updateDataCurves();
void reverseCurveOrder();
signals:
void selectedGraph(Graph*);
void selectedCanvas(Graph*);
void closedGraph();
void drawLineEnded(bool);
void cursorInfo(const QString&);
void showPlotDialog(int);
void viewLineDialog();
void viewTitleDialog();
void modifiedGraph();
void hiddenPlot(QWidget*);
void showContextMenu();
void showCurveContextMenu(QwtPlotItem *);
void showMarkerPopupMenu();
void showAxisDialog(int);
void axisDblClicked(int);
void showAxisTitleDialog();
void dataRangeChanged();
void showFitResults(const QString&);
void currentFontChanged(const QFont&);
void currentColorChanged(const QColor&);
void enableTextEditor(Graph *);
void axisDivChanged(Graph *, int);
void updatedLayout(Graph *);
void selectionChanged(SelectionMoveResizer *);
private slots:
void selectorDeleted();
private:
QString parseAxisTitle(int axis);
QList<FrameWidget*> stackingOrderEnrichmentsList() const;
QwtDoubleInterval axisBoundingInterval(int axis);
void deselectCurves();
void dropEvent(QDropEvent*);
void dragEnterEvent(QDragEnterEvent*);
void showEvent (QShowEvent * event);
void printFrame(QPainter *painter, const QRect &rect) const;
void printCanvas(QPainter *painter, const QRect &canvasRect,
const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const;
virtual void printScale (QPainter *, int axisId, int startDist, int endDist,
int baseDist, const QRect &) const;
virtual void drawItems (QPainter *painter, const QRect &rect,
const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const;
void drawInwardTicks(QPainter *painter, const QRect &rect,
const QwtScaleMap&map, int axis, bool min, bool maj) const;
void drawBreak(QPainter *painter, const QRect &rect, const QwtScaleMap &map, int axis) const;
QwtPlotZoomer *d_zoomer[2];
TitlePicker *titlePicker;
ScalePicker *scalePicker;
CanvasPicker* cp;
Grid *d_grid;
QList<QwtPlotItem*> d_curves;
QList<QwtPlotCurve *>d_fit_curves;
bool d_antialiasing;
bool d_disable_curve_antialiasing;
int d_max_antialising_size;
bool autoScaleFonts;
bool drawLineOn, drawArrowOn, drawAxesBackbone;
bool d_is_printing;
bool d_grid_on_top;
bool d_missing_data_gap;
QVector<double> d_user_step;
QList<ArrowMarker*> d_lines;
ArrowMarker* d_selected_arrow;
QPointer<SelectionMoveResizer> d_markers_selector;
QPointer<RangeSelectorTool> d_range_selector;
QPointer<ImageProfilesTool> d_image_profiles_tool;
PlotToolInterface *d_active_tool, *d_peak_fit_tool;
FrameWidget *d_active_enrichment;
bool d_auto_scale;
int d_min_tick_length, d_maj_tick_length;
#ifdef TEX_OUTPUT
bool d_is_exporting_tex;
bool d_tex_escape_strings;
#endif
QList<FrameWidget*> d_enrichments;
QwtPlotMagnifier *d_magnifier;
QwtPlotPanner *d_panner;
double d_Douglas_Peuker_tolerance;
int d_speed_mode_points;
AxisTitlePolicy d_axis_title_policy;
bool d_synchronize_scales;
QStringList d_axis_titles;
QString d_canvas_bkg_path;
QPixmap d_canvas_bkg_pix;
int d_waterfall_offset_x, d_waterfall_offset_y;
QRectF d_page_rect;
};
class ScaledFontsPrintFilter: public QwtPlotPrintFilter
{
public:
ScaledFontsPrintFilter(double factor){d_factor = factor;};
virtual QFont font(const QFont &f, Item item) const
{
if (d_factor == 1.0 || d_factor <= 0.0)
return f;
if (item == Title || item == AxisScale || item == AxisTitle || item == Marker){
QFont fnt(f);
fnt.setPointSizeF(d_factor*f.pointSizeF());
return fnt;
}
return f;
}
double scaleFontsFactor(){return d_factor;}
private:
double d_factor;
};
#endif // GRAPH_H
Graph::d_waterfall_offset_x
int d_waterfall_offset_x
Definition: Graph.h:926
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, double left_break=-DBL_MAX, double right_break=DBL_MAX, int pos=50, double stepBeforeBreak=0.0, double stepAfterBreak=0.0, int minTicksBeforeBreak=4, int minTicksAfterBreak=4, bool log10AfterBreak=false, int breakWidth=4, bool breakDecoration=true)
Definition: Graph.cpp:1418
Graph::saveAxesColors
QString saveAxesColors()
Definition: Graph.cpp:1030
Graph::hasGridOnTop
bool hasGridOnTop()
Definition: Graph.h:763
Graph::updateSecondaryAxis
void updateSecondaryAxis(int axis, bool changeFormat=false)
Definition: Graph.cpp:1309
Graph::setRightAxisTitle
void setRightAxisTitle(const QString &text)
Definition: Graph.cpp:1116
Graph::hasPanningMagnifierEnabled
bool hasPanningMagnifierEnabled()
Definition: Graph.h:223
Graph::drawLine
void drawLine(bool on, bool arrow=false)
Draws a line/arrow depending on the value of "arrow".
Definition: Graph.cpp:4156
ScaledFontsPrintFilter::font
virtual QFont font(const QFont &f, Item item) const
Definition: Graph.h:935
Graph::insertFunctionCurve
FunctionCurve * insertFunctionCurve(const QString &formula, int points, int fileVersion)
Used when reading from a project file with version < 0.9.5.
Definition: Graph.cpp:4261
Graph::saveAxesBaseline
QString saveAxesBaseline()
Definition: Graph.cpp:577
Graph::updateDataCurves
void updateDataCurves()
Definition: Graph.cpp:7499
Graph::Pie
Definition: Graph.h:135
Graph::updateAxisTitle
void updateAxisTitle(int axis)
Definition: Graph.cpp:3742
Graph::showTitleContextMenu
void showTitleContextMenu()
Definition: Graph.cpp:4667
Graph::select
void select(QWidget *l, bool add=false)
Definition: Graph.cpp:361
Graph::curve
PlotCurve * curve(const QString &title)
get curve by name
Definition: Graph.h:312
Graph::Default
Definition: Graph.h:140
CurveLayout::lCol
QColor lCol
line color
Definition: Graph.h:81
Graph::setAxisTitleFont
void setAxisTitleFont(int axis, const QFont &fnt)
Definition: Graph.cpp:976
Graph::masterCurve
DataCurve * masterCurve(ErrorBarsCurve *er)
Returns a valid master curve for the error bars curve.
Definition: Graph.cpp:5854
Graph::mousePressed
bool mousePressed(QEvent *)
Definition: Graph.cpp:7368
Graph::pageGeometry
QRectF pageGeometry()
Definition: Graph.h:242
Graph::showCurveContextMenu
void showCurveContextMenu(QwtPlotItem *)
Graph::updateCurveLayout
void updateCurveLayout(PlotCurve *c, const CurveLayout *cL)
Definition: Graph.cpp:3199
Graph::updateVectorsLayout
void updateVectorsLayout(int curve, const QColor &color, double width, int arrowLength, int arrowAngle, bool filled, int position, const QString &xEndColName=QString(), const QString &yEndColName=QString())
Definition: Graph.cpp:3701
Graph::setLabelsNumericFormat
void setLabelsNumericFormat(const QStringList &l)
Used for restoring project files.
Definition: Graph.cpp:509
Graph::setTitleFont
void setTitleFont(const QFont &fnt)
Definition: Graph.cpp:1093
Graph::deselect
void deselect()
Definition: Graph.cpp:1999
Graph::imageProfilesTool
QPointer< ImageProfilesTool > imageProfilesTool()
Definition: Graph.h:656
Graph::modifyFunctionCurve
void modifyFunctionCurve(int curve, int type, const QStringList &formulas, const QString &var, double start, double end, int points, const QMap< QString, double > &constants)
Definition: Graph.cpp:4164
Graph::curveCount
int curveCount()
Definition: Graph.h:298
Graph::rangeSelectorsEnabled
bool rangeSelectorsEnabled()
Definition: Graph.cpp:7086
Graph::deleteFitCurves
void deleteFitCurves()
Definition: Graph.cpp:5309
MultiLayer
An MDI window (MdiSubWindow) managing one or more Graph objects.
Definition: MultiLayer.h:64
Graph::setActiveTool
void setActiveTool(PlotToolInterface *tool)
Change the active tool, deleting the old one if it exists.
Definition: Graph.cpp:5172
Graph::axisTitleSelected
bool axisTitleSelected()
Definition: Graph.cpp:5910
Graph::zoomOn
bool zoomOn()
Definition: Graph.cpp:3991
Graph::scalePicker
ScalePicker * scalePicker
Definition: Graph.h:870
Graph::drawBreak
void drawBreak(QPainter *painter, const QRect &rect, const QwtScaleMap &map, int axis) const
Definition: Graph.cpp:6332
Graph::setCanvasCoordinates
void setCanvasCoordinates(const QRectF &)
Definition: Graph.cpp:1500
Graph::raiseEnrichements
void raiseEnrichements()
Definition: Graph.cpp:7023
Graph::insertText
LegendWidget * insertText(const QStringList &list, int fileVersion)
Used when opening a project file.
Definition: Graph.cpp:2805
Graph::reloadCurvesData
void reloadCurvesData()
Definition: Graph.cpp:2199
Graph::print
void print()
Definition: Graph.cpp:1768
Graph::updateMarkersBoundingRect
void updateMarkersBoundingRect(bool rescaleEvent=true)
Keep the markers on screen each time the scales are modified by adding/removing curves.
Definition: Graph.cpp:4468
Graph::removeCurve
void removeCurve(QwtPlotItem *it)
Definition: Graph.cpp:3842
Graph::insertMarker
void insertMarker(QwtPlotMarker *m)
Definition: Graph.cpp:6465
Graph::saveMarkers
QString saveMarkers()
Definition: Graph.cpp:2952
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:1506
Graph::enableTextEditor
void enableTextEditor()
Definition: Graph.cpp:310
Graph::arrowsList
QList< ArrowMarker * > arrowsList()
Definition: Graph.h:495
VectorCurve
Vector curve class.
Definition: VectorCurve.h:38
Graph::deselectCurves
void deselectCurves()
Definition: Graph.cpp:2009
Graph::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *)
Definition: Graph.cpp:3964
Graph::updateOppositeScaleDiv
void updateOppositeScaleDiv(int axis)
Definition: Graph.cpp:1363
Graph::setCurveLineWidth
void setCurveLineWidth(int curveIndex, double width)
Definition: Graph.cpp:5723
Graph::legendText
QString legendText(bool layerSpec=false, int fromIndex=0)
Creates a new legend text using the curves titles.
Definition: Graph.cpp:2075
Graph::Function
Definition: Graph.h:137
Graph::setAxisTitleColor
void setAxisTitleColor(int axis, const QColor &c)
Definition: Graph.cpp:2444
Graph::d_panner
QwtPlotPanner * d_panner
Definition: Graph.h:915
Graph::Log10
Definition: Graph.h:132
AxesDialog.h
Graph::removeCurves
void removeCurves(const QString &s)
Removes all curves defined by the title/plot association string s.
Definition: Graph.cpp:3810
Graph::drawLineOn
bool drawLineOn
Definition: Graph.h:883
Graph::restoreBackgroundImage
void restoreBackgroundImage(const QStringList &lst)
Definition: Graph.cpp:4450
Graph::insertImageMarker
void insertImageMarker(const QStringList &lst, int fileVersion)
Definition: Graph.cpp:4129
Graph::insertLegend
void insertLegend(const QStringList &lst, int fileVersion)
Definition: Graph.cpp:2799
Graph::ColComment
Definition: Graph.h:140
Graph::isWaterfallPlot
bool isWaterfallPlot()
Definition: Graph.h:799
Graph::axisBoundingInterval
QwtDoubleInterval axisBoundingInterval(int axis)
Finds bounding interval of the plot data.
Definition: Graph.cpp:1393
Graph::curveIndex
int curveIndex(const QString &title)
map curve title to index
Definition: Graph.h:306
Graph::d_antialiasing
bool d_antialiasing
Render hint for plot items.
Definition: Graph.h:879
Graph::add
FrameWidget * add(FrameWidget *fw, bool copy=true)
Definition: Graph.cpp:6967
Graph::showAxisDialog
void showAxisDialog()
Definition: Graph.cpp:4755
Graph::VectXYAM
Definition: Graph.h:137
Graph
A 2D-plotting widget.
Definition: Graph.h:123
Graph::drawInwardTicks
void drawInwardTicks(QPainter *painter, const QRect &rect, const QwtScaleMap &map, int axis, bool min, bool maj) const
Definition: Graph.cpp:6176
Graph::d_peak_fit_tool
PlotToolInterface * d_peak_fit_tool
Definition: Graph.h:902
Graph::d_enrichments
QList< FrameWidget * > d_enrichments
Definition: Graph.h:913
Graph::Left
Definition: Graph.h:131
Graph::updateAxesTitles
void updateAxesTitles()
Definition: Graph.cpp:3736
Graph::plotVectors
VectorCurve * plotVectors(Table *w, const QStringList &colList, int style, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3674
Graph::setMajorTicksType
void setMajorTicksType(int axis, int type)
Definition: Graph.cpp:6496
Graph::Probability
Definition: Graph.h:132
Graph::curveRange
QString curveRange(QwtPlotCurve *c)
returns the curve range information as a string: "curve_name [start:end]"
Definition: Graph.cpp:1524
Graph::canvasFrameColor
QColor canvasFrameColor()
Definition: Graph.cpp:2221
Graph::showMarkerPopupMenu
void showMarkerPopupMenu()
CurveLayout::sType
int sType
symbol type (shape)
Definition: Graph.h:91
Graph::selectCanvas
void selectCanvas()
Definition: Graph.cpp:278
Graph::axisDivChanged
void axisDivChanged(Graph *, int)
Graph::activeEnrichment
FrameWidget * activeEnrichment()
Definition: Graph.h:157
Graph::setLegend
void setLegend(const QString &)
Definition: Graph.cpp:2746
Graph::setIndexedColors
void setIndexedColors()
Definition: Graph.cpp:5798
Graph::d_Douglas_Peuker_tolerance
double d_Douglas_Peuker_tolerance
Definition: Graph.h:917
Graph::insertPlotItem
void insertPlotItem(QwtPlotItem *i, int type)
Definition: Graph.cpp:3394
ErrorBarsCurve
Error bars curve.
Definition: ErrorBarsCurve.h:36
Graph::hasSeletedItems
bool hasSeletedItems()
Definition: Graph.cpp:402
Graph::getDouglasPeukerTolerance
double getDouglasPeukerTolerance()
Definition: Graph.h:234
ScaledFontsPrintFilter::d_factor
double d_factor
Definition: Graph.h:951
Graph::printCanvas
void printCanvas(QPainter *painter, const QRect &canvasRect, const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const
Definition: Graph.cpp:6081
Graph::d_synchronize_scales
bool d_synchronize_scales
Definition: Graph.h:920
Graph::GrayScale
Definition: Graph.h:137
Graph::cutTitle
void cutTitle()
Definition: Graph.cpp:4679
Graph::addTimeStamp
LegendWidget * addTimeStamp()
Definition: Graph.cpp:2788
Graph::oppositeAxis
int oppositeAxis(int axis)
Definition: Graph.cpp:1343
Graph::d_canvas_bkg_pix
QPixmap d_canvas_bkg_pix
Definition: Graph.h:924
Graph::addText
LegendWidget * addText(LegendWidget *)
Definition: Graph.cpp:2942
Graph::visibleCurves
int visibleCurves()
Definition: Graph.cpp:5895
Graph::setActiveText
void setActiveText(LegendWidget *l)
Definition: Graph.h:154
CurveLayout::sSize
int sSize
symbol size
Definition: Graph.h:90
CanvasPicker
Handles parts of the user interaction for a Plot by registering itself as an event filter for its Qwt...
Definition: CanvasPicker.h:40
Graph::axisLabelsColor
QColor axisLabelsColor(int axis)
Definition: Graph.cpp:1066
Graph::setSynchronizedScaleDivisions
void setSynchronizedScaleDivisions(bool on)
Definition: Graph.h:240
Graph::setTitleColor
void setTitleColor(const QColor &c)
Definition: Graph.cpp:1075
Graph::setAxisTitleAlignment
void setAxisTitleAlignment(int axis, int align)
Definition: Graph.cpp:1135
Graph::addImage
ImageWidget * addImage(ImageWidget *i)
Definition: Graph.cpp:4093
Graph::saveLabelsPrefixAndSuffix
QString saveLabelsPrefixAndSuffix()
Definition: Graph.cpp:617
Graph::setLabelsTextFormat
void setLabelsTextFormat(int axis, int type, const QString &name, const QStringList &lst)
Definition: Graph.cpp:857
ArrowMarker
Draws lines and arrows on a QwtPlot.
Definition: ArrowMarker.h:43
CurveLayout::filledArea
double filledArea
flag: toggles area filling under curve; if > 0 it containts the alphaF value of the brush color ...
Definition: Graph.h:84
Graph::showScaleDialog
void showScaleDialog()
Definition: Graph.cpp:4762
Graph::removeLegend
void removeLegend()
Definition: Graph.cpp:2755
Graph::axisStep
double axisStep(int axis)
Definition: Graph.h:411
Graph::zoom
void zoom(bool on)
Definition: Graph.cpp:4005
Graph::LegendDisplayMode
LegendDisplayMode
Definition: Graph.h:139
Graph::saveTitle
QString saveTitle()
Definition: Graph.cpp:2471
Graph::Area
Definition: Graph.h:135
Graph::setPageGeometry
void setPageGeometry(const QRectF &r)
Definition: Graph.h:243
Graph::notifyChanges
void notifyChanges()
Definition: Graph.cpp:273
Graph::exportVector
void exportVector(const QString &fileName, int res=0, bool color=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Definition: Graph.cpp:1752
Graph::ColName
Definition: Graph.h:140
Graph::isCurveAntialiasingDisabled
bool isCurveAntialiasingDisabled()
Definition: Graph.h:785
Graph::parseAxisTitle
QString parseAxisTitle(int axis)
Definition: Graph.cpp:1180
Graph::d_image_profiles_tool
QPointer< ImageProfilesTool > d_image_profiles_tool
Definition: Graph.h:900
Graph::plotSpectrogram
Spectrogram * plotSpectrogram(Matrix *m, CurveType type)
Add a spectrogram to the graph.
Definition: Graph.cpp:5333
ScaledFontsPrintFilter::scaleFontsFactor
double scaleFontsFactor()
Definition: Graph.h:948
Graph::copyAxisTitle
void copyAxisTitle()
Definition: Graph.cpp:4712
Graph::activeTool
PlotToolInterface * activeTool() const
Return the active tool, or NULL if none is active.
Definition: Graph.h:148
Graph::updateWaterfallFill
void updateWaterfallFill(bool on)
Definition: Graph.cpp:7432
Graph::HorizontalBars
Definition: Graph.h:136
Grid
Definition: Grid.h:36
Graph::removeTitle
void removeTitle()
Sets title to an empty string and hides the text label.
Definition: Graph.cpp:2059
Graph::Ln
Definition: Graph.h:132
Graph::d_active_tool
PlotToolInterface * d_active_tool
The currently active tool, or NULL for default (pointer).
Definition: Graph.h:902
Graph::copyCurves
void copyCurves(Graph *g)
Definition: Graph.cpp:4938
Graph::drawAxesBackbones
void drawAxesBackbones(bool yes)
Definition: Graph.cpp:2247
Graph::removeAxisTitle
void removeAxisTitle()
Definition: Graph.cpp:4690
TexWidget
Definition: TexWidget.h:35
Graph::showAxisTitleDialog
void showAxisTitleDialog()
Graph::ImagePlot
Definition: Graph.h:137
Graph::axisTitleRect
QRect axisTitleRect(const QwtScaleWidget *scale)
Definition: Graph.cpp:5920
Graph::enablePanningMagnifier
void enablePanningMagnifier(bool on=true, int mode=0)
Definition: Graph.cpp:4036
Graph::VectXYXY
Definition: Graph.h:136
Graph::isMissingDataGapEnabled
bool isMissingDataGapEnabled()
Definition: Graph.h:795
Graph::customPrintSize
static QSize customPrintSize(const QSizeF &customSize, int unit, int dpi)
Definition: Graph.cpp:7060
Graph::guessUniqueCurveLayout
void guessUniqueCurveLayout(int &colorIndex, int &symbolIndex)
Tries to guess not already used curve color and symbol style.
Definition: Graph.cpp:5249
Spectrogram
Definition: Spectrogram.h:46
Graph::Contour
Definition: Graph.h:137
ScaleDraw.h
Graph::enableAxisLabels
void enableAxisLabels(int axis, bool on=true)
Definition: Graph.cpp:644
ImageProfilesTool
Definition: ScreenPickerTool.h:101
Graph::setGrayScale
void setGrayScale()
Definition: Graph.cpp:5735
Graph::printFrame
void printFrame(QPainter *painter, const QRect &rect) const
Definition: Graph.cpp:6028
Graph::updatedLayout
void updatedLayout(Graph *)
Graph::obsoleteSymbolStyle
static int obsoleteSymbolStyle(int type)
Definition: Graph.cpp:4640
Graph::disableImageProfilesTool
void disableImageProfilesTool()
Definition: Graph.cpp:5221
TitlePicker
Definition: TitlePicker.h:34
ScaledFontsPrintFilter::ScaledFontsPrintFilter
ScaledFontsPrintFilter(double factor)
Definition: Graph.h:934
Graph::ColumnName
Definition: Graph.h:139
Graph::setAxisFont
void setAxisFont(int axis, const QFont &fnt)
Definition: Graph.cpp:468
Graph::setXAxisTitle
void setXAxisTitle(const QString &text)
Definition: Graph.cpp:1109
Graph::Spline
Definition: Graph.h:136
Graph::hiddenPlot
void hiddenPlot(QWidget *)
Graph::canvasFrameWidth
int canvasFrameWidth()
Definition: Graph.cpp:2227
Graph::axisFormula
QString axisFormula(int axis)
Definition: Graph.cpp:6007
Graph::axisTitleDistance
int axisTitleDistance(int axis)
Definition: Graph.cpp:1142
Graph::axisLabelFormat
void axisLabelFormat(int axis, char &f, int &prec) const
Definition: Graph.cpp:6553
Graph::setCurveStyle
void setCurveStyle(int index, int s)
Definition: Graph.cpp:5098
Graph::copyScaleDraw
void copyScaleDraw(Graph *g, int i)
Definition: Graph.cpp:4831
Graph::cursorInfo
void cursorInfo(const QString &)
Graph::waterfallXOffset
int waterfallXOffset()
Definition: Graph.h:800
Graph::VerticalDropLines
Definition: Graph.h:135
Graph::setCurrentColor
void setCurrentColor(const QColor &c)
Definition: Graph.cpp:5965
Graph::setLabelsMonthFormat
void setLabelsMonthFormat(int axis, int format)
Definition: Graph.cpp:849
Graph::AxisTitlePolicy
AxisTitlePolicy
Definition: Graph.h:140
Graph::selectTitle
void selectTitle(bool select=true)
Definition: Graph.cpp:2041
Graph::Arrow
Definition: Graph.h:134
Graph::rangeSelectorTool
QPointer< RangeSelectorTool > rangeSelectorTool()
Definition: Graph.h:666
Graph::paletteBackgroundColor
const QColor & paletteBackgroundColor() const
Definition: Graph.cpp:6634
Graph::restoreSymbolImage
void restoreSymbolImage(int index, const QStringList &lst)
Definition: Graph.cpp:2656
CurveLayout
Structure containing curve layout parameters.
Definition: Graph.h:80
ImageWidget
Definition: ImageWidget.h:37
Graph::setBarsGap
void setBarsGap(int curve, int gapPercent, int offset)
Used for VerticalBars, HorizontalBars and Histograms.
Definition: Graph.cpp:3785
Graph::addCurves
bool addCurves(Table *w, const QStringList &names, int style=0, double lWidth=1, int sSize=3, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3404
Graph::magnifyTool
QwtPlotMagnifier * magnifyTool()
Definition: Graph.h:224
Graph::numArrows
int numArrows()
Definition: Graph.h:496
Graph::changeTicksLength
void changeTicksLength(int minLength, int majLength)
Definition: Graph.cpp:732
Graph::printScale
virtual void printScale(QPainter *, int axisId, int startDist, int endDist, int baseDist, const QRect &) const
Paint a scale into a given rectangle. Paint the scale into a given rectangle (modified code from Qwt)...
Definition: Graph.cpp:7105
Graph::minorTickLength
int minorTickLength() const
Definition: Graph.cpp:6386
Graph::d_magnifier
QwtPlotMagnifier * d_magnifier
Definition: Graph.h:914
Graph::drawArrow
bool drawArrow()
Definition: Graph.h:500
Graph::d_axis_title_policy
AxisTitlePolicy d_axis_title_policy
Definition: Graph.h:919
Graph::imageMarkerSelected
bool imageMarkerSelected()
Definition: Graph.cpp:1991
Graph::showAxisContextMenu
void showAxisContextMenu(int axis)
Definition: Graph.cpp:4732
Graph::fitCurvesList
QList< QwtPlotCurve * > fitCurvesList()
Definition: Graph.h:675
CurveLayout::fillCol
QColor fillCol
symbol fill color
Definition: Graph.h:88
Graph::addFunction
FunctionCurve * addFunction(const QStringList &formulas, double start, double end, int points=100, const QString &var="x", int type=0, const QString &title=QString::null)
Definition: Graph.cpp:4234
CurveLayout::symCol
QColor symCol
symbol outline color
Definition: Graph.h:87
Graph::changeCurveIndex
void changeCurveIndex(int fromIndex, int toIndex)
Definition: Graph.cpp:7257
Graph::addFitCurve
void addFitCurve(QwtPlotCurve *c)
Definition: Graph.cpp:5303
Graph::d_selected_arrow
ArrowMarker * d_selected_arrow
Pointer to the currently selected line/image.
Definition: Graph.h:895
Graph::restoreCurveLabels
void restoreCurveLabels(int curveID, const QStringList &lst)
Used when restoring DataCurve curveID from a project file.
Definition: Graph.cpp:5501
Graph::maxAntialisingSize
int maxAntialisingSize()
Definition: Graph.h:786
Graph::initCurveLayout
static CurveLayout initCurveLayout()
Definition: Graph.cpp:3101
Graph::saveAxesFormulas
QString saveAxesFormulas()
Definition: Graph.cpp:2390
Graph::addLegendItem
void addLegendItem()
Definition: Graph.cpp:3948
Graph::titlePicker
TitlePicker * titlePicker
Definition: Graph.h:869
Graph::saveLabelsRotation
QString saveLabelsRotation()
Definition: Graph.cpp:634
Graph::StackColumn
Definition: Graph.h:138
min
#define min(a, b)
Definition: ShapiroWilkTest.cpp:36
SelectionMoveResizer
Handler for modifying one or more QWidget and/or QwtPlotMarker with mouse or keyboard.
Definition: SelectionMoveResizer.h:89
Graph::speedModeMaxPoints
int speedModeMaxPoints()
Definition: Graph.h:233
Graph::selectedXStartValue
double selectedXStartValue()
Definition: Graph.cpp:2984
Graph::clearTitle
void clearTitle()
Sets the title to an "almost empty" string: " ", thus keeping the QwtText object visible.
Definition: Graph.cpp:2053
Graph::DataSetName
Definition: Graph.h:139
Graph::graphPixmap
QPixmap graphPixmap(const QSize &size=QSize(), double scaleFontsFactor=1.0, bool transparent=false)
Definition: Graph.cpp:1581
Graph::selectionMoveResizer
QPointer< SelectionMoveResizer > selectionMoveResizer()
Definition: Graph.h:166
Graph::restoreHistogram
QwtHistogram * restoreHistogram(Matrix *m, const QStringList &l)
Restores a histogram from a project file.
Definition: Graph.cpp:3657
Graph::d_auto_scale
bool d_auto_scale
Flag indicating if the axes limits should be changed in order to show all data each time a curva data...
Definition: Graph.h:906
Graph::setLabelsDateTimeFormat
void setLabelsDateTimeFormat(int axis, int type, const QString &formatInfo)
Definition: Graph.cpp:899
Graph::range
int range(const QString &curveTitle, double *start, double *end)
Definition: Graph.cpp:3059
Graph::newLegend
LegendWidget * newLegend(const QString &text=QString())
Definition: Graph.cpp:2760
Graph::axisTitleFont
QFont axisTitleFont(int axis)
Definition: Graph.cpp:985
Graph::functionCurve
FunctionCurve * functionCurve(int index)
Definition: Graph.cpp:3031
Graph::setTicksLength
void setTicksLength(int minLength, int majLength)
Definition: Graph.cpp:723
Graph::d_grid
Grid * d_grid
Pointer to the grid.
Definition: Graph.h:873
Graph::plotBox
void plotBox(Table *w, const QStringList &names, int startRow=0, int endRow=-1)
Definition: Graph.cpp:5055
Graph::legend
LegendWidget * legend()
Definition: Graph.cpp:2736
Graph::addArrow
ArrowMarker * addArrow(ArrowMarker *mrk)
Definition: Graph.cpp:2920
PieCurve
Pie plot class.
Definition: PieCurve.h:36
Graph::majorTickLength
int majorTickLength() const
Definition: Graph.cpp:6391
Graph::updateLayout
void updateLayout()
Adjust plot content to its current size. Must be reimplemented because the base implementation adds a...
Definition: Graph.cpp:6568
Graph::setAxisLabelsColor
void setAxisLabelsColor(int axis, const QColor &color)
Definition: Graph.cpp:999
Graph::setCanvasGeometry
void setCanvasGeometry(const QRect &canvasRect)
Adjust plot content to its canvas size.
Definition: Graph.cpp:6600
Graph::titleSelected
bool titleSelected()
Definition: Graph.cpp:2036
Graph::viewLineDialog
void viewLineDialog()
Graph::Graph
Graph(int x=0, int y=0, int width=500, int height=400, QWidget *parent=0, Qt::WFlags f=0)
Definition: Graph.cpp:116
Graph::ColumnComment
Definition: Graph.h:139
Graph::setAxisTitleDistance
void setAxisTitleDistance(int axis, int dist)
Definition: Graph.cpp:1150
Graph::removeLegendItem
void removeLegendItem(int index)
Definition: Graph.cpp:3886
Graph::updateScale
void updateScale()
Definition: Graph.cpp:3762
Graph::canvasBackgroundFileName
QString canvasBackgroundFileName()
Definition: Graph.h:634
Graph::selectorDeleted
void selectorDeleted()
Definition: Graph.cpp:355
Graph::d_page_rect
QRectF d_page_rect
Definition: Graph.h:927
FrameWidget
Definition: FrameWidget.h:38
Graph::showGrid
void showGrid()
Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales.
Definition: Graph.cpp:4786
Graph::curve
PlotCurve * curve(int index)
get curve by index
Definition: Graph.cpp:3009
Graph::generateFunctionName
QString generateFunctionName(const QString &name=tr("F"))
Returns an unique function name.
Definition: Graph.cpp:4214
Graph::closestCurve
QwtPlotItem * closestCurve(int xpos, int ypos, int &dist, int &point)
Definition: Graph.cpp:6405
Graph::StackBar
Definition: Graph.h:138
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:877
Graph::antialiasing
bool antialiasing()
Definition: Graph.h:779
Graph::exportTeX
void exportTeX(const QString &fname, bool color=true, bool escapeStrings=true, bool fontSizes=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Definition: Graph.cpp:1893
ApplicationWindow
QtiPlot's main window.
Definition: ApplicationWindow.h:133
FrameWidget.h
CurveLayout::aStyle
int aStyle
area filling style
Definition: Graph.h:86
Graph::setTitleAlignment
void setTitleAlignment(int align)
Definition: Graph.cpp:1084
Graph::showGrids
void showGrids()
Definition: Graph.cpp:4781
CurveLayout::lStyle
int lStyle
line style
Definition: Graph.h:83
Graph::Logit
Definition: Graph.h:132
Graph::notifyColorChange
void notifyColorChange(const QColor &c)
Definition: Graph.h:789
Graph::dataRangeChanged
void dataRangeChanged()
Graph::showPlotErrorMessage
static void showPlotErrorMessage(QWidget *parent, const QStringList &emptyColumns)
Definition: Graph.cpp:4648
Graph::viewTitleDialog
void viewTitleDialog()
Graph::axisTitleString
QString axisTitleString(int axis)
Definition: Graph.cpp:1286
Graph::axesLinewidth
int axesLinewidth() const
Definition: Graph.cpp:6376
Graph::Ticks
Ticks
Definition: Graph.h:133
Graph::d_lines
QList< ArrowMarker * > d_lines
Arrows/lines on plot.
Definition: Graph.h:893
Graph::Out
Definition: Graph.h:133
Graph::curveIndex
int curveIndex(QwtPlotItem *c)
Map curve pointer to index.
Definition: Graph.h:304
CurveLayout::connectType
int connectType
symbol connection type
Definition: Graph.h:92
Graph::hasSynchronizedScaleDivisions
bool hasSynchronizedScaleDivisions()
Definition: Graph.h:239
Graph::saveEnabledAxes
QString saveEnabledAxes()
Definition: Graph.cpp:2211
Graph::increasingAreaEnrichmentsList
QList< FrameWidget * > increasingAreaEnrichmentsList()
Definition: Graph.cpp:340
Graph::Text
Definition: Graph.h:134
FunctionCurve
Definition: FunctionCurve.h:37
Graph::recoverObsoleteDateTimeScale
void recoverObsoleteDateTimeScale(int axis, int type, const QString &origin, const QString &format)
Definition: Graph.cpp:923
Graph::getPenStyle
static Qt::PenStyle getPenStyle(const QString &s)
Definition: Graph.cpp:4626
Graph::removePie
void removePie()
Definition: Graph.cpp:3798
Graph::labelsRotation
int labelsRotation(int axis)
Definition: Graph.cpp:970
Graph::dropEvent
void dropEvent(QDropEvent *)
Definition: Graph.cpp:7286
LegendWidget
Definition: LegendWidget.h:42
Graph::selectedXEndValue
double selectedXEndValue()
Definition: Graph.cpp:2992
Graph::Scatter
Definition: Graph.h:135
Graph::saveAxesTitleColors
QString saveAxesTitleColors()
Definition: Graph.cpp:2454
Graph::draw
void draw(QPaintDevice *, const QSize &size, double fontsFactor=1.0)
Definition: Graph.cpp:1857
QwtHistogram
Histogram class.
Definition: QwtHistogram.h:34
Graph::zoomOut
void zoomOut()
Definition: Graph.cpp:4025
Graph::updateCurveNames
void updateCurveNames(const QString &oldName, const QString &newName, bool updateTableName=true)
Definition: Graph.cpp:5661
Graph::exportSVG
void exportSVG(const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Definition: Graph.cpp:1838
Graph::setAxesLinewidth
void setAxesLinewidth(int width)
Definition: Graph.cpp:2297
CurveLayout::lWidth
float lWidth
line width
Definition: Graph.h:82
Graph::Reciprocal
Definition: Graph.h:132
Graph::curvesList
QList< QwtPlotItem * > curvesList()
Definition: Graph.h:173
Graph::axisTitleColor
QColor axisTitleColor(int axis)
Definition: Graph.cpp:990
Graph::setCurvesList
void setCurvesList(QList< QwtPlotItem * > lst)
Definition: Graph.h:174
Graph::setAxisTicksLength
void setAxisTicksLength(int axis, int majTicksType, int minTicksType, int minLength, int majLength)
Definition: Graph.cpp:695
Graph::savePieCurveLayout
QString savePieCurveLayout()
Definition: Graph.cpp:2537
ScaleDraw::ShowAll
Definition: ScaleDraw.h:48
Graph::stackingOrderEnrichmentsList
QList< FrameWidget * > stackingOrderEnrichmentsList() const
Definition: Graph.cpp:7352
Graph::showContextMenu
void showContextMenu()
Graph::copyScaleWidget
void copyScaleWidget(Graph *g, int i)
Definition: Graph.cpp:4810
Matrix
Matrix worksheet class.
Definition: Matrix.h:57
Graph::enrichmentsList
QList< FrameWidget * > enrichmentsList()
Definition: Graph.h:158
Graph::boxCurve
BoxCurve * boxCurve(int index)
Definition: Graph.cpp:3040
DataCurve
Definition: PlotCurve.h:96
Graph::resizeEvent
void resizeEvent(QResizeEvent *e)
Definition: Graph.cpp:4492
Graph::copyTitle
void copyTitle()
Definition: Graph.cpp:4685
Graph::markerSelected
bool markerSelected()
Definition: Graph.cpp:1919
Graph::drawArrowOn
bool drawArrowOn
Definition: Graph.h:883
Graph::saveAxesBackbones
QString saveAxesBackbones()
Definition: Graph.cpp:590
Graph::cutAxisTitle
void cutAxisTitle()
Definition: Graph.cpp:4706
Graph::closeEvent
void closeEvent(QCloseEvent *e)
Definition: Graph.cpp:3985
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, int spacing=4, bool backbone=true, const ScaleDraw::ShowTicksPolicy &showTicks=ScaleDraw::ShowAll, const QString &prefix=QString::null, const QString &suffix=QString::null)
Definition: Graph.cpp:752
Graph::removeMarker
void removeMarker()
Definition: Graph.cpp:1928
Graph::hasActiveTool
bool hasActiveTool()
Returns true if a plot/data tool is enabled.
Definition: Graph.cpp:5227
Graph::InOut
Definition: Graph.h:133
Graph::insertCurve
DataCurve * insertCurve(Table *w, const QString &name, int style, int startRow=0, int endRow=-1)
Definition: Graph.cpp:3510
Graph::curveNamesList
QStringList curveNamesList()
Returns the names of all the QwtPlotCurve items on the plot, as a string list.
Definition: Graph.cpp:1539
Graph::scaleFonts
void scaleFonts(double factor)
Definition: Graph.cpp:4517
Graph::autoscaleFonts
bool autoscaleFonts()
Definition: Graph.h:736
Graph::saveAxesTitleAlignement
QString saveAxesTitleAlignement()
Definition: Graph.cpp:2508
Graph::d_is_printing
bool d_is_printing
Flag telling if we are performing a print operation.
Definition: Graph.h:885
Graph::d_max_antialising_size
int d_max_antialising_size
Definition: Graph.h:881
Graph::Auto
Definition: Graph.h:139
Graph::setTopAxisTitle
void setTopAxisTitle(const QString &text)
Definition: Graph.cpp:1123
Graph::saveCurves
QString saveCurves()
Definition: Graph.cpp:2684
Graph::Top
Definition: Graph.h:131
Graph::updateCurveLabels
void updateCurveLabels()
Definition: Graph.cpp:6639
Graph::addHistogram
QwtHistogram * addHistogram(Matrix *m)
Add a matrix histogram to the graph.
Definition: Graph.cpp:3640
Graph::exportImage
void exportImage(const QString &fileName, int quality=100, bool transparent=false, int dpi=0, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0, int compression=0)
Definition: Graph.cpp:1654
Graph::saveEnabledTickLabels
QString saveEnabledTickLabels()
Definition: Graph.cpp:557
Graph::axisTitlePolicy
AxisTitlePolicy axisTitlePolicy()
Definition: Graph.h:236
Graph::selectionChanged
void selectionChanged(SelectionMoveResizer *)
Graph::NoTicks
Definition: Graph.h:133
Graph::reverseCurveOrder
void reverseCurveOrder()
Definition: Graph.cpp:7485
Graph::disableCurveAntialiasing
void disableCurveAntialiasing(bool disable, int maxPoints)
Definition: Graph.cpp:5584
Graph::ErrorBars
Definition: Graph.h:136
Graph::activateGraph
void activateGraph()
Definition: Graph.cpp:284
Graph::axisTitleAlignment
int axisTitleAlignment(int axis)
Definition: Graph.cpp:1130
CurveLayout::penWidth
float penWidth
symbol outline width
Definition: Graph.h:89
Graph::setAxisTitlePolicy
void setAxisTitlePolicy(const AxisTitlePolicy &policy)
Definition: Graph.h:237
Graph::waterfallYOffset
int waterfallYOffset()
Definition: Graph.h:801
Graph::setWaterfallXOffset
void setWaterfallXOffset(int)
Definition: Graph.cpp:7401
Graph::isAutoscalingEnabled
bool isAutoscalingEnabled()
Definition: Graph.h:733
Graph::plotPie
PieCurve * plotPie(Table *w, const QString &name, int startRow=0, int endRow=-1)
Used when creating a pie plot.
Definition: Graph.cpp:3373
Graph::saveTicksType
QString saveTicksType()
Definition: Graph.cpp:541
Graph::setCanvasBackgroundImage
void setCanvasBackgroundImage(const QString &fn=QString(), bool update=true)
Definition: Graph.cpp:6051
Graph::d_speed_mode_points
int d_speed_mode_points
Definition: Graph.h:918
Graph::Linear
Definition: Graph.h:132
FrameWidget::Pixel
Definition: FrameWidget.h:44
Graph::axisLabelPrecision
int axisLabelPrecision(int axis)
Definition: Graph.cpp:6535
Graph::Bottom
Definition: Graph.h:131
Graph::setGridOnTop
void setGridOnTop(bool on=true, bool update=true)
Definition: Graph.cpp:7515
Graph::Box
Definition: Graph.h:137
Graph::Right
Definition: Graph.h:131
Graph::setAxisColor
void setAxisColor(int axis, const QColor &color)
Definition: Graph.cpp:1009
Graph::Scale
Scale
Definition: Graph.h:132
Graph::setWaterfallFillColor
void setWaterfallFillColor(const QColor &)
Definition: Graph.cpp:7470
Graph::In
Definition: Graph.h:133
Graph::HorizontalSteps
Definition: Graph.h:136
Graph::NameAndComment
Definition: Graph.h:140
Graph::getMinorTicksType
QList< int > getMinorTicksType()
Definition: Graph.cpp:6503
Graph::selectedCurveLabels
QwtPlotItem * selectedCurveLabels()
Definition: Graph.cpp:2022
Graph::setTickLength
void setTickLength(int minLength, int majLength)
Definition: Graph.cpp:6396
Graph::notifyFontChange
void notifyFontChange(const QFont &f)
Definition: Graph.h:791
Graph::updateCurvesData
void updateCurvesData(Table *w, const QString &yColName)
Definition: Graph.cpp:2176
Graph::axisFormatInfo
QString axisFormatInfo(int axis)
Definition: Graph.cpp:5653
Graph::dataCurve
DataCurve * dataCurve(int index)
Definition: Graph.cpp:3022
Graph::curveTitle
QString curveTitle(int index)
get curve title string by inde (convenience function for scripts)
Definition: Graph.cpp:3050
Graph::showCurve
void showCurve(int index, bool visible=true)
Shows/Hides a curve defined by its index.
Definition: Graph.cpp:5886
Graph::enableDouglasPeukerSpeedMode
void enableDouglasPeukerSpeedMode(double tolerance, int maxPoints=3000)
Definition: Graph.cpp:7322
Graph::modifiedGraph
void modifiedGraph()
Graph::setWaterfallOffset
void setWaterfallOffset(int x, int y, bool update=false)
Definition: Graph.cpp:7421
Graph::grid
Grid * grid()
Definition: Graph.h:172
Graph::showMissingDataGap
void showMissingDataGap(bool on=true, bool update=true)
Definition: Graph.cpp:7530
Graph::openBoxDiagram
BoxCurve * openBoxDiagram(Table *w, const QStringList &l, int fileVersion)
Definition: Graph.cpp:5140
Graph::currentScale
QwtScaleWidget * currentScale()
Definition: Graph.cpp:5915
CurveLayout::aCol
QColor aCol
curve area color
Definition: Graph.h:85
Graph::saveLabelsFormat
QString saveLabelsFormat()
Definition: Graph.cpp:567
Graph::setAutoScale
void setAutoScale()
Definition: Graph.cpp:3723
Graph::enableAxis
void enableAxis(int axis, bool on=true)
Definition: Graph.cpp:475
Graph::setBackgroundColor
void setBackgroundColor(const QColor &color)
Definition: Graph.cpp:4576
Graph::frameColor
QColor frameColor()
Definition: Graph.cpp:6023
Graph::cp
CanvasPicker * cp
Definition: Graph.h:871
Graph::setYAxisTitle
void setYAxisTitle(const QString &text)
Definition: Graph.cpp:1102
Graph::showEvent
void showEvent(QShowEvent *event)
Definition: Graph.cpp:6650
Graph::loadErrorBars
void loadErrorBars(QList< ErrorBarsCurve * > errBars, QList< int > mcIndexes)
Used when restoring project files.
Definition: Graph.cpp:3313
Graph::backgroundPixmap
QPixmap backgroundPixmap()
Definition: Graph.h:636
Graph::setCurveFullRange
void setCurveFullRange(int curveIndex)
Definition: Graph.cpp:5677
Graph::spectrogram
Spectrogram * spectrogram(Matrix *m)
Returns a pointer to the spectrogram which data source is matrix m (the pointer can be NULL) ...
Definition: Graph.cpp:5318
Graph::setCanvasSize
void setCanvasSize(const QSize &size)
Adjust plot content to its canvas size.
Definition: Graph.cpp:6619
Graph::updatePlot
void updatePlot()
Definition: Graph.cpp:3750
Graph::isPrinting
bool isPrinting()
Definition: Graph.h:220
PlotToolInterface.h
PlotToolInterface
Definition: PlotToolInterface.h:60
Graph::setAxisFormula
void setAxisFormula(int axis, const QString &)
Definition: Graph.cpp:6016
Graph::currentFontChanged
void currentFontChanged(const QFont &)
Graph::drawAxesBackbone
bool drawAxesBackbone
Definition: Graph.h:883
PlotCurve
Abstract 2D plot curve class.
Definition: PlotCurve.h:41
Graph::LineSymbols
Definition: Graph.h:135
Graph::loadAxesOptions
void loadAxesOptions(const QStringList &lst)
used when opening a project file
Definition: Graph.cpp:2269
Graph::selectedGraph
void selectedGraph(Graph *)
Graph::currentColorChanged
void currentColorChanged(const QColor &)
Graph::Image
Definition: Graph.h:134
Graph::drawLineEnded
void drawLineEnded(bool)
ScalePicker
Handles user interaction with a QwtScaleWidget.
Definition: ScalePicker.h:41
Graph::setCanvasSize
void setCanvasSize(int w, int h)
Convenience function for scripts.
Definition: Graph.h:208
Graph::penStyleName
static QString penStyleName(Qt::PenStyle style)
Definition: Graph.cpp:4587
Graph::copyEnrichments
void copyEnrichments(Graph *g)
Definition: Graph.cpp:4870
Graph::saveToString
QString saveToString(bool saveAsTemplate=false)
Definition: Graph.cpp:4345
Graph::enableAutoscaling
void enableAutoscaling(bool on=true)
Definition: Graph.h:734
Graph::plotItemsList
QStringList plotItemsList()
Returns the names of all plot items, including spectrograms, as a string list.
Definition: Graph.cpp:1549
Graph::axesBackbones
bool axesBackbones()
Definition: Graph.h:593
Graph::d_waterfall_offset_y
int d_waterfall_offset_y
Definition: Graph.h:926
Graph::addTexFormula
TexWidget * addTexFormula(const QString &s, const QPixmap &pix)
Definition: Graph.cpp:6959
Graph::d_range_selector
QPointer< RangeSelectorTool > d_range_selector
The current curve selection, or NULL if none is active.
Definition: Graph.h:899
Graph::selectedScale
QwtScaleWidget * selectedScale()
Definition: Graph.cpp:5905
Graph::saveScale
QString saveScale()
Definition: Graph.cpp:2408
Graph::restoreSpectrogram
void restoreSpectrogram(ApplicationWindow *app, const QStringList &lst)
Restores a spectrogram. Used when opening a project file.
Definition: Graph.cpp:5378
Graph::VerticalBars
Definition: Graph.h:135
Graph::Axis
Axis
Definition: Graph.h:131
Graph::autoScaleFonts
bool autoScaleFonts
Definition: Graph.h:882
Graph::closedGraph
void closedGraph()
Graph::setAxisTitleString
void setAxisTitleString(int axis, const QString &text)
Definition: Graph.cpp:1294
ScaleDraw::ScaleType
ScaleType
Definition: ScaleDraw.h:45
Graph::plotItem
QwtPlotItem * plotItem(int index)
get plotted item by index
Definition: Graph.cpp:3000
Graph::saveTickLabelsSpace
QString saveTickLabelsSpace()
Definition: Graph.cpp:600
Graph::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *)
Definition: Graph.cpp:7276
Graph::setAxisStep
void setAxisStep(int axis, double step)
Definition: Graph.h:412
Graph::updateErrorBars
void updateErrorBars(ErrorBarsCurve *er, bool xErr, double width, int cap, const QColor &c, bool plus, bool minus, bool through)
Definition: Graph.cpp:3248
Graph::rgbaName
static QString rgbaName(const QColor &color)
Definition: Graph.cpp:2568
Graph::zoomed
void zoomed(const QwtDoubleRect &)
Definition: Graph.cpp:3996
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
BoxCurve
Box curve.
Definition: BoxCurve.h:37
Graph::setScaleTitle
void setScaleTitle(int axis, const QString &text)
TODO: eliminate this function in version 0.9.1 (used only when restoring project files) ...
Definition: Graph.cpp:1160
Graph::setMinorTicksType
void setMinorTicksType(int axis, int type)
Definition: Graph.cpp:6519
Graph::setAutoscaleFonts
void setAutoscaleFonts(bool on=true)
Definition: Graph.h:737
Graph::clearAxisTitle
void clearAxisTitle()
Definition: Graph.cpp:4698
Graph::setSelectedArrow
void setSelectedArrow(ArrowMarker *mrk, bool add=false)
Set the selected arrow.
Definition: Graph.cpp:418
Graph::isPiePlot
bool isPiePlot()
Returns true if this Graph is a pie plot, false otherwise.
Definition: Graph.cpp:3322
Graph::saveAxesLabelsType
QString saveAxesLabelsType()
Definition: Graph.cpp:521
ScaledFontsPrintFilter
Definition: Graph.h:930
Graph::d_min_tick_length
int d_min_tick_length
Axes tick lengths.
Definition: Graph.h:908
RangeSelectorTool
Definition: RangeSelectorTool.h:57
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:891
Graph::setCanvasGeometry
void setCanvasGeometry(int x, int y, int w, int h)
Convenience function for scripts.
Definition: Graph.h:205
Graph::drawItems
virtual void drawItems(QPainter *painter, const QRect &rect, const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const
Definition: Graph.cpp:6106
Graph::saveBackgroundImage
QString saveBackgroundImage()
Definition: Graph.cpp:4432
Graph::copyImage
void copyImage()
Definition: Graph.cpp:1560
Graph::saveCurveLayout
QString saveCurveLayout(int index)
Definition: Graph.cpp:2576
Graph::showFitResults
void showFitResults(const QString &)
Graph::d_disable_curve_antialiasing
bool d_disable_curve_antialiasing
Definition: Graph.h:880
Graph::TableLegend
Definition: Graph.h:139
Graph::d_curves
QList< QwtPlotItem * > d_curves
List storing pointers to the curves on the plot.
Definition: Graph.h:875
Graph::enableRangeSelectors
bool enableRangeSelectors(const QObject *status_target=NULL, const char *status_slot="")
Definition: Graph.cpp:5236
Graph::None
Definition: Graph.h:134
Graph::createTable
void createTable(const QString &curveName)
Provided for convenience in scripts.
Definition: Graph.cpp:4311
Graph::d_zoomer
QwtPlotZoomer * d_zoomer[2]
Definition: Graph.h:868
Graph::setAntialiasing
void setAntialiasing(bool on=true, bool update=true)
Enables/Disables antialiasing of plot items.
Definition: Graph.cpp:5554
Graph::Line
Definition: Graph.h:135
Graph::initFonts
void initFonts(const QFont &scaleTitleFnt, const QFont &numbersFnt)
Definition: Graph.cpp:458
Graph::textsList
QList< LegendWidget * > textsList()
Definition: Graph.cpp:324
Graph::ColorMap
Definition: Graph.h:137
Graph::saveScaleTitles
QString saveScaleTitles()
Definition: Graph.cpp:2480
Graph::axisColor
QColor axisColor(int axis)
Definition: Graph.cpp:1057
Graph::showAxisTitleMenu
void showAxisTitleMenu()
Definition: Graph.cpp:4720
Graph::initTitle
void initTitle(bool on, const QFont &fnt)
Definition: Graph.cpp:2065
Graph::d_missing_data_gap
bool d_missing_data_gap
Flag telling if the curves line should be connected across missing data.
Definition: Graph.h:889
Graph::TableName
Definition: Graph.h:139
ScaleDraw::ShowTicksPolicy
ShowTicksPolicy
Definition: ScaleDraw.h:48
Graph::pieLegendText
QString pieLegendText()
Definition: Graph.cpp:2157
Graph::setCurveLineColor
void setCurveLineColor(int curveIndex, int colorIndex)
Definition: Graph.cpp:5687
Graph::setLabelsDayFormat
void setLabelsDayFormat(int axis, int format)
Definition: Graph.cpp:841
Graph::setAxisLabelRotation
void setAxisLabelRotation(int axis, int rotation)
Definition: Graph.cpp:950
Graph::MarkerType
MarkerType
Definition: Graph.h:134
Graph::exportToFile
void exportToFile(const QString &fileName)
Provided for convenience in scripts.
Definition: Graph.cpp:1619
Graph::exportEMF
void exportEMF(const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Definition: Graph.cpp:1882
Graph::copy
void copy(Graph *g)
Definition: Graph.cpp:4888
Graph::VerticalSteps
Definition: Graph.h:137
Graph::~Graph
~Graph()
Definition: Graph.cpp:5529
Graph::drawLineActive
bool drawLineActive()
Definition: Graph.h:501
Graph::saveFonts
QString saveFonts()
Definition: Graph.cpp:2346
Graph::addErrorBars
ErrorBarsCurve * addErrorBars(const QString &xColName, const QString &yColName, Table *errTable, const QString &errColName, int type=1, double width=1, int cap=8, const QColor &color=QColor(Qt::black), bool through=true, bool minus=true, bool plus=true)
Definition: Graph.cpp:3287
Graph::axisType
ScaleDraw::ScaleType axisType(int axis)
Definition: Graph.cpp:492
Graph::d_maj_tick_length
int d_maj_tick_length
Definition: Graph.h:908
Graph::multiLayer
MultiLayer * multiLayer() const
Returns a pointer to the parent MultiLayer object.
Definition: Graph.cpp:265
Graph::setCurveLineStyle
void setCurveLineStyle(int curveIndex, Qt::PenStyle style)
Definition: Graph.cpp:5711
Graph::activeText
LegendWidget * activeText()
Definition: Graph.cpp:7018
Graph::boundingRect
QRect boundingRect()
Definition: Graph.cpp:7047
Graph::selectedCanvas
void selectedCanvas(Graph *)
Graph::arrowMarkerSelected
bool arrowMarkerSelected()
Definition: Graph.cpp:1986
Graph::d_axis_titles
QStringList d_axis_titles
Definition: Graph.h:921
Graph::setWaterfallYOffset
void setWaterfallYOffset(int)
Definition: Graph.cpp:7411
Graph::Log2
Definition: Graph.h:132
Graph::setAxisTitle
void setAxisTitle(int axis, const QString &text)
Definition: Graph.cpp:1302
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:897
Graph::d_canvas_bkg_path
QString d_canvas_bkg_path
Definition: Graph.h:923
Graph::showPlotDialog
void showPlotDialog(int)
Graph::focusNextPrevChild
bool focusNextPrevChild(bool next)
Definition: Graph.cpp:5603
Graph::selectedArrow
ArrowMarker * selectedArrow()
Definition: Graph.h:528
Graph::setWaterfallSideLines
void setWaterfallSideLines(bool on=true)
Definition: Graph.cpp:7452
Graph::deselectMarker
void deselectMarker()
Reset any selection states on markers.
Definition: Graph.cpp:290
Graph::isCurveAntialiasingEnabled
bool isCurveAntialiasingEnabled(QwtPlotItem *it)
Definition: Graph.cpp:5570
Graph::d_active_enrichment
FrameWidget * d_active_enrichment
Pointer to the currently selected text/legend.
Definition: Graph.h:904
Graph::disableTools
void disableTools()
Definition: Graph.cpp:5199
Graph::validCurvesDataSize
bool validCurvesDataSize()
Definition: Graph.cpp:5510
Graph::Histogram
Definition: Graph.h:136
Graph::d_grid_on_top
bool d_grid_on_top
Flag telling if the grid should be drawn on top of data.
Definition: Graph.h:887
Graph::axisDblClicked
void axisDblClicked(int)
Graph::setCanvasFrame
void setCanvasFrame(int width=1, const QColor &color=QColor(Qt::black))
Definition: Graph.cpp:2232
Graph::invertScale
void invertScale(int axis)
Set axis scale.
Definition: Graph.cpp:1386
Graph::setCurrentFont
void setCurrentFont(const QFont &f)
Definition: Graph.cpp:5928
Graph::CurveType
CurveType
Definition: Graph.h:135
Graph::setFrame
void setFrame(int width=1, const QColor &color=Qt::black)
Definition: Graph.cpp:4564
Graph::getMajorTicksType
QList< int > getMajorTicksType()
Definition: Graph.cpp:6483
Graph::loadAxesLinewidth
void loadAxesLinewidth(int width)
used when opening a project file
Definition: Graph.cpp:2327
Graph::hideSelectedAxis
void hideSelectedAxis()
Definition: Graph.cpp:4767
Graph::setAxisMargin
void setAxisMargin(int axis, int margin)
Definition: Graph.cpp:485
Graph::saveCanvas
QString saveCanvas()
Definition: Graph.cpp:2332