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