A 2D-plotting widget. More...
#include <Graph.h>
Public Types | |
enum | Axis { Left, Right, Bottom, Top } |
enum | AxisTitlePolicy { Default, ColName, ColComment, NameAndComment } |
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 { ColumnName, ColumnComment, TableName, TableLegend } |
enum | MarkerType { None = -1, Text = 0, Arrow = 1, Image = 2 } |
enum | Scale { Linear, Log10, Ln, Log2, Reciprocal, Probability, Logit } |
enum | Ticks { NoTicks = 0, Out = 1, InOut = 2, In = 3 } |
Public Slots | |
void | activateGraph () |
bool | addCurves (Table *w, const QStringList &names, int style=0, double lWidth=1, int sSize=3, int startRow=0, int endRow=-1) |
void | addFitCurve (QwtPlotCurve *c) |
QwtHistogram * | 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 | clearAxisTitle () |
void | copy (Graph *g) |
void | copyAxisTitle () |
void | copyCurves (Graph *g) |
void | copyTitle () |
void | createTable (const QwtPlotCurve *curve) |
void | createTable (const QString &curveName) |
Provided for convenience in scripts. | |
PlotCurve * | curve (int index) |
get curve by index | |
PlotCurve * | curve (const QString &title) |
get curve by name | |
int | curveCount () |
int | curveIndex (const QString &title) |
map curve title to index | |
int | curveIndex (QwtPlotItem *c) |
Map curve pointer to index. | |
QStringList | curveNamesList () |
Returns the names of all the QwtPlotCurve items on the plot, as a string list. | |
QString | curveTitle (int index) |
get curve title string by inde (convenience function for scripts) | |
void | cutAxisTitle () |
void | cutTitle () |
DataCurve * | dataCurve (int index) |
void | deleteFitCurves () |
void | disableTools () |
void | enableAutoscaling (bool on=true) |
bool | enableRangeSelectors (const QObject *status_target=NULL, const char *status_slot="") |
void | enableTextEditor () |
QList< QwtPlotCurve * > | fitCurvesList () |
static Qt::PenStyle | getPenStyle (const QString &s) |
static Qt::PenStyle | getPenStyle (int style) |
void | hideSelectedAxis () |
void | insertCurve (QwtPlotItem *c) |
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) |
void | insertPlotItem (QwtPlotItem *i, int type) |
void | invertScale (int axis) |
Set axis scale. | |
bool | isAutoscalingEnabled () |
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 | |
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. | |
int | range (const QString &curveTitle, double *start, double *end) |
int | range (QwtPlotCurve *c, double *start, double *end) |
bool | rangeSelectorsEnabled () |
QPointer< RangeSelectorTool > | rangeSelectorTool () |
void | removeAxisTitle () |
void | removeCurve (QwtPlotItem *it) |
void | removeCurve (int index) |
Removes a curve defined by its index. | |
void | removeCurve (const QString &s) |
Removes a curve defined by its title string s. | |
void | removeCurves (const QString &s) |
Removes all curves defined by the title/plot association string s. | |
QwtHistogram * | 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 on=true) |
void | setBarsGap (int curve, int gapPercent, int offset) |
Used for VerticalBars, HorizontalBars and Histograms. | |
void | setCanvasCoordinates (const QRectF &) |
void | setCurrentFont (const QFont &f) |
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) |
void | showAxisContextMenu (int axis) |
void | showAxisDialog () |
void | showAxisTitleMenu () |
void | showCurve (int index, bool visible=true) |
Shows/Hides a curve defined by its index. | |
void | showGrid () |
Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales. | |
void | showGrid (int axis) |
Convenience function enabling the grid for a user defined axis. | |
void | showGrids () |
static void | showPlotErrorMessage (QWidget *parent, const QStringList &emptyColumns) |
void | showScaleDialog () |
void | showTitleContextMenu () |
Spectrogram * | spectrogram (Matrix *m) |
Returns a pointer to the spectrogram which data source is matrix m (the pointer can be NULL). | |
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 changeFormat=false) |
bool | validCurvesDataSize () |
int | visibleCurves () |
Pie Curves | |
bool | isPiePlot () |
Returns true if this Graph is a pie plot, false otherwise. | |
QwtPieCurve * | plotPie (Table *w, const QString &name, int startRow=0, int endRow=-1) |
Used when creating a pie plot. | |
QwtPieCurve * | 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) |
Used when restoring a pie plot from a project file. | |
void | removePie () |
QString | pieLegendText () |
QString | savePieCurveLayout () |
Customizing plot curves | |
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 () |
Output: Copy/Export/Print | |
void | print () |
void | copyImage () |
QPixmap | graphPixmap (const QSize &size=QSize(), double scaleFontsFactor=1.0, bool transparent=false) |
void | exportToFile (const QString &fileName) |
Provided for convenience in scripts. | |
void | exportSVG (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) |
void | exportVector (const QString &fileName, 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) |
void | draw (QPaintDevice *, const QSize &size, double fontsFactor=1.0) |
static QSize | customPrintSize (const QSizeF &customSize, int unit, int dpi) |
bool | isExportingTeX () |
void | setTeXExportingMode (bool on=true) |
bool | escapeTeXStrings () |
void | setEscapeTeXStringsMode (bool on=true) |
Error Bars | |
QwtErrorPlotCurve * | 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) |
QwtErrorPlotCurve * | 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) |
void | updateErrorBars (QwtErrorPlotCurve *er, bool xErr, double width, int cap, const QColor &c, bool plus, bool minus, bool through) |
DataCurve * | masterCurve (QwtErrorPlotCurve *er) |
Returns a valid master curve for the error bars curve. | |
DataCurve * | masterCurve (const QString &xColName, const QString &yColName) |
Returns a valid master curve for a plot association. | |
Event Handlers | |
void | contextMenuEvent (QContextMenuEvent *) |
void | closeEvent (QCloseEvent *e) |
bool | focusNextPrevChild (bool next) |
Curves Layout | |
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) |
Tries to guess not already used curve color and symbol style. | |
Zoom | |
void | zoomed (const QwtDoubleRect &) |
void | zoom (bool on) |
void | zoomOut () |
bool | zoomOn () |
Saving to File | |
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 () |
Texts | |
LegendWidget * | addText (LegendWidget *) |
LegendWidget * | insertText (const QStringList &list, int fileVersion) |
Used when opening a project file. | |
LegendWidget * | addTimeStamp () |
void | removeLegendItem (int index) |
void | insertLegend (const QStringList &lst, int fileVersion) |
LegendWidget * | newLegend (const QString &text=QString()) |
QString | legendText (bool layerSpec=false) |
Creates a new legend text using the curves titles. | |
Obsolete functions provided to keep existing Python scripts working | |
LegendWidget * | legend () |
void | setLegend (const QString &) |
void | removeLegend () |
Line Markers | |
ArrowMarker * | addArrow (ArrowMarker *mrk) |
void | remove (ArrowMarker *arrow) |
void | addArrow (QStringList list, int fileVersion) |
Used when opening a project file. | |
QList< ArrowMarker * > | arrowsList () |
int | numArrows () |
void | drawLine (bool on, bool arrow=false) |
Draws a line/arrow depending on the value of "arrow". | |
bool | drawArrow () |
bool | drawLineActive () |
bool | arrowMarkerSelected () |
Image Markers | |
ImageWidget * | addImage (ImageWidget *i) |
ImageWidget * | addImage (const QString &fileName) |
ImageWidget * | addImage (const QImage &image) |
void | insertImageMarker (const QStringList &lst, int fileVersion) |
bool | imageMarkerSelected () |
Common to all Markers | |
void | removeMarker () |
void | updateMarkersBoundingRect (bool rescaleEvent=true) |
Keep the markers on screen each time the scales are modified by adding/removing curves. | |
void | setSelectedArrow (ArrowMarker *mrk, bool add=false) |
Set the selected arrow. | |
ArrowMarker * | selectedArrow () |
bool | markerSelected () |
void | deselectMarker () |
Reset any selection states on markers. | |
Axes | |
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 | setAxisTitle (int axis, const QString &text) |
void | updateAxesTitles () |
void | setScaleTitle (int axis, const QString &text) |
TODO: eliminate this function in version 0.9.1 (used only when restoring project files). | |
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) |
used when opening a project file | |
void | drawAxesBackbones (bool yes) |
bool | axesBackbones () |
void | loadAxesOptions (const QStringList &lst) |
used when opening a project file | |
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) |
Used for restoring project files. | |
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) |
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 &) |
Canvas Frame | |
void | setCanvasFrame (int width=1, const QColor &color=QColor(Qt::black)) |
QColor | canvasFrameColor () |
int | canvasFrameWidth () |
Plot Title | |
void | setTitleFont (const QFont &fnt) |
void | setTitleColor (const QColor &c) |
void | setTitleAlignment (int align) |
bool | titleSelected () |
void | selectTitle (bool select=true) |
void | clearTitle () |
Sets the title to an "almost empty" string: " ", thus keeping the QwtText object visible. | |
void | removeTitle () |
Sets title to an empty string and hides the text label. | |
void | initTitle (bool on, const QFont &fnt) |
Modifing insertCurve Data | |
QString | selectedCurveTitle () |
Border and background | |
void | setFrame (int width=1, const QColor &color=Qt::black) |
void | setBackgroundColor (const QColor &color) |
User-defined Functions | |
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) |
Used when reading from a project file with version < 0.9.5. | |
QString | generateFunctionName (const QString &name=tr("F")) |
Returns an unique function name. | |
Vector Curves | |
VectorCurve * | plotVectorCurve (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()) |
Box Plots | |
BoxCurve * | openBoxDiagram (Table *w, const QStringList &l, int fileVersion) |
void | plotBoxDiagram (Table *w, const QStringList &names, int startRow=0, int endRow=-1) |
Resizing | |
void | resizeEvent (QResizeEvent *e) |
void | scaleFonts (double factor) |
Signals | |
void | axisDblClicked (int) |
void | axisDivChanged (Graph *, int) |
void | closedGraph () |
void | currentFontChanged (const QFont &) |
void | cursorInfo (const QString &) |
void | dataRangeChanged () |
void | drawLineEnded (bool) |
void | enableTextEditor (Graph *) |
void | hiddenPlot (QWidget *) |
void | modifiedGraph () |
void | selectedGraph (Graph *) |
void | selectionChanged (SelectionMoveResizer *) |
void | showAxisDialog (int) |
void | showAxisTitleDialog () |
void | showContextMenu () |
void | showCurveContextMenu (QwtPlotItem *) |
void | showFitResults (const QString &) |
void | showMarkerPopupMenu () |
void | showPlotDialog (int) |
void | updatedLayout (Graph *) |
void | viewLineDialog () |
void | viewTitleDialog () |
Public Member Functions | |
FrameWidget * | activeEnrichment () |
LegendWidget * | activeText () |
PlotToolInterface * | activeTool () const |
Return the active tool, or NULL if none is active. | |
FrameWidget * | add (FrameWidget *fw, bool copy=true) |
void | addLegendItem () |
TexWidget * | addTexFormula (const QString &s, const QPixmap &pix) |
int | axesLinewidth () const |
void | axisLabelFormat (int axis, char &f, int &prec) const |
int | axisLabelFormat (int axis) |
int | axisLabelPrecision (int axis) |
AxisTitlePolicy | axisTitlePolicy () |
QRect | boundingRect () |
void | changeCurveIndex (int fromIndex, int toIndex) |
QwtPlotItem * | closestCurve (int xpos, int ypos, int &dist, int &point) |
QList< QwtPlotItem * > | curvesList () |
void | deselect (QWidget *) |
void | deselect () |
void | enableDouglasPeukerSpeedMode (double tolerance, int maxPoints) |
void | enablePanningMagnifier (bool on=true, int mode=0) |
QList< FrameWidget * > | enrichmentsList () |
QColor | frameColor () |
double | getDouglasPeukerTolerance () |
QList< int > | getMajorTicksType () |
QList< int > | getMinorTicksType () |
Graph (int x=0, int y=0, int width=500, int height=400, QWidget *parent=0, Qt::WFlags f=0) | |
Grid * | grid () |
bool | hasActiveTool () |
Returns true if a plot/data tool is enabled. | |
bool | hasPanningMagnifierEnabled () |
bool | hasSeletedItems () |
QList< FrameWidget * > | increasingAreaEnrichmentsList () |
void | insertMarker (QwtPlotMarker *m) |
bool | isPrinting () |
QwtPlotMagnifier * | magnifyTool () |
int | majorTickLength () const |
int | minorTickLength () const |
MultiLayer * | multiLayer () |
Returns a pointer to the parent MultiLayer object. | |
const QColor & | paletteBackgroundColor () const |
void | print (QPainter *, const QRect &rect, const QwtPlotPrintFilter &=QwtPlotPrintFilter()) |
Paint the plot into a given rectangle. Paint the contents of a QwtPlot instance into a given rectangle (Qwt modified code). | |
void | raiseEnrichements () |
void | remove (FrameWidget *) |
void | restoreCurveLabels (int curveID, const QStringList &lst) |
Used when restoring DataCurve curveID from a project file. | |
void | select (QWidget *l, bool add=false) |
QwtPlotItem * | selectedCurveLabels () |
QPointer< SelectionMoveResizer > | selectionMoveResizer () |
void | setActiveText (LegendWidget *l) |
void | setActiveTool (PlotToolInterface *tool) |
Change the active tool, deleting the old one if it exists. | |
void | setAxesLinewidth (int width) |
void | setAxisTitlePolicy (const AxisTitlePolicy &policy) |
void | setCanvasGeometry (int x, int y, int w, int h) |
Convenience function for scripts. | |
void | setCanvasGeometry (const QRect &canvasRect) |
Adjust plot content to its canvas size. | |
void | setCanvasSize (const QSize &size) |
Adjust plot content to its canvas size. | |
void | setCanvasSize (int w, int h) |
Convenience function for scripts. | |
void | setMajorTicksType (int axis, int type) |
void | setMinorTicksType (int axis, int type) |
void | setSynchronizedScaleDivisions (bool on) |
void | setTickLength (int minLength, int majLength) |
int | speedModeMaxPoints () |
QList< LegendWidget * > | textsList () |
void | updateCurveLabels () |
void | updateLayout () |
Adjust plot content to its current size. Must be reimplemented because the base implementation adds a mask causing an ugly drawing artefact. | |
~Graph () | |
Static Public Member Functions | |
static QString | escapeTeXSpecialCharacters (const QString &) |
static QString | texSuperscripts (const QString &) |
Private Slots | |
void | selectorDeleted () |
Private Member Functions | |
QwtDoubleInterval | axisBoundingInterval (int axis) |
Finds bounding interval of the plot data. | |
void | deselectCurves () |
void | dragEnterEvent (QDragEnterEvent *) |
void | drawBreak (QPainter *painter, const QRect &rect, const QwtScaleMap &map, int axis) const |
void | drawInwardTicks (QPainter *painter, const QRect &rect, const QwtScaleMap &map, int axis, bool min, bool maj) const |
virtual void | drawItems (QPainter *painter, const QRect &rect, const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const |
void | dropEvent (QDropEvent *) |
QString | parseAxisTitle (int axis) |
void | printCanvas (QPainter *painter, const QRect &canvasRect, const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const |
void | printFrame (QPainter *painter, const QRect &rect) const |
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). | |
void | showEvent (QShowEvent *event) |
QList< FrameWidget * > | stackingOrderEnrichmentsList () |
Private Attributes | |
bool | autoScaleFonts |
CanvasPicker * | cp |
FrameWidget * | d_active_enrichment |
Pointer to the currently selected text/legend. | |
PlotToolInterface * | d_active_tool |
The currently active tool, or NULL for default (pointer). | |
bool | d_antialiasing |
Render hint for plot items. | |
bool | d_auto_scale |
Flag indicating if the axes limits should be changed in order to show all data each time a curva data change occurs. | |
AxisTitlePolicy | d_axis_title_policy |
QStringList | d_axis_titles |
QList< QwtPlotItem * > | d_curves |
List storing pointers to the curves on the plot. | |
double | d_Douglas_Peuker_tolerance |
QList< FrameWidget * > | d_enrichments |
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. | |
Grid * | d_grid |
Pointer to the grid. | |
bool | d_is_exporting_tex |
bool | d_is_printing |
Flag telling if we are performing a print operation. | |
QList< ArrowMarker * > | d_lines |
Arrows/lines on plot. | |
QwtPlotMagnifier * | d_magnifier |
int | d_maj_tick_length |
QPointer< SelectionMoveResizer > | d_markers_selector |
The markers selected for move/resize operations or NULL if none are selected. | |
int | d_min_tick_length |
Axes tick lengths. | |
QwtPlotPanner * | d_panner |
PlotToolInterface * | d_peak_fit_tool |
QPointer< RangeSelectorTool > | d_range_selector |
The current curve selection, or NULL if none is active. | |
ArrowMarker * | d_selected_arrow |
Pointer to the currently selected line/image. | |
int | d_speed_mode_points |
bool | d_synchronize_scales |
bool | d_tex_escape_strings |
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 |
ScalePicker * | scalePicker |
TitlePicker * | titlePicker |
A 2D-plotting widget.
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.
Merge with Plot and CanvasPicker. Think about merging in TitlePicker and ScalePicker. On the other hand, things like range selection, peak selection or (re)moving data points could be split out into tool classes like QwtPlotZoomer or SelectionMoveResizer.
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 ]
enum Graph::Axis |
enum Graph::CurveType |
enum Graph::MarkerType |
enum Graph::Scale |
enum Graph::Ticks |
Graph::Graph | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | width = 500 , |
|||
int | height = 400 , |
|||
QWidget * | parent = 0 , |
|||
Qt::WFlags | f = 0 | |||
) |
References activateGraph(), autoScaleFonts, axisDblClicked(), cp, d_active_enrichment, d_active_tool, d_antialiasing, d_auto_scale, d_axis_title_policy, d_axis_titles, d_Douglas_Peuker_tolerance, d_grid, d_is_exporting_tex, d_is_printing, d_magnifier, d_maj_tick_length, d_min_tick_length, d_panner, d_peak_fit_tool, d_range_selector, d_selected_arrow, d_speed_mode_points, d_synchronize_scales, d_tex_escape_strings, d_user_step, d_zoomer, deselectMarker(), drawArrowOn, drawAxesBackbone, drawLineOn, enableTextEditor(), modifiedGraph(), removeTitle(), scalePicker, selectTitle(), showAxisContextMenu(), showAxisTitleMenu(), showMarkerPopupMenu(), showPlotDialog(), showTitleContextMenu(), titlePicker, updateAxesTitles(), viewLineDialog(), zoom(), and zoomed().
Graph::~Graph | ( | ) |
References cp, d_active_tool, d_enrichments, d_magnifier, d_markers_selector, d_panner, d_peak_fit_tool, d_range_selector, scalePicker, and titlePicker.
void Graph::activateGraph | ( | ) | [slot] |
References selectedGraph().
Referenced by Graph(), FrameWidget::mousePressEvent(), and ScalePicker::mouseRightClicked().
FrameWidget* Graph::activeEnrichment | ( | ) | [inline] |
LegendWidget * Graph::activeText | ( | ) |
References d_active_enrichment.
Referenced by ApplicationWindow::enableTextEditor(), ApplicationWindow::showEnrichementDialog(), and TextEditor::TextEditor().
PlotToolInterface* Graph::activeTool | ( | ) | const [inline] |
Return the active tool, or NULL if none is active.
References d_active_tool.
Referenced by ApplicationWindow::clearSelection(), copy(), ApplicationWindow::copySelection(), ApplicationWindow::custom2DPlotTools(), ApplicationWindow::cutSelection(), CanvasPicker::eventFilter(), SubtractLineTool::finalize(), MultiPeakFitTool::finalize(), ApplicationWindow::openGraph(), ApplicationWindow::pasteSelection(), MultiLayer::removeLayer(), MultiLayer::setNumLayers(), ApplicationWindow::showCurveContextMenu(), and ApplicationWindow::showCurveWorksheet().
FrameWidget * Graph::add | ( | FrameWidget * | fw, | |
bool | copy = true | |||
) |
References FrameWidget::attachPolicy(), d_active_enrichment, d_enrichments, FrameWidget::isOnTop(), FrameWidget::setAttachPolicy(), and FrameWidget::setOnTop().
Referenced by AddWidgetTool::addEllipse(), AddWidgetTool::addEquation(), AddWidgetTool::addRectangle(), AddWidgetTool::addText(), copy(), ImportOPJ::importGraphs(), importPicture(), importRectangle(), ApplicationWindow::pasteSelection(), PieLabel::PieLabel(), RectangleWidget::restore(), LegendWidget::restore(), EllipseWidget::restore(), and ApplicationWindow::zoomRectanglePlot().
ArrowMarker * Graph::addArrow | ( | ArrowMarker * | mrk | ) | [slot] |
References ArrowMarker::attachPolicy(), ArrowMarker::color(), d_lines, ArrowMarker::drawEndArrow(), ArrowMarker::drawStartArrow(), ArrowMarker::endPointCoord(), ArrowMarker::fillArrowHead(), ArrowMarker::filledArrowHead(), ArrowMarker::hasEndArrow(), ArrowMarker::hasStartArrow(), ArrowMarker::headAngle(), ArrowMarker::headLength(), insertMarker(), ArrowMarker::setAttachPolicy(), ArrowMarker::setBoundingRect(), ArrowMarker::setColor(), ArrowMarker::setHeadAngle(), ArrowMarker::setHeadLength(), ArrowMarker::setStyle(), ArrowMarker::setWidth(), ArrowMarker::startPointCoord(), ArrowMarker::style(), and ArrowMarker::width().
Referenced by copy(), CanvasPicker::eventFilter(), ImportOPJ::importGraphs(), importLine(), ApplicationWindow::openGraph(), and ApplicationWindow::pasteSelection().
void Graph::addArrow | ( | QStringList | list, | |
int | fileVersion | |||
) | [slot] |
Used when opening a project file.
References d_lines, ArrowMarker::drawEndArrow(), ArrowMarker::drawStartArrow(), ArrowMarker::fillArrowHead(), getPenStyle(), insertMarker(), ArrowMarker::setAttachPolicy(), ArrowMarker::setBoundingRect(), ArrowMarker::setColor(), ArrowMarker::setEndPoint(), ArrowMarker::setHeadAngle(), ArrowMarker::setHeadLength(), ArrowMarker::setStartPoint(), ArrowMarker::setStyle(), and ArrowMarker::setWidth().
bool Graph::addCurves | ( | Table * | w, | |
const QStringList & | names, | |||
int | style = 0 , |
|||
double | lWidth = 1 , |
|||
int | sSize = 3 , |
|||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
References addErrorBars(), addLegendItem(), Box, Table::colIndex(), Table::colName(), Table::colPlotDesignation(), Table::colX(), Table::colY(), d_zoomer, Histogram, QwtErrorPlotCurve::Horizontal, initCurveLayout(), insertCurve(), QwtHistogram::loadData(), CurveLayout::lWidth, masterCurve(), QwtErrorPlotCurve::masterCurve(), Pie, plotBoxDiagram(), plotPie(), plotVectorCurve(), QwtErrorPlotCurve::setColor(), DataCurve::setLabelsColumnName(), CurveLayout::sSize, PlotCurve::type(), updateAxesTitles(), updateCurveLayout(), updateSecondaryAxis(), VectXYAM, VectXYXY, Table::xErr, and Table::yErr.
Referenced by dropEvent(), ImportOPJ::importGraphs(), ApplicationWindow::multilayerPlot(), and ApplicationWindow::plotImageProfiles().
QwtErrorPlotCurve * Graph::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 | |||
) | [slot] |
References QwtErrorPlotCurve::drawMinusSide(), QwtErrorPlotCurve::drawPlusSide(), QwtErrorPlotCurve::drawThroughSymbol(), insertCurve(), masterCurve(), QwtErrorPlotCurve::setCapLength(), QwtErrorPlotCurve::setColor(), QwtErrorPlotCurve::setMasterCurve(), QwtErrorPlotCurve::setWidth(), and updatePlot().
Referenced by addCurves(), addErrorBars(), ApplicationWindow::defineErrorBars(), ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), and PlotWizard::plot2D().
QwtErrorPlotCurve * Graph::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 | |||
) | [slot] |
References addErrorBars(), d_curves, and ErrorBars.
void Graph::addFitCurve | ( | QwtPlotCurve * | c | ) | [slot] |
References d_fit_curves.
Referenced by MultiPeakFit::generateFitCurve(), Fit::generateFitCurve(), Fit::insertFitFunctionCurve(), and MultiPeakFit::insertPeakFunctionCurve().
FunctionCurve * 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] |
References addLegendItem(), ColorBox::defaultColor(), generateFunctionName(), guessUniqueCurveLayout(), insertCurve(), FunctionCurve::loadData(), modifiedGraph(), FunctionCurve::setFormulas(), FunctionCurve::setRange(), FunctionCurve::setVariable(), and updatePlot().
Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), BaselineDialog::createBaseline(), ImportOPJ::importGraphs(), insertFunctionCurve(), ApplicationWindow::newFunctionPlot(), and Integration::output().
QwtHistogram * Graph::addHistogram | ( | Matrix * | m | ) | [slot] |
Add a matrix histogram to the graph.
References addLegendItem(), insertCurve(), QwtHistogram::loadData(), and updatePlot().
Referenced by CurvesDialog::addCurve(), ImportOPJ::importGraphs(), and ApplicationWindow::plotHistogram().
ImageWidget * Graph::addImage | ( | ImageWidget * | i | ) | [slot] |
References FrameWidget::bottom(), d_enrichments, ImageWidget::fileName(), FrameWidget::right(), FrameWidget::setCoordinates(), FrameWidget::xValue(), and FrameWidget::yValue().
Referenced by ApplicationWindow::addImage(), ApplicationWindow::dropEvent(), ImportOPJ::importGraphs(), ApplicationWindow::loadImage(), and ImageWidget::restore().
ImageWidget * Graph::addImage | ( | const QString & | fileName | ) | [slot] |
References d_enrichments, and modifiedGraph().
ImageWidget * Graph::addImage | ( | const QImage & | image | ) | [slot] |
References d_enrichments, and modifiedGraph().
void Graph::addLegendItem | ( | ) |
References d_curves, d_enrichments, LegendWidget::isAutoUpdateEnabled(), LegendWidget::setText(), and LegendWidget::text().
Referenced by CurvesDialog::addCurve(), addCurves(), addFunction(), addHistogram(), insertCurve(), insertPlotItem(), and plotVectorCurve().
TexWidget * Graph::addTexFormula | ( | const QString & | s, | |
const QPixmap & | pix | |||
) |
References d_enrichments, and modifiedGraph().
Referenced by TexWidget::restore().
LegendWidget * Graph::addText | ( | LegendWidget * | t | ) | [slot] |
References LegendWidget::clone(), d_active_enrichment, and d_enrichments.
LegendWidget * Graph::addTimeStamp | ( | ) | [slot] |
References modifiedGraph(), FrameWidget::move(), newLegend(), and LegendWidget::setAutoUpdate().
Referenced by ApplicationWindow::addTimeStamp().
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.
References d_curves, and PlotCurve::type().
Referenced by ApplicationWindow::addErrorBars(), ApplicationWindow::analysis(), PolynomFitDialog::fit(), ExpDecayDialog::fit(), InterpolationDialog::interpolate(), SubtractDataDialog::setGraph(), SmoothCurveDialog::setGraph(), PolynomFitDialog::setGraph(), InterpolationDialog::setGraph(), FitDialog::setGraph(), FilterDialog::setGraph(), FFTDialog::setGraph(), ExpDecayDialog::setGraph(), BaselineDialog::setGraph(), and ApplicationWindow::showDataSetDialog().
bool Graph::antialiasing | ( | ) | [inline, slot] |
References d_antialiasing.
Referenced by copy(), EllipseWidget::drawFrame(), LegendWidget::drawText(), LegendWidget::drawVector(), PlotDialog::setActiveLayer(), and FitDialog::updatePreview().
bool Graph::arrowMarkerSelected | ( | ) | [slot] |
References d_lines, and d_selected_arrow.
Referenced by ApplicationWindow::copyMarker(), and ApplicationWindow::showMarkerPopupMenu().
QList<ArrowMarker *> Graph::arrowsList | ( | ) | [inline, slot] |
References d_lines.
Referenced by copy(), CanvasPicker::eventFilter(), and CanvasPicker::selectMarker().
bool Graph::autoscaleFonts | ( | ) | [inline, slot] |
bool Graph::axesBackbones | ( | ) | [inline, slot] |
References drawAxesBackbone.
Referenced by AxesDialog::setGraph().
int Graph::axesLinewidth | ( | ) | const |
QwtDoubleInterval Graph::axisBoundingInterval | ( | int | axis | ) | [private] |
Finds bounding interval of the plot data.
Referenced by setScale().
QColor Graph::axisColor | ( | int | axis | ) | [slot] |
Referenced by copy(), showAxis(), and AxesDialog::updateAxisColor().
void Graph::axisDblClicked | ( | int | ) | [signal] |
Referenced by Graph(), and showScaleDialog().
void Graph::axisDivChanged | ( | Graph * | , | |
int | ||||
) | [signal] |
Referenced by setScale(), updateMarkersBoundingRect(), and zoomed().
QString Graph::axisFormatInfo | ( | int | axis | ) | [slot] |
Referenced by AxesDialog::setAxisType(), and AxesDialog::showAxisFormatOptions().
QString Graph::axisFormula | ( | int | axis | ) | [slot] |
References ScaleDraw::formula().
Referenced by AxesDialog::showAxisFormula(), and AxesDialog::updateLabelsFormat().
int Graph::axisLabelFormat | ( | int | axis | ) |
References ScaleDraw::labelNumericFormat().
void Graph::axisLabelFormat | ( | int | axis, | |
char & | f, | |||
int & | prec | |||
) | const |
axis | axis index |
f | format character | |
prec | precision |
References ScaleDraw::labelFormat().
Referenced by copy(), saveLabelsFormat(), AxesDialog::setLabelsNumericFormat(), showAxis(), AxesDialog::showAxisFormatOptions(), and AxesDialog::updateLabelsFormat().
int Graph::axisLabelPrecision | ( | int | axis | ) |
References ScaleDraw::labelNumericPrecision().
Referenced by copy(), saveLabelsFormat(), AxesDialog::setLabelsNumericFormat(), showAxis(), and AxesDialog::updateLabelsFormat().
QColor Graph::axisLabelsColor | ( | int | axis | ) | [slot] |
Referenced by copy(), showAxis(), and AxesDialog::updateAxisColor().
double Graph::axisStep | ( | int | axis | ) | [inline, slot] |
References d_user_step.
Referenced by copy(), MultiLayer::updateLayerAxes(), and AxesDialog::updateScale().
int Graph::axisTitleAlignment | ( | int | axis | ) | [slot] |
QColor Graph::axisTitleColor | ( | int | axis | ) | [slot] |
int Graph::axisTitleDistance | ( | int | axis | ) | [slot] |
Referenced by AxesDialog::updateTitleBox().
QFont Graph::axisTitleFont | ( | int | axis | ) | [slot] |
Referenced by AxesDialog::customAxisLabelFont(), and ImportOPJ::importGraphs().
AxisTitlePolicy Graph::axisTitlePolicy | ( | ) | [inline] |
References d_axis_title_policy.
Referenced by copy().
QRect Graph::axisTitleRect | ( | const QwtScaleWidget * | scale | ) | [slot] |
References scalePicker, and ScalePicker::titleRect().
Referenced by TextEditor::TextEditor().
bool Graph::axisTitleSelected | ( | ) | [slot] |
References scalePicker, and ScalePicker::titleSelected().
Referenced by ApplicationWindow::clearSelection().
QString Graph::axisTitleString | ( | int | axis | ) | [slot] |
References d_axis_titles.
Referenced by copy(), saveScaleTitles(), TextDialog::setGraph(), TextEditor::TextEditor(), AxesDialog::updatePlot(), and AxesDialog::updateTitleBox().
ScaleDraw::ScaleType Graph::axisType | ( | int | axis | ) | [slot] |
QRect Graph::boundingRect | ( | ) |
References d_enrichments.
Referenced by MultiLayer::canvasChildrenRect(), draw(), exportSVG(), exportTeX(), exportVector(), graphPixmap(), and print().
QColor Graph::canvasFrameColor | ( | ) | [slot] |
Referenced by copy(), saveCanvas(), and AxesDialog::setGraph().
int Graph::canvasFrameWidth | ( | ) | [slot] |
Referenced by copy(), and AxesDialog::setGraph().
void Graph::changeCurveIndex | ( | int | fromIndex, | |
int | toIndex | |||
) |
References d_curves, and modifiedGraph().
Referenced by CurvesDialog::shiftCurveBy().
void Graph::changeTicksLength | ( | int | minLength, | |
int | majLength | |||
) | [slot] |
References enableAxis(), majorTickLength(), minorTickLength(), modifiedGraph(), and setTicksLength().
Referenced by AxesDialog::applyCanvasFormatTo().
void Graph::clearAxisTitle | ( | ) | [slot] |
References ScalePicker::currentAxis(), scalePicker, and setAxisTitle().
Referenced by showAxisTitleMenu().
void Graph::clearTitle | ( | ) | [slot] |
Sets the title to an "almost empty" string: " ", thus keeping the QwtText object visible.
References modifiedGraph().
Referenced by ApplicationWindow::clearSelection(), and showTitleContextMenu().
void Graph::closedGraph | ( | ) | [signal] |
Referenced by closeEvent().
void Graph::closeEvent | ( | QCloseEvent * | e | ) | [slot] |
References closedGraph().
QwtPlotItem * Graph::closestCurve | ( | int | xpos, | |
int | ypos, | |||
int & | dist, | |||
int & | point | |||
) |
void Graph::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [slot] |
References closestCurve(), d_selected_arrow, showContextMenu(), showCurveContextMenu(), and showMarkerPopupMenu().
void Graph::copy | ( | Graph * | g | ) | [slot] |
References activeTool(), add(), addArrow(), antialiasing(), arrowsList(), autoscaleFonts(), autoScaleFonts, axesLinewidth(), axisColor(), axisLabelFormat(), axisLabelPrecision(), axisLabelsColor(), axisStep(), axisTitlePolicy(), axisTitleString(), canvasFrameColor(), canvasFrameWidth(), ImageProfilesTool::clone(), ScaleEngine::clone(), Grid::copy(), copyCurves(), d_active_tool, d_auto_scale, d_axis_titles, d_Douglas_Peuker_tolerance, d_user_step, d_zoomer, ScaleDraw::Date, ScaleDraw::Day, ScaleEngine::divideScale(), enableAxis(), enrichmentsList(), ScaleDraw::formatString(), ScaleDraw::formula(), frameColor(), getDouglasPeukerTolerance(), getMajorTicksType(), getMinorTicksType(), grid(), isAutoscalingEnabled(), ScaleDraw::labelsList(), labelsRotation(), majorTickLength(), minorTickLength(), ScaleDraw::Month, ScaleDraw::nameFormat(), ScaleDraw::Numeric, paletteBackgroundColor(), ScaleDraw::prefix(), PlotToolInterface::rtti(), ScaleDraw::scaleType(), setAntialiasing(), setAxesLinewidth(), setAxisFont(), setAxisLabelRotation(), setAxisTitlePolicy(), setBackgroundColor(), setCanvasFrame(), setFrame(), setLabelsDateTimeFormat(), setLabelsDayFormat(), setLabelsMonthFormat(), setLabelsNumericFormat(), setMajorTicksType(), setMinorTicksType(), ScaleDraw::setPrefix(), ScaleDraw::setShowTicksPolicy(), ScaleDraw::setSuffix(), setTicksLength(), ScaleDraw::showTicksPolicy(), ScaleDraw::suffix(), ScaleDraw::Time, updateAxesTitles(), and updateLayout().
Referenced by MultiLayer::copy(), MultiLayer::dropEvent(), dropEvent(), ApplicationWindow::extractGraphs(), ApplicationWindow::extractLayers(), and ApplicationWindow::pasteSelection().
void Graph::copyAxisTitle | ( | ) | [slot] |
References ScalePicker::currentAxis(), and scalePicker.
Referenced by cutAxisTitle(), and showAxisTitleMenu().
void Graph::copyCurves | ( | Graph * | g | ) | [slot] |
References Box, curvesList(), d_Douglas_Peuker_tolerance, d_fit_curves, d_speed_mode_points, DataCurve::endRow(), ErrorBars, fitCurvesList(), Function, Histogram, HorizontalBars, insertCurve(), masterCurve(), QwtHistogram::matrix(), Pie, Spectrogram::setColorBarWidth(), PlotCurve::setPlotStyle(), Spectrogram::setVisible(), Spectrogram::showColorScale(), DataCurve::startRow(), DataCurve::table(), PlotCurve::type(), VectXYAM, VectXYXY, VerticalBars, and DataCurve::xColumnName().
Referenced by ApplicationWindow::addInsetLayer(), copy(), and ApplicationWindow::zoomRectanglePlot().
void Graph::copyImage | ( | ) | [slot] |
References graphPixmap(), and remove().
Referenced by ApplicationWindow::copyActiveLayer().
void Graph::copyTitle | ( | ) | [slot] |
Referenced by showTitleContextMenu().
void Graph::createTable | ( | const QString & | curveName | ) | [slot] |
Provided for convenience in scripts.
References curve().
Referenced by ApplicationWindow::showCurveWorksheet().
void Graph::createTable | ( | const QwtPlotCurve * | curve | ) | [slot] |
void Graph::currentFontChanged | ( | const QFont & | ) | [signal] |
Referenced by notifyFontChange(), select(), and selectTitle().
QwtScaleWidget * Graph::currentScale | ( | ) | [slot] |
References ScalePicker::currentAxis(), and scalePicker.
Referenced by ApplicationWindow::clearSelection(), and TextDialog::setGraph().
void Graph::cursorInfo | ( | const QString & | ) | [signal] |
PlotCurve * Graph::curve | ( | int | index | ) | [slot] |
get curve by index
References d_curves.
Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), SmoothCurveDialog::activateCurve(), InterpolationDialog::activateCurve(), FitDialog::activateCurve(), FFTDialog::activateCurve(), ExpDecayDialog::activateCurve(), ApplicationWindow::analysis(), ApplicationWindow::analyzeCurve(), ImageProfilesTool::append(), AssociationsDialog::changePlotAssociation(), RangeSelectorTool::clearMultipleSelection(), closestCurve(), RangeSelectorTool::copyMultipleSelection(), createTable(), dataCurve(), ApplicationWindow::defineErrorBars(), ApplicationWindow::differentiate(), LegendWidget::drawText(), ExpDecayDialog::fit(), LegendWidget::getCurve(), guessUniqueCurveLayout(), ImportOPJ::importGraphs(), initCurveLayout(), insertFunctionCurve(), insertText(), RangeSelectorTool::keyEventFilter(), DataPickerTool::keyEventFilter(), RangeSelectorTool::mightNeedMultipleSelection(), modifyFunctionCurve(), ApplicationWindow::openGraph(), parseAxisTitle(), ApplicationWindow::plotDoubleYAxis(), range(), RangeSelectorTool::RangeSelectorTool(), removeCurve(), removePie(), PieLabel::restore(), restoreCurveLabels(), MultiLayer::reverseWaterfallOrder(), saveCurveLayout(), savePieCurveLayout(), setBarsGap(), setCurveFullRange(), setCurveLineColor(), setCurveLineStyle(), setCurveLineWidth(), setCurveStyle(), FunctionDialog::setCurveToModify(), CurveRangeDialog::setCurveToModify(), Filter::setDataFromCurve(), MultiLayer::setWaterfallFillColor(), MultiLayer::setWaterfallSideLines(), RangeSelectorTool::showSelectionDialog(), MultiLayer::showWaterfallFillDialog(), updateVectorsLayout(), and MultiLayer::updateWaterfallFill().
PlotCurve* Graph::curve | ( | const QString & | title | ) | [inline, slot] |
int Graph::curveCount | ( | ) | [inline, slot] |
References d_curves.
Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), CurvesDialog::addCurve(), ApplicationWindow::addErrorBars(), ApplicationWindow::changeMatrixName(), BaselineDialog::createBaseline(), ApplicationWindow::extractLayers(), SubtractLineTool::finalize(), ApplicationWindow::hideOtherCurves(), ImportOPJ::importGraphs(), LayerItem::insertCurvesList(), RangeSelectorTool::keyEventFilter(), DataPickerTool::keyEventFilter(), RangeSelectorTool::mightNeedMultipleSelection(), ApplicationWindow::multilayerPlot(), RangeSelectorTool::RangeSelectorTool(), PlotDialog::removeSelectedCurve(), AssociationsDialog::setGraph(), ApplicationWindow::showAllCurves(), ApplicationWindow::showCursor(), ApplicationWindow::showCurveContextMenu(), CurvesDialog::showCurveRange(), ApplicationWindow::showGraphContextMenu(), ApplicationWindow::showRangeSelectors(), RangeSelectorTool::showSelectionDialog(), LegendWidget::symbolsMaxWidth(), and MultiLayer::updateLayersLayout().
int Graph::curveIndex | ( | QwtPlotItem * | c | ) | [inline, slot] |
Map curve pointer to index.
References d_curves.
Referenced by BaselineDialog::createBaseline(), curve(), Filter::curveIndex(), deleteFitCurves(), CanvasPicker::eventFilter(), PlotDialog::insertTabs(), SubtractDataDialog::interpolate(), RangeSelectorTool::keyEventFilter(), DataPickerTool::keyEventFilter(), removeCurve(), FunctionCurve::restore(), FunctionDialog::setCurveToModify(), ApplicationWindow::showCurveContextMenu(), BaselineDialog::subtractBaseline(), and updateCurveLayout().
int Graph::curveIndex | ( | const QString & | title | ) | [inline, slot] |
map curve title to index
References plotItemsList().
QStringList Graph::curveNamesList | ( | ) | [slot] |
Returns the names of all the QwtPlotCurve items on the plot, as a string list.
References d_curves.
Referenced by FitDialog::accept(), FitDialog::deleteFitCurves(), ApplicationWindow::dependingPlots(), MultiPeakFit::insertPeakFunctionCurve(), and ApplicationWindow::multilayerDependencies().
QList<QwtPlotItem *> Graph::curvesList | ( | ) | [inline] |
References d_curves.
Referenced by PlotDialog::applyErrorBarFormatToLayer(), PlotDialog::applyLineFormatToLayer(), PlotDialog::applySymbolsFormatToLayer(), copyCurves(), deselectCurves(), CurveTreeItem::plotItemIndex(), ApplicationWindow::remove3DMatrixPlots(), scaleFonts(), selectedCurveLabels(), setCurrentFont(), MultiLayer::sizeToString(), updateCurveLabels(), ApplicationWindow::updateMatrixPlots(), and AxesDialog::updateMinorTicksList().
QString Graph::curveTitle | ( | int | index | ) | [slot] |
get curve title string by inde (convenience function for scripts)
References plotItem().
QSize Graph::customPrintSize | ( | const QSizeF & | customSize, | |
int | unit, | |||
int | dpi | |||
) | [static, slot] |
References FrameWidget::Centimeter, FrameWidget::Inch, FrameWidget::Millimeter, FrameWidget::Pixel, and FrameWidget::Point.
Referenced by MultiLayer::draw(), Graph3D::exportImage(), MultiLayer::exportImage(), exportImage(), MultiLayer::exportSVG(), exportSVG(), MultiLayer::exportTeX(), exportTeX(), Graph3D::exportVector(), MultiLayer::exportVector(), and exportVector().
void Graph::cutAxisTitle | ( | ) | [slot] |
References copyAxisTitle(), and removeAxisTitle().
Referenced by showAxisTitleMenu().
void Graph::cutTitle | ( | ) | [slot] |
References removeTitle().
Referenced by showTitleContextMenu().
DataCurve * Graph::dataCurve | ( | int | index | ) | [slot] |
void Graph::dataRangeChanged | ( | ) | [signal] |
Referenced by enableRangeSelectors().
void Graph::deleteFitCurves | ( | ) | [slot] |
References curveIndex(), d_fit_curves, and removeCurve().
Referenced by FitDialog::deleteFitCurves().
void Graph::deselect | ( | ) |
References ScalePicker::deselect(), deselectCurves(), deselectMarker(), scalePicker, TitlePicker::setSelected(), and titlePicker.
Referenced by deselectMarker(), MultiLayer::eventFilter(), CanvasPicker::eventFilter(), MultiLayer::keyPressEvent(), print(), Spectrogram::selectLabel(), ScalePicker::selectLabels(), ScalePicker::selectTitle(), selectTitle(), MultiLayer::setActiveLayer(), and LegendWidget::showTextEditor().
void Graph::deselect | ( | QWidget * | l | ) |
References d_markers_selector.
void Graph::deselectCurves | ( | ) | [private] |
References curvesList(), and Function.
Referenced by deselect(), and select().
void Graph::deselectMarker | ( | ) | [slot] |
Reset any selection states on markers.
References cp, d_active_enrichment, d_lines, d_markers_selector, d_selected_arrow, deselect(), CanvasPicker::disableEditing(), enableTextEditor(), and ArrowMarker::setEditable().
Referenced by MultiLayer::copyAllLayers(), deselect(), Graph(), LineProfileTool::LineProfileTool(), FrameWidget::mousePressEvent(), ApplicationWindow::pasteSelection(), CanvasPicker::selectMarker(), DataCurve::setLabelsSelected(), ApplicationWindow::showEnrichementDialog(), and ApplicationWindow::showLineDialog().
void Graph::disableTools | ( | ) | [slot] |
References d_active_tool, d_peak_fit_tool, d_range_selector, drawLine(), drawLineActive(), enablePanningMagnifier(), zoom(), and zoomOn().
Referenced by AddWidgetTool::AddWidgetTool(), BaselineDialog::closeEvent(), ApplicationWindow::disableTools(), ApplicationWindow::pickDataTool(), and removeCurve().
void Graph::dragEnterEvent | ( | QDragEnterEvent * | e | ) | [private] |
References d_active_tool, d_panner, multiLayer(), selectedCurveLabels(), and zoomOn().
void Graph::draw | ( | QPaintDevice * | device, | |
const QSize & | size, | |||
double | fontsFactor = 1.0 | |||
) | [slot] |
References boundingRect(), print(), and scaleFonts().
Referenced by exportSVG(), and exportTeX().
bool Graph::drawArrow | ( | ) | [inline, slot] |
References drawArrowOn.
Referenced by ApplicationWindow::custom2DPlotTools(), and CanvasPicker::eventFilter().
void Graph::drawAxesBackbones | ( | bool | yes | ) | [slot] |
References drawAxesBackbone, and modifiedGraph().
Referenced by AxesDialog::applyCanvasFormatTo(), ApplicationWindow::setPreferences(), and ApplicationWindow::zoomRectanglePlot().
void Graph::drawBreak | ( | QPainter * | painter, | |
const QRect & | rect, | |||
const QwtScaleMap & | map, | |||
int | axis | |||
) | const [private] |
References axesLinewidth(), ScaleEngine::axisBreakLeft(), ScaleEngine::axisBreakRight(), d_maj_tick_length, drawLine(), ScaleEngine::hasBreak(), and ScaleEngine::hasBreakDecoration().
Referenced by drawItems().
void Graph::drawInwardTicks | ( | QPainter * | painter, | |
const QRect & | rect, | |||
const QwtScaleMap & | map, | |||
int | axis, | |||
bool | min, | |||
bool | maj | |||
) | const [private] |
References axesLinewidth(), d_maj_tick_length, d_min_tick_length, and drawLine().
Referenced by drawItems().
void Graph::drawItems | ( | QPainter * | painter, | |
const QRect & | rect, | |||
const QwtScaleMap | map[axisCnt], | |||
const QwtPlotPrintFilter & | pfilter | |||
) | const [private, virtual] |
void Graph::drawLine | ( | bool | on, | |
bool | arrow = false | |||
) | [slot] |
Draws a line/arrow depending on the value of "arrow".
References drawArrowOn, drawLineEnded(), and drawLineOn.
Referenced by disableTools(), ApplicationWindow::drawArrow(), drawBreak(), drawInwardTicks(), ApplicationWindow::drawLine(), and CanvasPicker::eventFilter().
bool Graph::drawLineActive | ( | ) | [inline, slot] |
References drawLineOn.
Referenced by ApplicationWindow::custom2DPlotTools(), disableTools(), CanvasPicker::eventFilter(), and hasActiveTool().
void Graph::drawLineEnded | ( | bool | ) | [signal] |
Referenced by drawLine().
void Graph::dropEvent | ( | QDropEvent * | event | ) | [private] |
void Graph::enableAutoscaling | ( | bool | on = true |
) | [inline, slot] |
void Graph::enableAxis | ( | int | axis, | |
bool | on = true | |||
) | [slot] |
References ScalePicker::refresh(), and scalePicker.
Referenced by ApplicationWindow::addInsetLayer(), changeTicksLength(), copy(), hideSelectedAxis(), ImportOPJ::importGraphs(), ApplicationWindow::loadImage(), ApplicationWindow::openGraph(), FFT::output(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::plotImage(), plotPie(), MultiLayer::plotProfiles(), ApplicationWindow::setPreferences(), showAxis(), Spectrogram::showColorScale(), and MultiLayer::updateWaterfallLayout().
void Graph::enableAxisLabels | ( | int | axis, | |
bool | on = true | |||
) | [slot] |
Referenced by ApplicationWindow::openGraph(), and MultiLayer::plotProfiles().
void Graph::enableDouglasPeukerSpeedMode | ( | double | tolerance, | |
int | maxPoints | |||
) |
References d_curves, d_Douglas_Peuker_tolerance, d_speed_mode_points, and PlotCurve::type().
Referenced by PlotDialog::acceptParams(), and ApplicationWindow::openGraph().
void Graph::enablePanningMagnifier | ( | bool | on = true , |
|
int | mode = 0 | |||
) |
References Spectrogram::colorScaleAxis(), d_curves, d_magnifier, d_panner, multiLayer(), notifyChanges(), and updateMarkersBoundingRect().
Referenced by disableTools(), and ApplicationWindow::magnify().
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.
References d_range_selector, and dataRangeChanged().
Referenced by ApplicationWindow::showRangeSelectors().
void Graph::enableTextEditor | ( | ) | [slot] |
References MdiSubWindow::applicationWindow(), ApplicationWindow::d_in_place_editing, multiLayer(), TitlePicker::selected(), showAxisTitleDialog(), titlePicker, and viewTitleDialog().
Referenced by deselectMarker(), and Graph().
void Graph::enableTextEditor | ( | Graph * | ) | [signal] |
QList<FrameWidget *> Graph::enrichmentsList | ( | ) | [inline] |
References d_enrichments.
Referenced by copy(), EnrichmentDialog::frameApplyTo(), EnrichmentDialog::patternApplyTo(), raiseEnrichements(), Filter::showLegend(), and EnrichmentDialog::textFormatApplyTo().
QString Graph::escapeTeXSpecialCharacters | ( | const QString & | s | ) | [static] |
Referenced by LegendWidget::parse(), print(), and printScale().
bool Graph::escapeTeXStrings | ( | ) | [inline, slot] |
References d_tex_escape_strings.
Referenced by LegendWidget::parse().
void Graph::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 | |||
) | [slot] |
References customPrintSize(), graphPixmap(), MultiLayer::layerIndex(), and multiLayer().
Referenced by ApplicationWindow::exportLayer(), and exportToFile().
void Graph::exportSVG | ( | const QString & | fname, | |
const QSizeF & | customSize = QSizeF() , |
|||
int | unit = FrameWidget::Pixel , |
|||
double | fontsFactor = 1.0 | |||
) | [slot] |
References boundingRect(), customPrintSize(), and draw().
Referenced by ApplicationWindow::exportLayer(), and exportToFile().
void Graph::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 | |||
) | [slot] |
References boundingRect(), customPrintSize(), d_is_exporting_tex, d_tex_escape_strings, and draw().
Referenced by ApplicationWindow::exportLayer(), and exportToFile().
void Graph::exportToFile | ( | const QString & | fileName | ) | [slot] |
Provided for convenience in scripts.
References exportImage(), exportSVG(), exportTeX(), and exportVector().
void Graph::exportVector | ( | const QString & | fileName, | |
int | res = 0 , |
|||
bool | color = true , |
|||
const QSizeF & | customSize = QSizeF () , |
|||
int | unit = FrameWidget::Pixel , |
|||
double | fontsFactor = 1.0 | |||
) | [slot] |
References boundingRect(), customPrintSize(), multiLayer(), print(), and scaleFonts().
Referenced by ApplicationWindow::exportLayer(), and exportToFile().
QList<QwtPlotCurve *> Graph::fitCurvesList | ( | ) | [inline, slot] |
References d_fit_curves.
Referenced by copyCurves(), and ApplicationWindow::deleteFitTables().
bool Graph::focusNextPrevChild | ( | bool | next | ) | [slot] |
QColor Graph::frameColor | ( | ) |
Referenced by copy(), saveToString(), PlotDialog::setActiveLayer(), and setFrame().
QString Graph::generateFunctionName | ( | const QString & | name = tr("F") |
) | [slot] |
Returns an unique function name.
References d_curves, and PlotCurve::type().
Referenced by addFunction(), and Fit::insertFitFunctionCurve().
double Graph::getDouglasPeukerTolerance | ( | ) | [inline] |
References d_Douglas_Peuker_tolerance.
Referenced by copy(), DataCurve::enableSpeedMode(), and PlotDialog::setActiveLayer().
QList< int > Graph::getMajorTicksType | ( | ) |
References ScaleDraw::majorTicksStyle().
Referenced by copy(), saveTicksType(), AxesDialog::setGraph(), setMajorTicksType(), setTicksLength(), and showAxis().
QList< int > Graph::getMinorTicksType | ( | ) |
References ScaleDraw::minorTicksStyle().
Referenced by copy(), saveTicksType(), AxesDialog::setGraph(), setMinorTicksType(), setTicksLength(), and showAxis().
Qt::PenStyle Graph::getPenStyle | ( | const QString & | s | ) | [static, slot] |
Qt::PenStyle Graph::getPenStyle | ( | int | style | ) | [static, slot] |
References linePen().
QPixmap Graph::graphPixmap | ( | const QSize & | size = QSize() , |
|
double | scaleFontsFactor = 1.0 , |
|||
bool | transparent = false | |||
) | [slot] |
References boundingRect(), print(), and scaleFonts().
Referenced by copyImage(), and exportImage().
Grid* Graph::grid | ( | ) | [inline] |
References d_grid.
Referenced by copy(), ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), saveToString(), showAxisContextMenu(), AxesDialog::showGridOptions(), and AxesDialog::updateGrid().
void Graph::guessUniqueCurveLayout | ( | int & | colorIndex, | |
int & | symbolIndex | |||
) | [slot] |
Tries to guess not already used curve color and symbol style.
References MdiSubWindow::applicationWindow(), curve(), d_curves, ColorBox::defaultColors(), SymbolBox::defaultSymbols(), ApplicationWindow::indexedColors(), ApplicationWindow::indexedSymbols(), QwtErrorPlotCurve::masterCurve(), multiLayer(), and PlotCurve::type().
Referenced by CurvesDialog::addCurve(), addFunction(), and initCurveLayout().
bool Graph::hasActiveTool | ( | ) |
Returns true if a plot/data tool is enabled.
References d_active_tool, d_magnifier, d_panner, d_peak_fit_tool, d_range_selector, drawLineActive(), and zoomOn().
Referenced by Spectrogram::selectedLabels().
bool Graph::hasPanningMagnifierEnabled | ( | ) | [inline] |
References d_magnifier, and d_panner.
Referenced by ApplicationWindow::custom2DPlotTools(), and CanvasPicker::eventFilter().
bool Graph::hasSeletedItems | ( | ) |
References d_markers_selector, scalePicker, TitlePicker::selected(), ScalePicker::selectedAxis(), and titlePicker.
Referenced by MultiLayer::eventFilter().
void Graph::hiddenPlot | ( | QWidget * | ) | [signal] |
void Graph::hideSelectedAxis | ( | ) | [slot] |
References ScalePicker::currentAxis(), enableAxis(), modifiedGraph(), ScalePicker::refresh(), and scalePicker.
Referenced by showAxisContextMenu().
bool Graph::imageMarkerSelected | ( | ) | [slot] |
References d_active_enrichment.
Referenced by ApplicationWindow::showMarkerPopupMenu().
QList< FrameWidget * > Graph::increasingAreaEnrichmentsList | ( | ) |
References d_enrichments.
Referenced by CanvasPicker::eventFilter(), and SelectionMoveResizer::mousePressEvent().
CurveLayout Graph::initCurveLayout | ( | int | style, | |
int | curves = 0 , |
|||
bool | guessLayout = true | |||
) | [slot] |
References CurveLayout::aCol, MdiSubWindow::applicationWindow(), Area, CurveLayout::aStyle, CurveLayout::connectType, curve(), ApplicationWindow::d_curve_line_style, d_curves, ApplicationWindow::d_fill_symbols, ApplicationWindow::d_indexed_symbols, ApplicationWindow::d_symbol_style, ColorBox::defaultColors(), ApplicationWindow::defaultCurveAlpha, ApplicationWindow::defaultCurveBrush, ApplicationWindow::defaultSymbolEdge, CurveLayout::fillCol, CurveLayout::filledArea, guessUniqueCurveLayout(), Histogram, HorizontalBars, HorizontalSteps, ApplicationWindow::indexedColors(), ApplicationWindow::indexedSymbols(), initCurveLayout(), CurveLayout::lCol, Line, CurveLayout::lStyle, multiLayer(), CurveLayout::penWidth, Scatter, QwtBarCurve::setGap(), QwtBarCurve::setOffset(), Spline, StackBar, StackColumn, CurveLayout::sType, CurveLayout::symCol, PlotCurve::type(), VerticalBars, VerticalDropLines, and VerticalSteps.
Referenced by ImportOPJ::importGraphs(), and PlotWizard::plot2D().
CurveLayout Graph::initCurveLayout | ( | ) | [static, slot] |
References CurveLayout::aCol, CurveLayout::aStyle, CurveLayout::connectType, CurveLayout::fillCol, CurveLayout::filledArea, CurveLayout::lCol, CurveLayout::lStyle, CurveLayout::lWidth, CurveLayout::penWidth, CurveLayout::sSize, CurveLayout::sType, and CurveLayout::symCol.
Referenced by CurvesDialog::addCurve(), addCurves(), initCurveLayout(), and insertCurve().
void Graph::initFonts | ( | const QFont & | scaleTitleFnt, | |
const QFont & | numbersFnt | |||
) | [slot] |
References setAxisFont().
Referenced by ApplicationWindow::setPreferences().
void Graph::initTitle | ( | bool | on, | |
const QFont & | fnt | |||
) | [slot] |
Referenced by ApplicationWindow::setPreferences().
DataCurve * Graph::insertCurve | ( | Table * | w, | |
const QString & | name, | |||
int | style, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
References Table::colIndex(), Table::colName(), Table::colX(), and modifiedGraph().
Referenced by CurvesDialog::addCurve(), addCurves(), addErrorBars(), addFunction(), addHistogram(), copyCurves(), BaselineDialog::createBaseline(), ImportOPJ::importGraphs(), insertCurve(), insertPlotItem(), BaselineDialog::modifyBaseline(), openBoxDiagram(), ApplicationWindow::openGraph(), FFT::output(), Differentiation::output(), PlotWizard::plot2D(), plotBoxDiagram(), ApplicationWindow::plotImageProfiles(), plotPie(), plotSpectrogram(), plotVectorCurve(), FunctionCurve::restore(), restoreHistogram(), restoreSpectrogram(), MultiLayer::reverseWaterfallOrder(), and ApplicationWindow::waterfallPlot().
References Table::colIndex(), Table::colName(), and insertCurve().
DataCurve * Graph::insertCurve | ( | Table * | w, | |
const QString & | xColName, | |||
const QString & | yColName, | |||
int | style, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
References addLegendItem(), Table::colIndex(), Table::columnFormat(), Table::columnType(), ScaleDraw::Date, Table::Date, ScaleDraw::dateTimeOrigin(), DataCurve::enableSpeedMode(), Histogram, QwtBarCurve::Horizontal, HorizontalBars, initCurveLayout(), insertCurve(), DataCurve::loadData(), Table::numRows(), plotItemsList(), ScaleDraw::scaleType(), setLabelsDateTimeFormat(), PlotCurve::setPlotStyle(), StackBar, StackColumn, Table::text(), ScaleDraw::Time, Table::Time, updateCurveLayout(), QwtBarCurve::Vertical, and VerticalBars.
void Graph::insertCurve | ( | QwtPlotItem * | c | ) | [slot] |
References d_antialiasing, and d_curves.
FunctionCurve * Graph::insertFunctionCurve | ( | const QString & | formula, | |
int | points, | |||
int | fileVersion | |||
) | [slot] |
Used when reading from a project file with version < 0.9.5.
References addFunction(), curve(), FunctionCurve::Normal, FunctionCurve::Parametric, and FunctionCurve::Polar.
Referenced by ApplicationWindow::openGraph().
void Graph::insertImageMarker | ( | const QStringList & | lst, | |
int | fileVersion | |||
) | [slot] |
References d_enrichments, and FrameWidget::setOrigin().
Referenced by ApplicationWindow::openGraph().
void Graph::insertLegend | ( | const QStringList & | lst, | |
int | fileVersion | |||
) | [slot] |
References insertText(), and LegendWidget::setAutoUpdate().
Referenced by ApplicationWindow::openGraph().
void Graph::insertMarker | ( | QwtPlotMarker * | m | ) |
References d_antialiasing.
Referenced by addArrow(), Grid::enableZeroLineX(), Grid::enableZeroLineY(), and MultiPeakFitTool::selectPeak().
void Graph::insertPlotItem | ( | QwtPlotItem * | i, | |
int | type | |||
) | [slot] |
References addLegendItem(), and insertCurve().
Referenced by Filter::addResultCurve(), Correlation::addResultCurve(), Convolution::addResultCurve(), DrawPointTool::appendPoint(), MultiPeakFit::generateFitCurve(), Fit::insertFitFunctionCurve(), MultiPeakFit::insertPeakFunctionCurve(), Fit::showConfidenceLimits(), Fit::showPredictionLimits(), and Fit::showResiduals().
LegendWidget * Graph::insertText | ( | const QStringList & | list, | |
int | fileVersion | |||
) | [slot] |
Used when opening a project file.
References QwtPieCurve::addLabel(), curve(), d_active_enrichment, d_enrichments, FrameWidget::move(), LegendWidget::setAngle(), FrameWidget::setBackgroundColor(), LegendWidget::setFont(), FrameWidget::setFrameStyle(), FrameWidget::setOriginCoord(), LegendWidget::setText(), LegendWidget::setTextColor(), and updateLayout().
Referenced by insertLegend(), and ApplicationWindow::openGraph().
void Graph::invertScale | ( | int | axis | ) | [slot] |
Set axis scale.
bool Graph::isAutoscalingEnabled | ( | ) | [inline, slot] |
References d_auto_scale.
Referenced by PlotDialog::acceptParams(), and copy().
bool Graph::isExportingTeX | ( | ) | [inline, slot] |
References d_is_exporting_tex.
Referenced by LegendWidget::parse(), and LegendWidget::print().
bool Graph::isPiePlot | ( | ) | [slot] |
Returns true if this Graph is a pie plot, false otherwise.
References d_curves.
Referenced by ApplicationWindow::addErrorBars(), CanvasPicker::eventFilter(), ApplicationWindow::fitMultiPeak(), ApplicationWindow::movePoints(), newLegend(), ApplicationWindow::removePoints(), saveCurves(), setGrayScale(), ApplicationWindow::setPreferences(), ApplicationWindow::showCursor(), ApplicationWindow::showCurvesDialog(), ApplicationWindow::showGraphContextMenu(), ApplicationWindow::showRangeSelectors(), ApplicationWindow::showScaleDialog(), ApplicationWindow::subtractStraightLine(), ApplicationWindow::translateCurve(), AxesDialog::updateGrid(), ApplicationWindow::zoomIn(), and ApplicationWindow::zoomOut().
bool Graph::isPrinting | ( | ) | [inline] |
References d_is_printing.
Referenced by ScaleDraw::drawBackbone(), and ScaleDraw::drawBreak().
int Graph::labelsRotation | ( | int | axis | ) | [slot] |
Referenced by copy(), saveLabelsRotation(), AxesDialog::setGraph(), and showAxis().
LegendWidget * Graph::legend | ( | ) | [slot] |
References d_enrichments, and LegendWidget::isAutoUpdateEnabled().
Referenced by removeLegend(), and setLegend().
QString Graph::legendText | ( | bool | layerSpec = false |
) | [slot] |
Creates a new legend text using the curves titles.
References MdiSubWindow::applicationWindow(), ColumnComment, d_curves, ApplicationWindow::d_graph_legend_display, ErrorBars, MultiLayer::layerIndex(), multiLayer(), TableLegend, and TableName.
Referenced by newLegend(), plotBoxDiagram(), and ApplicationWindow::waterfallPlot().
void Graph::loadAxesLinewidth | ( | int | width | ) | [slot] |
used when opening a project file
References setAxesLinewidth().
Referenced by ApplicationWindow::openGraph().
void Graph::loadAxesOptions | ( | const QStringList & | lst | ) | [slot] |
used when opening a project file
References drawAxesBackbone.
Referenced by ApplicationWindow::openGraph().
QwtPlotMagnifier* Graph::magnifyTool | ( | ) | [inline] |
References d_magnifier.
Referenced by ApplicationWindow::custom2DPlotTools().
int Graph::majorTickLength | ( | ) | const |
References d_maj_tick_length.
Referenced by changeTicksLength(), copy(), saveToString(), setAxisFormat(), AxesDialog::setGraph(), setMajorTicksType(), and showAxis().
bool Graph::markerSelected | ( | ) | [slot] |
References d_active_enrichment, and d_selected_arrow.
Referenced by ApplicationWindow::copyMarker(), and ApplicationWindow::copySelection().
DataCurve * Graph::masterCurve | ( | QwtErrorPlotCurve * | er | ) | [slot] |
Returns a valid master curve for the error bars curve.
References d_curves, QwtErrorPlotCurve::masterCurve(), and DataCurve::plotAssociation().
Referenced by addCurves(), addErrorBars(), AssociationsDialog::changePlotAssociation(), copyCurves(), and ImportOPJ::importGraphs().
DataCurve * Graph::masterCurve | ( | const QString & | xColName, | |
const QString & | yColName | |||
) | [slot] |
Returns a valid master curve for a plot association.
References d_curves.
int Graph::minorTickLength | ( | ) | const |
References d_min_tick_length.
Referenced by changeTicksLength(), copy(), saveToString(), setAxisFormat(), AxesDialog::setGraph(), setMajorTicksType(), and showAxis().
void Graph::modifiedGraph | ( | ) | [signal] |
Referenced by addFunction(), addImage(), addTexFormula(), addTimeStamp(), changeCurveIndex(), changeTicksLength(), clearTitle(), drawAxesBackbones(), Graph(), hideSelectedAxis(), insertCurve(), modifyFunctionCurve(), newLegend(), notifyChanges(), remove(), removeCurve(), removePie(), removeTitle(), select(), setAutoScale(), setAxesLinewidth(), setAxisFont(), setAxisTitle(), setAxisTitleFont(), setBackgroundColor(), setCanvasFrame(), setCurrentFont(), setCurveFullRange(), setCurveLineColor(), setCurveLineStyle(), setCurveLineWidth(), setGrayScale(), setIndexedColors(), setRightAxisTitle(), setSelectedArrow(), setTitleAlignment(), setTitleColor(), setTitleFont(), setTopAxisTitle(), setXAxisTitle(), setYAxisTitle(), showAxis(), showCurve(), showGrid(), updateErrorBars(), updateVectorsLayout(), and zoomed().
void Graph::modifyFunctionCurve | ( | int | curve, | |
int | type, | |||
const QStringList & | formulas, | |||
const QString & | var, | |||
double | start, | |||
double | end, | |||
int | points, | |||
const QMap< QString, double > & | constants | |||
) | [slot] |
References FunctionCurve::constants(), curve(), d_enrichments, FunctionCurve::endRange(), FunctionCurve::formulas(), FunctionCurve::functionType(), LegendWidget::isAutoUpdateEnabled(), FunctionCurve::legend(), FunctionCurve::loadData(), modifiedGraph(), FunctionCurve::setConstants(), FunctionCurve::setFormulas(), FunctionCurve::setFunctionType(), FunctionCurve::setRange(), LegendWidget::setText(), FunctionCurve::setVariable(), FunctionCurve::startRange(), LegendWidget::text(), updatePlot(), and FunctionCurve::variable().
Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), and FunctionDialog::acceptPolar().
MultiLayer * Graph::multiLayer | ( | ) |
Returns a pointer to the parent MultiLayer object.
Referenced by AddWidgetTool::addEquation(), AddWidgetTool::addText(), AddWidgetTool::AddWidgetTool(), ImageProfilesTool::append(), ScreenPickerTool::append(), TextDialog::apply(), LineDialog::apply(), AxesDialog::applyAxisFormat(), AxesDialog::applyCanvasFormat(), PlotDialog::applyErrorBarFormat(), PlotDialog::applyLineFormat(), PlotDialog::applySymbolsFormat(), FrameWidget::calculateBottomValue(), FrameWidget::calculateRightValue(), FrameWidget::calculateXValue(), FrameWidget::calculateYValue(), TextEditor::closeEvent(), RangeSelectorTool::copyMultipleSelection(), RangeSelectorTool::copySelectedCurve(), EnrichmentDialog::createImage(), createTable(), ArrowMarker::displayInfo(), MultiLayer::dragEnterEvent(), dragEnterEvent(), MultiLayer::dropEvent(), dropEvent(), RangeSelectorTool::emitStatusText(), enablePanningMagnifier(), enableTextEditor(), CanvasPicker::eventFilter(), AddWidgetTool::eventFilter(), exportImage(), exportVector(), EnrichmentDialog::frameApplyTo(), FrameWidget::FrameWidget(), LegendWidget::getCurve(), guessUniqueCurveLayout(), ImageProfilesTool::ImageProfilesTool(), importLine(), initCurveLayout(), QwtPieCurve::initLabels(), DataPickerTool::keyEventFilter(), ScaleDraw::labelString(), legendText(), QwtPieCurve::loadData(), Fit::logFitInfo(), Integration::logInfo(), ImageProfilesTool::modifiedMatrix(), newLegend(), FFT::output(), ImageWidget::paintEvent(), LegendWidget::parse(), RangeSelectorTool::pasteSelection(), EnrichmentDialog::patternApplyTo(), plotBoxDiagram(), print(), raiseEnrichements(), resizeEvent(), EnrichmentDialog::saveImagesInternally(), EnrichmentDialog::setBestSize(), EnrichmentDialog::setCoordinates(), Spectrogram::setDefaultColorMap(), RectangleWidget::setLinkedLayer(), Spectrogram::setMatrix(), FrameWidget::setOriginCoord(), LegendWidget::showTextEditor(), stackingOrderEnrichmentsList(), TextEditor::TextEditor(), EnrichmentDialog::textFormatApplyTo(), EnrichmentDialog::updateForm(), AxesDialog::updateGrid(), updateMarkersBoundingRect(), and AddWidgetTool::~AddWidgetTool().
LegendWidget * Graph::newLegend | ( | const QString & | text = QString() |
) | [slot] |
References MdiSubWindow::applicationWindow(), d_enrichments, isPiePlot(), ApplicationWindow::legendBackground, ApplicationWindow::legendFrameStyle, legendText(), ApplicationWindow::legendTextColor, modifiedGraph(), multiLayer(), pieLegendText(), ApplicationWindow::plotLegendFont, LegendWidget::setAutoUpdate(), FrameWidget::setBackgroundColor(), LegendWidget::setFont(), FrameWidget::setFrameStyle(), LegendWidget::setText(), and LegendWidget::setTextColor().
Referenced by ImportOPJ::addText(), addTimeStamp(), importText(), ApplicationWindow::multilayerPlot(), ApplicationWindow::newGraph(), ApplicationWindow::newLegend(), DataPickerTool::pasteSelectionAsLayerText(), PlotWizard::plot2D(), Filter::showLegend(), LayerDialog::update(), MultiLayer::updateLayersLayout(), and ApplicationWindow::waterfallPlot().
void Graph::notifyChanges | ( | ) | [slot] |
References modifiedGraph().
Referenced by CurveRangeDialog::accept(), PlotDialog::acceptParams(), AddWidgetTool::addEllipse(), AddWidgetTool::addEquation(), AddWidgetTool::addRectangle(), AddWidgetTool::addText(), TextDialog::apply(), AssociationsDialog::changePlotAssociation(), PlotDialog::chooseLabelsFont(), TextEditor::closeEvent(), enablePanningMagnifier(), Spectrogram::moveLabel(), RangeSelectorTool::setCurveRange(), FrameWidget::setOnTop(), AxesDialog::updateGrid(), and AxesDialog::updatePlot().
void Graph::notifyFontChange | ( | const QFont & | f | ) | [inline, slot] |
int Graph::numArrows | ( | ) | [inline, slot] |
References d_lines.
int Graph::obsoleteSymbolStyle | ( | int | type | ) | [static, slot] |
Referenced by ApplicationWindow::openGraph().
References insertCurve(), BoxCurve::loadData(), Table::numRows(), BoxCurve::setBoxRange(), BoxCurve::setBoxStyle(), BoxCurve::setBoxWidth(), BoxCurve::setMaxStyle(), BoxCurve::setMeanStyle(), BoxCurve::setMinStyle(), BoxCurve::setP1Style(), BoxCurve::setP99Style(), BoxCurve::setWhiskersRange(), and SymbolBox::style().
Referenced by ApplicationWindow::openGraph().
const QColor & Graph::paletteBackgroundColor | ( | ) | const |
Referenced by copy(), printFrame(), saveToString(), and PlotDialog::setActiveLayer().
QString Graph::parseAxisTitle | ( | int | axis | ) | [private] |
References ColComment, Table::colIndex(), ColName, Table::comment(), curve(), d_axis_title_policy, d_axis_titles, dataCurve(), Default, NameAndComment, DataCurve::table(), and DataCurve::xColumnName().
Referenced by setAxisTitle(), and updateAxesTitles().
QString Graph::penStyleName | ( | Qt::PenStyle | style | ) | [static, slot] |
Referenced by saveMarkers(), savePieCurveLayout(), and ApplicationWindow::saveSettings().
QString Graph::pieLegendText | ( | ) | [slot] |
References d_curves.
Referenced by newLegend().
void Graph::plotBoxDiagram | ( | Table * | w, | |
const QStringList & | names, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
References MdiSubWindow::applicationWindow(), d_enrichments, ColorBox::defaultColors(), ScaleDraw::HideBeginEnd, ApplicationWindow::indexedColors(), insertCurve(), LegendWidget::isAutoUpdateEnabled(), legendText(), BoxCurve::loadData(), multiLayer(), Table::numRows(), Table::selectedYLabels(), ScaleDraw::setShowTicksPolicy(), and LegendWidget::setText().
Referenced by addCurves().
QwtPlotItem * Graph::plotItem | ( | int | index | ) | [slot] |
get plotted item by index
References d_curves.
Referenced by ApplicationWindow::changeMatrixName(), curveTitle(), ImportOPJ::importGraphs(), LayerItem::insertCurvesList(), AssociationsDialog::setGraph(), showCurve(), CurvesDialog::showCurveBtn(), CurvesDialog::showCurveRange(), ApplicationWindow::showCurveWorksheet(), and ApplicationWindow::showMatrixValuesDialog().
QStringList Graph::plotItemsList | ( | ) | [slot] |
Returns the names of all plot items, including spectrograms, as a string list.
References d_curves.
Referenced by curveIndex(), insertCurve(), plotSpectrogram(), CurvesDialog::setGraph(), CurvesDialog::shiftCurveBy(), and CurvesDialog::showCurveRange().
QwtPieCurve * Graph::plotPie | ( | Table * | w, | |
const QString & | name, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
Used when creating a pie plot.
References enableAxis(), QwtPieCurve::initLabels(), insertCurve(), QwtPieCurve::loadData(), ScalePicker::refresh(), scalePicker, and setFrame().
Referenced by addCurves(), and ApplicationWindow::openGraph().
QwtPieCurve * 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 , |
|||
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 | |||
) | [slot] |
Used when restoring a pie plot from a project file.
References PatternBox::brushStyle(), QwtPieCurve::initLabels(), insertCurve(), QwtPieCurve::loadData(), Table::numRows(), QwtPieCurve::setBrushStyle(), QwtPieCurve::setCounterClockwise(), QwtPieCurve::setFirstColor(), QwtPieCurve::setFixedLabelsPosition(), QwtPieCurve::setHorizontalOffset(), QwtPieCurve::setLabelCategories(), QwtPieCurve::setLabelPercentagesFormat(), QwtPieCurve::setLabelsAutoFormat(), QwtPieCurve::setLabelsEdgeDistance(), QwtPieCurve::setLabelValuesFormat(), QwtPieCurve::setRadius(), QwtPieCurve::setStartAzimuth(), QwtPieCurve::setThickness(), QwtPieCurve::setViewAngle(), and DataCurve::setVisible().
Spectrogram * Graph::plotSpectrogram | ( | Matrix * | m, | |
CurveType | type | |||
) | [slot] |
Add a spectrogram to the graph.
References Spectrogram::clearLabels(), Spectrogram::colorMap(), ColorMap, Contour, d_zoomer, GrayScale, insertCurve(), plotItemsList(), Spectrogram::range(), Spectrogram::setColorScaleAxis(), Spectrogram::setDefaultColorMap(), Spectrogram::setGrayScale(), spectrogram(), and updateSecondaryAxis().
Referenced by CurvesDialog::addCurve(), dropEvent(), ImportOPJ::importGraphs(), ApplicationWindow::plotImage(), MultiLayer::plotProfiles(), and ApplicationWindow::plotSpectrogram().
VectorCurve * Graph::plotVectorCurve | ( | Table * | w, | |
const QStringList & | colList, | |||
int | style, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) | [slot] |
References addLegendItem(), insertCurve(), VectorCurve::loadData(), Table::numRows(), PlotCurve::setPlotStyle(), updatePlot(), VectXYAM, VectorCurve::XYAM, and VectorCurve::XYXY.
Referenced by addCurves(), and ApplicationWindow::openGraph().
void Graph::print | ( | QPainter * | painter, | |
const QRect & | plotRect, | |||
const QwtPlotPrintFilter & | pfilter = QwtPlotPrintFilter() | |||
) |
Paint the plot into a given rectangle. Paint the contents of a QwtPlot instance into a given rectangle (Qwt modified code).
painter | Painter | |
plotRect | Bounding rectangle | |
pfilter | Print filter |
References boundingRect(), d_curves, d_is_exporting_tex, d_is_printing, d_tex_escape_strings, deselect(), escapeTeXSpecialCharacters(), FrameWidget::isOnTop(), FrameWidget::print(), printCanvas(), printFrame(), printScale(), VectorCurve::setVectorPen(), stackingOrderEnrichmentsList(), texSuperscripts(), PlotCurve::type(), VectorCurve::vectorPen(), and VectXYXY.
Referenced by MultiLayer::canvasPixmap(), MultiLayer::draw(), MultiLayer::exportVector(), MultiLayer::printActiveLayer(), and MultiLayer::printAllLayers().
void Graph::print | ( | ) | [slot] |
References multiLayer().
Referenced by draw(), exportVector(), and graphPixmap().
void Graph::printCanvas | ( | QPainter * | painter, | |
const QRect & | canvasRect, | |||
const QwtScaleMap | map[axisCnt], | |||
const QwtPlotPrintFilter & | pfilter | |||
) | const [private] |
References drawItems().
Referenced by print().
void Graph::printFrame | ( | QPainter * | painter, | |
const QRect & | rect | |||
) | const [private] |
References paletteBackgroundColor().
Referenced by print().
void Graph::printScale | ( | QPainter * | painter, | |
int | axisId, | |||
int | startDist, | |||
int | endDist, | |||
int | baseDist, | |||
const QRect & | rect | |||
) | const [private, virtual] |
Paint a scale into a given rectangle. Paint the scale into a given rectangle (modified code from Qwt).
painter | Painter | |
axisId | Axis | |
startDist | Start border distance | |
endDist | End border distance | |
baseDist | Base distance | |
rect | Bounding rectangle |
References d_is_exporting_tex, d_tex_escape_strings, escapeTeXSpecialCharacters(), and texSuperscripts().
Referenced by print().
void Graph::raiseEnrichements | ( | ) |
References d_enrichments, enrichmentsList(), FrameWidget::isOnTop(), MultiLayer::layersList(), and multiLayer().
Referenced by MultiLayer::activateGraph(), MultiLayer::addLayer(), FrameWidget::FrameWidget(), and MultiLayer::setActiveLayer().
int Graph::range | ( | const QString & | curveTitle, | |
double * | start, | |||
double * | end | |||
) | [slot] |
Set start and end to selected X range of curve "curveTitle" or, if there's no selection, to the curve's total range.
References curve().
Referenced by PolynomFitDialog::activateCurve(), InterpolationDialog::activateCurve(), FitDialog::activateCurve(), ExpDecayDialog::activateCurve(), and Filter::setDataFromCurve().
int Graph::range | ( | QwtPlotCurve * | c, | |
double * | start, | |||
double * | end | |||
) | [slot] |
Set start and end to selected X range of curve "curve" or, if there's no selection, to the curve's total range.
References d_range_selector.
bool Graph::rangeSelectorsEnabled | ( | ) | [slot] |
QPointer<RangeSelectorTool> Graph::rangeSelectorTool | ( | ) | [inline, slot] |
void Graph::remove | ( | FrameWidget * | f | ) |
References d_active_enrichment, d_enrichments, and modifiedGraph().
Referenced by copyImage(), and EnrichmentDialog::~EnrichmentDialog().
void Graph::remove | ( | ArrowMarker * | arrow | ) | [slot] |
References cp, d_lines, d_markers_selector, d_selected_arrow, CanvasPicker::disableEditing(), and modifiedGraph().
void Graph::removeAxisTitle | ( | ) | [slot] |
References ScalePicker::currentAxis(), scalePicker, and setAxisTitle().
Referenced by cutAxisTitle(), and showAxisTitleMenu().
void Graph::removeCurve | ( | QwtPlotItem * | it | ) | [slot] |
References curve(), d_curves, d_fit_curves, d_range_selector, disableTools(), modifiedGraph(), and removeLegendItem().
Referenced by BaselineDialog::createBaseline(), deleteFitCurves(), ApplicationWindow::extractLayers(), BaselineDialog::modifyBaseline(), DataCurve::remove(), ApplicationWindow::remove3DMatrixPlots(), removeCurve(), ApplicationWindow::removeCurve(), removeCurves(), CurvesDialog::removeCurves(), removePie(), PlotDialog::removeSelectedCurve(), and MultiLayer::reverseWaterfallOrder().
void Graph::removeCurve | ( | int | index | ) | [slot] |
Removes a curve defined by its index.
References d_curves, and removeCurve().
void Graph::removeCurve | ( | const QString & | s | ) | [slot] |
Removes a curve defined by its title string s.
References curveIndex(), and removeCurve().
void Graph::removeCurves | ( | const QString & | s | ) | [slot] |
Removes all curves defined by the title/plot association string s.
References d_curves, and removeCurve().
Referenced by ApplicationWindow::removeCurves().
void Graph::removeLegend | ( | ) | [slot] |
References legend().
Referenced by FFT::output(), LayerDialog::update(), and ApplicationWindow::zoomRectanglePlot().
void Graph::removeLegendItem | ( | int | index | ) | [slot] |
References d_curves, d_enrichments, LegendWidget::isAutoUpdateEnabled(), LegendWidget::setText(), and LegendWidget::text().
Referenced by removeCurve().
void Graph::removeMarker | ( | ) | [slot] |
References d_active_enrichment, d_lines, and d_selected_arrow.
Referenced by ApplicationWindow::clearSelection(), ApplicationWindow::cutSelection(), and MultiPeakFitTool::finalize().
void Graph::removePie | ( | ) | [slot] |
References curve(), modifiedGraph(), removeCurve(), and PieLabel::setPieCurve().
void Graph::removeTitle | ( | ) | [slot] |
Sets title to an empty string and hides the text label.
References modifiedGraph().
Referenced by cutTitle(), Graph(), and showTitleContextMenu().
void Graph::resizeEvent | ( | QResizeEvent * | e | ) | [slot] |
void Graph::restoreCurveLabels | ( | int | curveID, | |
const QStringList & | lst | |||
) |
Used when restoring DataCurve curveID from a project file.
References curve(), and DataCurve::restoreLabels().
Referenced by ApplicationWindow::openGraph().
QwtHistogram * Graph::restoreHistogram | ( | Matrix * | m, | |
const QStringList & | l | |||
) | [slot] |
Restores a histogram from a project file.
References insertCurve(), QwtHistogram::loadData(), QwtHistogram::setBinning(), QwtBarCurve::setGap(), QwtBarCurve::setOffset(), and DataCurve::setVisible().
Referenced by ApplicationWindow::openGraph().
void Graph::restoreSpectrogram | ( | ApplicationWindow * | app, | |
const QStringList & | lst | |||
) | [slot] |
Restores a spectrogram. Used when opening a project file.
References Spectrogram::clearLabels(), Spectrogram::Default, getPenStyle(), Spectrogram::GrayScale, insertCurve(), ApplicationWindow::matrix(), PenStyleBox::penStyle(), Spectrogram::setColorMapPen(), Spectrogram::setContourLevels(), Spectrogram::setContourPenList(), Spectrogram::setCustomColorMap(), Spectrogram::setDefaultColorMap(), Spectrogram::setGrayScale(), Spectrogram::setLabelOffset(), Spectrogram::setLabelsColor(), Spectrogram::setLabelsFont(), Spectrogram::setLabelsOffset(), Spectrogram::setLabelsRotation(), Spectrogram::setLabelsWhiteOut(), Spectrogram::setLevelsNumber(), Spectrogram::setUseMatrixFormula(), Spectrogram::setVisible(), Spectrogram::showContourLineLabels(), xOffset, and yOffset.
Referenced by ApplicationWindow::openGraph().
QString Graph::saveAxesBackbones | ( | ) | [slot] |
References drawAxesBackbone.
Referenced by saveToString().
QString Graph::saveAxesBaseline | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveAxesColors | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveAxesFormulas | ( | ) | [slot] |
References ScaleDraw::formula().
Referenced by saveToString().
QString Graph::saveAxesLabelsType | ( | ) | [slot] |
References ScaleDraw::ColHeader, ScaleDraw::Date, ScaleDraw::Day, ScaleDraw::formatString(), ScaleDraw::Month, ScaleDraw::Numeric, ScaleDraw::scaleType(), ScaleDraw::Text, and ScaleDraw::Time.
Referenced by saveToString().
QString Graph::saveAxesTitleAlignement | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveAxesTitleColors | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveCanvas | ( | ) | [slot] |
References canvasFrameColor().
Referenced by saveToString().
QString Graph::saveCurveLayout | ( | int | index | ) | [slot] |
References QwtHistogram::autoBinning(), QwtHistogram::begin(), QwtHistogram::binSize(), Box, BoxCurve::boxRange(), BoxCurve::boxRangeType(), BoxCurve::boxStyle(), BoxCurve::boxWidth(), VectorCurve::color(), curve(), QwtHistogram::end(), VectorCurve::filledArrowHead(), QwtBarCurve::gap(), VectorCurve::headAngle(), VectorCurve::headLength(), Histogram, HorizontalBars, LineSymbols, BoxCurve::maxStyle(), BoxCurve::meanStyle(), BoxCurve::minStyle(), QwtBarCurve::offset(), BoxCurve::p1Style(), BoxCurve::p99Style(), PatternBox::patternIndex(), VectorCurve::plotAssociation(), PlotCurve::plotStyle(), VectorCurve::position(), Spline, SymbolBox::symbolIndex(), VectXYAM, VectXYXY, VerticalBars, VerticalSteps, BoxCurve::whiskersRange(), BoxCurve::whiskersRangeType(), and VectorCurve::width().
Referenced by saveCurves().
QString Graph::saveCurves | ( | ) | [slot] |
References QwtErrorPlotCurve::capLength(), QwtErrorPlotCurve::color(), d_curves, QwtErrorPlotCurve::direction(), DataCurve::endRow(), isPiePlot(), QwtErrorPlotCurve::masterCurve(), QwtErrorPlotCurve::minusSide(), QwtErrorPlotCurve::plusSide(), saveCurveLayout(), savePieCurveLayout(), DataCurve::saveToString(), DataCurve::startRow(), QwtErrorPlotCurve::throughSymbol(), PlotCurve::type(), QwtErrorPlotCurve::width(), and DataCurve::xColumnName().
Referenced by saveToString().
QString Graph::saveEnabledAxes | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveEnabledTickLabels | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveFonts | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveLabelsFormat | ( | ) | [slot] |
References axisLabelFormat(), and axisLabelPrecision().
Referenced by saveToString().
QString Graph::saveLabelsPrefixAndSuffix | ( | ) | [slot] |
References ScaleDraw::prefix(), and ScaleDraw::suffix().
Referenced by saveToString().
QString Graph::saveLabelsRotation | ( | ) | [slot] |
References labelsRotation().
Referenced by saveToString().
QString Graph::saveMarkers | ( | ) | [slot] |
References ArrowMarker::attachPolicy(), ArrowMarker::color(), d_enrichments, d_lines, ArrowMarker::endPointCoord(), ArrowMarker::filledArrowHead(), ArrowMarker::hasEndArrow(), ArrowMarker::hasStartArrow(), ArrowMarker::headAngle(), ArrowMarker::headLength(), penStyleName(), FrameWidget::saveToString(), ArrowMarker::startPointCoord(), ArrowMarker::style(), and ArrowMarker::width().
Referenced by saveToString().
QString Graph::savePieCurveLayout | ( | ) | [slot] |
References QwtPieCurve::color(), QwtPieCurve::counterClockwise(), curve(), DataCurve::endRow(), QwtPieCurve::firstColor(), QwtPieCurve::fixedLabelsPosition(), QwtPieCurve::horizontalOffset(), QwtPieCurve::labelCategories(), QwtPieCurve::labelsAutoFormat(), QwtPieCurve::labelsEdgeDistance(), QwtPieCurve::labelsPercentagesFormat(), QwtPieCurve::labelsValuesFormat(), QwtPieCurve::pattern(), PatternBox::patternIndex(), penStyleName(), QwtPieCurve::radius(), QwtPieCurve::startAzimuth(), DataCurve::startRow(), QwtPieCurve::thickness(), and QwtPieCurve::viewAngle().
Referenced by saveCurves().
QString Graph::saveScale | ( | ) | [slot] |
References d_user_step, and ScaleEngine::type().
Referenced by saveToString().
QString Graph::saveScaleTitles | ( | ) | [slot] |
References axisTitleString().
Referenced by saveToString().
QString Graph::saveTickLabelsSpace | ( | ) | [slot] |
References ScaleDraw::showTicksPolicy().
Referenced by saveToString().
QString Graph::saveTicksType | ( | ) | [slot] |
References getMajorTicksType(), and getMinorTicksType().
Referenced by saveToString().
QString Graph::saveTitle | ( | ) | [slot] |
Referenced by saveToString().
QString Graph::saveToString | ( | bool | saveAsTemplate = false |
) | [slot] |
References axesLinewidth(), d_active_tool, d_antialiasing, d_Douglas_Peuker_tolerance, d_speed_mode_points, frameColor(), grid(), ImageProfilesTool::horizontalTable(), majorTickLength(), ImageProfilesTool::matrix(), minorTickLength(), paletteBackgroundColor(), PlotToolInterface::rtti(), saveAxesBackbones(), saveAxesBaseline(), saveAxesColors(), saveAxesFormulas(), saveAxesLabelsType(), saveAxesTitleAlignement(), saveAxesTitleColors(), saveCanvas(), saveCurves(), saveEnabledAxes(), saveEnabledTickLabels(), saveFonts(), saveLabelsFormat(), saveLabelsPrefixAndSuffix(), saveLabelsRotation(), saveMarkers(), saveScale(), saveScaleTitles(), saveTickLabelsSpace(), saveTicksType(), saveTitle(), Grid::saveToString(), ImageProfilesTool::verticalTable(), ScreenPickerTool::xValue(), and ScreenPickerTool::yValue().
Referenced by MultiLayer::save().
void Graph::scaleFonts | ( | double | factor | ) | [slot] |
References curvesList(), d_enrichments, LegendWidget::font(), Function, notifyFontChange(), FrameWidget::resetOrigin(), setAxisFont(), and LegendWidget::setFont().
Referenced by MultiLayer::canvasPixmap(), MultiLayer::draw(), draw(), MultiLayer::exportVector(), exportVector(), graphPixmap(), MultiLayer::resizeLayers(), setCanvasGeometry(), and setCanvasSize().
void Graph::select | ( | QWidget * | l, | |
bool | add = false | |||
) |
ArrowMarker* Graph::selectedArrow | ( | ) | [inline, slot] |
References d_selected_arrow.
Referenced by ApplicationWindow::copyMarker(), CanvasPicker::eventFilter(), and ApplicationWindow::showLineDialog().
QwtPlotItem * Graph::selectedCurveLabels | ( | ) |
References curvesList(), and Function.
Referenced by dragEnterEvent(), and CanvasPicker::eventFilter().
QString Graph::selectedCurveTitle | ( | ) | [slot] |
void Graph::selectedGraph | ( | Graph * | ) | [signal] |
Referenced by activateGraph(), and selectTitle().
QwtScaleWidget * Graph::selectedScale | ( | ) | [slot] |
References scalePicker, and ScalePicker::selectedAxis().
Referenced by ApplicationWindow::enableTextEditor(), and TextEditor::TextEditor().
double Graph::selectedXEndValue | ( | ) | [slot] |
References d_range_selector.
Referenced by PolynomFitDialog::changeDataRange(), InterpolationDialog::changeDataRange(), FitDialog::changeDataRange(), and ExpDecayDialog::changeDataRange().
double Graph::selectedXStartValue | ( | ) | [slot] |
References d_range_selector.
Referenced by PolynomFitDialog::changeDataRange(), InterpolationDialog::changeDataRange(), FitDialog::changeDataRange(), and ExpDecayDialog::changeDataRange().
void Graph::selectionChanged | ( | SelectionMoveResizer * | ) | [signal] |
Referenced by select(), and selectorDeleted().
QPointer<SelectionMoveResizer> Graph::selectionMoveResizer | ( | ) | [inline] |
References d_markers_selector.
Referenced by ApplicationWindow::custom2DPlotTools(), and ApplicationWindow::raiseActiveEnrichment().
void Graph::selectorDeleted | ( | ) | [private, slot] |
References d_markers_selector, and selectionChanged().
Referenced by select().
void Graph::selectTitle | ( | bool | select = true |
) | [slot] |
References currentFontChanged(), deselect(), selectedGraph(), TitlePicker::setSelected(), and titlePicker.
Referenced by Graph(), select(), DataCurve::setLabelsSelected(), and setSelectedArrow().
void Graph::setActiveText | ( | LegendWidget * | l | ) | [inline] |
References d_active_enrichment.
Referenced by TextEditor::closeEvent().
void Graph::setActiveTool | ( | PlotToolInterface * | tool | ) |
Change the active tool, deleting the old one if it exists.
References d_active_tool, d_peak_fit_tool, d_range_selector, and PlotToolInterface::rtti().
Referenced by ApplicationWindow::addEllipse(), AddWidgetTool::addEquation(), ApplicationWindow::addRectangle(), ApplicationWindow::addTexFormula(), AddWidgetTool::addText(), ApplicationWindow::addText(), BaselineDialog::disableBaselineTool(), ApplicationWindow::drawPoints(), AddWidgetTool::eventFilter(), SubtractLineTool::finalize(), ApplicationWindow::fitMultiPeak(), ImportOPJ::importGraphs(), DataPickerTool::keyEventFilter(), BaselineDialog::modifyBaseline(), LineProfileTool::mouseReleaseEvent(), ApplicationWindow::movePoints(), ApplicationWindow::openGraph(), ApplicationWindow::pixelLineProfile(), ApplicationWindow::removePoints(), TranslateCurveTool::selectCurvePoint(), TranslateCurveTool::selectDestination(), ApplicationWindow::showCursor(), ApplicationWindow::showScreenReader(), ApplicationWindow::subtractStraightLine(), ApplicationWindow::translateCurve(), and EnrichmentDialog::~EnrichmentDialog().
void Graph::setAntialiasing | ( | bool | on = true , |
|
bool | update = true | |||
) | [slot] |
Enables/Disables antialiasing of plot items.
References d_antialiasing, d_curves, and d_lines.
Referenced by PlotDialog::applyFormatToLayer(), copy(), ApplicationWindow::openGraph(), ApplicationWindow::setGraphDefaultSettings(), and ApplicationWindow::setPreferences().
void Graph::setAutoScale | ( | ) | [slot] |
References d_user_step, modifiedGraph(), and updateScale().
Referenced by PlotDialog::acceptParams(), BaselineDialog::createBaseline(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::setAutoScale(), and showAxisContextMenu().
void Graph::setAutoscaleFonts | ( | bool | on = true |
) | [inline, slot] |
References autoScaleFonts.
Referenced by PlotDialog::applyFormatToLayer(), MultiLayer::arrangeLayers(), MultiLayer::copy(), ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), MultiLayer::setEqualSizedLayers(), ApplicationWindow::setGraphDefaultSettings(), ApplicationWindow::setPreferences(), and MultiLayer::updateWaterfallLayout().
void Graph::setAxesLinewidth | ( | int | width | ) |
References axesLinewidth(), d_grid, modifiedGraph(), Grid::xZeroLineMarker(), and Grid::yZeroLineMarker().
Referenced by AxesDialog::applyCanvasFormatTo(), copy(), loadAxesLinewidth(), and ApplicationWindow::setPreferences().
void Graph::setAxisColor | ( | int | axis, | |
const QColor & | color | |||
) | [slot] |
References d_grid, Grid::xZeroLineMarker(), and Grid::yZeroLineMarker().
Referenced by ApplicationWindow::openGraph().
void Graph::setAxisFont | ( | int | axis, | |
const QFont & | fnt | |||
) | [slot] |
void Graph::setAxisFormula | ( | int | axis, | |
const QString & | formula | |||
) | [slot] |
References ScaleDraw::setFormula().
Referenced by ApplicationWindow::openGraph().
void Graph::setAxisLabelRotation | ( | int | axis, | |
int | rotation | |||
) | [slot] |
Referenced by copy(), ApplicationWindow::openGraph(), MultiLayer::plotProfiles(), setAxisFormat(), and showAxis().
void Graph::setAxisLabelsColor | ( | int | axis, | |
const QColor & | color | |||
) | [slot] |
Referenced by ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), and setAxisFormat().
void Graph::setAxisMargin | ( | int | axis, | |
int | margin | |||
) | [slot] |
Referenced by ApplicationWindow::openGraph().
void Graph::setAxisTicksLength | ( | int | axis, | |
int | majTicksType, | |||
int | minTicksType, | |||
int | minLength, | |||
int | majLength | |||
) | [slot] |
References ScaleDraw::In, ScaleDraw::None, ScaleDraw::setMajorTicksStyle(), ScaleDraw::setMinorTicksStyle(), and setTickLength().
Referenced by AxesDialog::applyAxisFormatToLayer(), setAxisFormat(), setTicksLength(), and showAxis().
void Graph::setAxisTitle | ( | int | axis, | |
const QString & | text | |||
) | [slot] |
References d_axis_titles, modifiedGraph(), and parseAxisTitle().
Referenced by ApplicationWindow::addInsetLayer(), TextDialog::apply(), clearAxisTitle(), TextEditor::closeEvent(), ImportOPJ::importGraphs(), FFT::output(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::plotImage(), MultiLayer::plotProfiles(), removeAxisTitle(), setAxisFormat(), MultiLayer::setFonts(), ApplicationWindow::setPreferences(), setRightAxisTitle(), setScaleTitle(), setTopAxisTitle(), setXAxisTitle(), setYAxisTitle(), AxesDialog::updatePlot(), and ApplicationWindow::zoomRectanglePlot().
void Graph::setAxisTitleAlignment | ( | int | axis, | |
int | align | |||
) | [slot] |
Referenced by ApplicationWindow::openGraph().
void Graph::setAxisTitleColor | ( | int | axis, | |
const QColor & | c | |||
) | [slot] |
Referenced by ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), and setAxisFormat().
void Graph::setAxisTitleDistance | ( | int | axis, | |
int | dist | |||
) | [slot] |
Referenced by ApplicationWindow::openGraph(), ApplicationWindow::setPreferences(), and AxesDialog::updatePlot().
void Graph::setAxisTitleFont | ( | int | axis, | |
const QFont & | fnt | |||
) | [slot] |
References modifiedGraph().
Referenced by AxesDialog::customAxisLabelFont(), ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), and setAxisFormat().
void Graph::setAxisTitlePolicy | ( | const AxisTitlePolicy & | policy | ) | [inline] |
References d_axis_title_policy.
Referenced by ConfigDialog::apply(), copy(), ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), and ApplicationWindow::setPreferences().
void Graph::setBackgroundColor | ( | const QColor & | color | ) | [slot] |
void Graph::setBarsGap | ( | int | curve, | |
int | gapPercent, | |||
int | offset | |||
) | [slot] |
Used for VerticalBars, HorizontalBars and Histograms.
References curve(), QwtBarCurve::gap(), QwtBarCurve::offset(), QwtBarCurve::setGap(), and QwtBarCurve::setOffset().
Referenced by PlotDialog::acceptParams(), and ApplicationWindow::openGraph().
void Graph::setCanvasCoordinates | ( | const QRectF & | r | ) | [slot] |
References setScale().
Referenced by ApplicationWindow::zoomRectanglePlot().
void Graph::setCanvasFrame | ( | int | width = 1 , |
|
const QColor & | color = QColor(Qt::black) | |||
) | [slot] |
void Graph::setCanvasGeometry | ( | const QRect & | cr | ) |
Adjust plot content to its canvas size.
cr | The new geometry of the canvas. |
References autoScaleFonts, scaleFonts(), and updateMarkersBoundingRect().
Referenced by PlotDialog::acceptParams(), MultiLayer::arrangeLayers(), ImportOPJ::importGraphs(), ApplicationWindow::pasteSelection(), and MultiLayer::plotProfiles().
void Graph::setCanvasGeometry | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [inline] |
Convenience function for scripts.
References setCanvasGeometry().
Referenced by setCanvasGeometry().
void Graph::setCanvasSize | ( | int | w, | |
int | h | |||
) | [inline] |
void Graph::setCanvasSize | ( | const QSize & | size | ) |
Adjust plot content to its canvas size.
cr | The new size of the canvas. |
References autoScaleFonts, scaleFonts(), and updateMarkersBoundingRect().
Referenced by PlotDialog::applyCanvasSize(), and MultiLayer::arrangeLayers().
void Graph::setCurrentFont | ( | const QFont & | f | ) | [slot] |
References curvesList(), d_active_enrichment, ScalePicker::labelsSelected(), modifiedGraph(), scalePicker, TitlePicker::selected(), ScalePicker::selectedAxis(), LegendWidget::setFont(), titlePicker, and ScalePicker::titleSelected().
Referenced by ApplicationWindow::setBoldFont(), ApplicationWindow::setFontFamily(), ApplicationWindow::setFontSize(), and ApplicationWindow::setItalicFont().
void Graph::setCurveFullRange | ( | int | curveIndex | ) | [slot] |
References curve(), modifiedGraph(), DataCurve::setFullRange(), and updatePlot().
Referenced by ApplicationWindow::setCurveFullRange().
void Graph::setCurveLineColor | ( | int | curveIndex, | |
int | colorIndex | |||
) | [slot] |
References curve(), ColorBox::defaultColor(), and modifiedGraph().
void Graph::setCurveLineColor | ( | int | curveIndex, | |
QColor | qColor | |||
) | [slot] |
References curve(), and modifiedGraph().
void Graph::setCurveLineStyle | ( | int | curveIndex, | |
Qt::PenStyle | style | |||
) | [slot] |
References curve(), and modifiedGraph().
void Graph::setCurveLineWidth | ( | int | curveIndex, | |
double | width | |||
) | [slot] |
References curve(), and modifiedGraph().
void Graph::setCurveStyle | ( | int | index, | |
int | s | |||
) | [slot] |
References Box, curve(), ErrorBars, Function, Histogram, HorizontalBars, HorizontalSteps, Line, LineSymbols, Pie, PlotCurve::plotStyle(), Scatter, PlotCurve::setPlotStyle(), Spline, VectXYAM, VectXYXY, VerticalBars, VerticalDropLines, and VerticalSteps.
Referenced by PlotDialog::acceptParams(), PlotDialog::applyLineFormatToLayer(), PlotDialog::changePlotType(), ImportOPJ::importGraphs(), and FunctionCurve::restore().
void Graph::setEscapeTeXStringsMode | ( | bool | on = true |
) | [inline, slot] |
References d_tex_escape_strings.
Referenced by MultiLayer::exportTeX().
void Graph::setFrame | ( | int | width = 1 , |
|
const QColor & | color = Qt::black | |||
) | [slot] |
void Graph::setGrayScale | ( | ) | [slot] |
void Graph::setIndexedColors | ( | ) | [slot] |
void Graph::setLabelsDateTimeFormat | ( | int | axis, | |
int | type, | |||
const QString & | formatInfo | |||
) | [slot] |
References ScaleDraw::Date, drawAxesBackbone, ScaleDraw::setDateFormat(), ScaleDraw::setTimeFormat(), and ScaleDraw::Time.
Referenced by copy(), insertCurve(), ApplicationWindow::openGraph(), showAxis(), and updateSecondaryAxis().
void Graph::setLabelsDayFormat | ( | int | axis, | |
int | format | |||
) | [slot] |
References ScaleDraw::setDayFormat().
Referenced by copy(), ApplicationWindow::openGraph(), showAxis(), and updateSecondaryAxis().
void Graph::setLabelsMonthFormat | ( | int | axis, | |
int | format | |||
) | [slot] |
References ScaleDraw::setMonthFormat().
Referenced by copy(), ApplicationWindow::openGraph(), showAxis(), and updateSecondaryAxis().
void Graph::setLabelsNumericFormat | ( | int | axis, | |
int | format, | |||
int | prec = 6 , |
|||
const QString & | formula = QString() | |||
) | [slot] |
References ScaleDraw::setNumericFormat(), and ScaleDraw::setNumericPrecision().
void Graph::setLabelsNumericFormat | ( | const QStringList & | l | ) | [slot] |
Used for restoring project files.
References ScaleDraw::formula().
Referenced by copy(), ApplicationWindow::openGraph(), and showAxis().
void Graph::setLabelsTextFormat | ( | int | axis, | |
int | type, | |||
const QString & | name, | |||
const QStringList & | lst | |||
) | [slot] |
References ScaleDraw::ColHeader, ScaleDraw::format(), ScaleDraw::labelsList(), ScaleDraw::scaleType(), and ScaleDraw::Text.
Referenced by DataCurve::loadData(), ApplicationWindow::openGraph(), and showAxis().
void Graph::setLabelsTextFormat | ( | int | axis, | |
int | type, | |||
const QString & | labelsColName, | |||
Table * | table | |||
) | [slot] |
void Graph::setLegend | ( | const QString & | s | ) | [slot] |
References legend(), and LegendWidget::setText().
void Graph::setMajorTicksType | ( | int | axis, | |
int | type | |||
) |
References ScaleDraw::setMajorTicksStyle().
Referenced by copy(), ApplicationWindow::openGraph(), setMajorTicksType(), and ApplicationWindow::setPreferences().
void Graph::setMajorTicksType | ( | const QList< int > & | lst | ) | [slot] |
void Graph::setMajorTicksType | ( | const QStringList & | lst | ) | [slot] |
References setMajorTicksType().
void Graph::setMinorTicksType | ( | const QList< int > & | lst | ) | [slot] |
References getMinorTicksType(), and setMinorTicksType().
void Graph::setMinorTicksType | ( | const QStringList & | lst | ) | [slot] |
References setMinorTicksType().
void Graph::setMinorTicksType | ( | int | axis, | |
int | type | |||
) |
References ScaleDraw::setMinorTicksStyle().
Referenced by copy(), ApplicationWindow::openGraph(), setMinorTicksType(), and ApplicationWindow::setPreferences().
void Graph::setRightAxisTitle | ( | const QString & | text | ) | [slot] |
References modifiedGraph(), and setAxisTitle().
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 , |
|||
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 | |||
) | [slot] |
References axisBoundingInterval(), axisDivChanged(), d_synchronize_scales, d_user_step, d_zoomer, ScaleEngine::divideScale(), ScaleEngine::drawBreakDecoration(), ScaleTransformation::Ln, ScaleTransformation::Log10, ScaleTransformation::Log2, ScaleTransformation::Reciprocal, ScaleEngine::setBreakPosition(), ScaleEngine::setBreakRegion(), ScaleEngine::setBreakWidth(), ScaleEngine::setLog10ScaleAfterBreak(), ScaleEngine::setMinTicksAfterBreak(), ScaleEngine::setMinTicksBeforeBreak(), ScaleEngine::setStepAfterBreak(), ScaleEngine::setStepBeforeBreak(), ScaleEngine::setType(), updateMarkersBoundingRect(), and updateSecondaryAxis().
Referenced by ImportOPJ::importGraphs(), ImageProfilesTool::modifiedMatrix(), ApplicationWindow::openGraph(), ApplicationWindow::plotImage(), MultiLayer::plotProfiles(), setAxisFormat(), setCanvasCoordinates(), MultiLayer::updateLayerAxes(), and AxesDialog::updatePlot().
void Graph::setScaleTitle | ( | int | axis, | |
const QString & | text | |||
) | [slot] |
TODO: eliminate this function in version 0.9.1 (used only when restoring project files).
References setAxisTitle().
Referenced by ApplicationWindow::openGraph().
void Graph::setSelectedArrow | ( | ArrowMarker * | mrk, | |
bool | add = false | |||
) | [slot] |
Set the selected arrow.
mrk | key of the arrow to be selected. | |
add | whether the arrow 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. |
References d_lines, d_markers_selector, d_selected_arrow, ScalePicker::deselect(), ArrowMarker::editable(), modifiedGraph(), scalePicker, and selectTitle().
Referenced by CanvasPicker::selectMarker().
void Graph::setSynchronizedScaleDivisions | ( | bool | on | ) | [inline] |
References d_synchronize_scales.
Referenced by ConfigDialog::apply(), ApplicationWindow::openGraph(), and ApplicationWindow::setPreferences().
void Graph::setTeXExportingMode | ( | bool | on = true |
) | [inline, slot] |
References d_is_exporting_tex.
Referenced by MultiLayer::exportTeX().
void Graph::setTickLength | ( | int | minLength, | |
int | majLength | |||
) |
References d_maj_tick_length, and d_min_tick_length.
Referenced by setAxisTicksLength().
void Graph::setTicksLength | ( | int | minLength, | |
int | majLength | |||
) | [slot] |
References getMajorTicksType(), getMinorTicksType(), and setAxisTicksLength().
Referenced by changeTicksLength(), copy(), ApplicationWindow::openGraph(), and ApplicationWindow::setPreferences().
void Graph::setTitleAlignment | ( | int | align | ) | [slot] |
References modifiedGraph().
Referenced by ApplicationWindow::openGraph().
void Graph::setTitleColor | ( | const QColor & | c | ) | [slot] |
References modifiedGraph().
Referenced by ApplicationWindow::openGraph().
void Graph::setTitleFont | ( | const QFont & | fnt | ) | [slot] |
References modifiedGraph().
Referenced by ApplicationWindow::openGraph().
void Graph::setTopAxisTitle | ( | const QString & | text | ) | [slot] |
References modifiedGraph(), and setAxisTitle().
void Graph::setXAxisTitle | ( | const QString & | text | ) | [slot] |
References modifiedGraph(), and setAxisTitle().
Referenced by LineProfileTool::calculateLineProfile(), and FFT::output().
void Graph::setYAxisTitle | ( | const QString & | text | ) | [slot] |
References modifiedGraph(), and setAxisTitle().
Referenced by LineProfileTool::calculateLineProfile(), and FFT::output().
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, | |||
int | spacing = 4 , |
|||
bool | backbone = true , |
|||
const ScaleDraw::ShowTicksPolicy & | showTicks = ScaleDraw::ShowAll , |
|||
const QString & | prefix = QString::null , |
|||
const QString & | suffix = QString::null | |||
) | [slot] |
References axisColor(), axisLabelFormat(), axisLabelPrecision(), axisLabelsColor(), d_grid, d_synchronize_scales, ScaleDraw::Date, ScaleDraw::Day, enableAxis(), ScaleDraw::formatString(), ScaleDraw::formula(), getMajorTicksType(), getMinorTicksType(), labelsRotation(), majorTickLength(), minorTickLength(), modifiedGraph(), ScaleDraw::Month, ScaleDraw::Numeric, ScaleDraw::prefix(), ScalePicker::refresh(), scalePicker, ScaleDraw::scaleType(), setAxisLabelRotation(), setAxisTicksLength(), setLabelsDateTimeFormat(), setLabelsDayFormat(), setLabelsMonthFormat(), setLabelsNumericFormat(), setLabelsTextFormat(), ScaleDraw::setPrefix(), ScaleDraw::setShowTicksPolicy(), ScaleDraw::setSuffix(), ScaleDraw::showTicksPolicy(), ScaleDraw::suffix(), ScaleDraw::Time, updateLayout(), updateSecondaryAxis(), Grid::xZeroLineMarker(), and Grid::yZeroLineMarker().
Referenced by ImportOPJ::importGraphs(), and AxesDialog::showAxis().
void Graph::showAxisContextMenu | ( | int | axis | ) | [slot] |
References grid(), hideSelectedAxis(), setAutoScale(), showAxisDialog(), showGrids(), and showScaleDialog().
Referenced by Graph().
void Graph::showAxisDialog | ( | int | ) | [signal] |
void Graph::showAxisDialog | ( | ) | [slot] |
References ScalePicker::currentAxis(), and scalePicker.
Referenced by showAxisContextMenu().
void Graph::showAxisTitleDialog | ( | ) | [signal] |
Referenced by enableTextEditor(), and showAxisTitleMenu().
void Graph::showAxisTitleMenu | ( | ) | [slot] |
References clearAxisTitle(), copyAxisTitle(), cutAxisTitle(), removeAxisTitle(), and showAxisTitleDialog().
Referenced by Graph().
void Graph::showContextMenu | ( | ) | [signal] |
Referenced by contextMenuEvent().
void Graph::showCurve | ( | int | index, | |
bool | visible = true | |||
) | [slot] |
Shows/Hides a curve defined by its index.
References modifiedGraph(), and plotItem().
Referenced by ApplicationWindow::hideCurve(), ApplicationWindow::hideOtherCurves(), and ApplicationWindow::showAllCurves().
void Graph::showCurveContextMenu | ( | QwtPlotItem * | ) | [signal] |
Referenced by contextMenuEvent().
void Graph::showEvent | ( | QShowEvent * | event | ) | [private] |
References updateCurveLabels().
void Graph::showFitResults | ( | const QString & | ) | [signal] |
void Graph::showGrid | ( | ) | [slot] |
Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales.
Referenced by showGrids(), and ApplicationWindow::zoomRectanglePlot().
void Graph::showGrid | ( | int | axis | ) | [slot] |
Convenience function enabling the grid for a user defined axis.
References d_grid, and modifiedGraph().
void Graph::showGrids | ( | ) | [slot] |
References ScalePicker::currentAxis(), scalePicker, and showGrid().
Referenced by showAxisContextMenu().
void Graph::showMarkerPopupMenu | ( | ) | [signal] |
Referenced by contextMenuEvent(), and Graph().
void Graph::showPlotDialog | ( | int | ) | [signal] |
Referenced by Graph().
void Graph::showPlotErrorMessage | ( | QWidget * | parent, | |
const QStringList & | emptyColumns | |||
) | [static, slot] |
Referenced by CurvesDialog::addCurves().
void Graph::showScaleDialog | ( | ) | [slot] |
References axisDblClicked(), ScalePicker::currentAxis(), and scalePicker.
Referenced by showAxisContextMenu().
void Graph::showTitleContextMenu | ( | ) | [slot] |
References clearTitle(), copyTitle(), cutTitle(), removeTitle(), and viewTitleDialog().
Referenced by Graph().
Spectrogram * Graph::spectrogram | ( | Matrix * | m | ) | [slot] |
Returns a pointer to the spectrogram which data source is matrix m (the pointer can be NULL).
References d_curves, and Spectrogram::matrix().
Referenced by plotSpectrogram().
int Graph::speedModeMaxPoints | ( | ) | [inline] |
References d_speed_mode_points.
Referenced by DataCurve::enableSpeedMode(), and PlotDialog::setActiveLayer().
QList< FrameWidget * > Graph::stackingOrderEnrichmentsList | ( | ) | [private] |
References MultiLayer::canvas(), d_enrichments, multiLayer(), and FrameWidget::plot().
Referenced by print().
QString Graph::texSuperscripts | ( | const QString & | text | ) | [static] |
Referenced by LegendWidget::parse(), print(), and printScale().
QList< LegendWidget * > Graph::textsList | ( | ) |
References d_enrichments.
Referenced by MultiLayer::reverseWaterfallOrder(), and MultiLayer::setFonts().
bool Graph::titleSelected | ( | ) | [slot] |
References TitlePicker::selected(), and titlePicker.
Referenced by ApplicationWindow::clearSelection(), ApplicationWindow::enableTextEditor(), and TextEditor::TextEditor().
void Graph::updateAxesTitles | ( | ) | [slot] |
References parseAxisTitle().
Referenced by addCurves(), CurvesDialog::addCurves(), copy(), Graph(), and ApplicationWindow::openGraph().
void Graph::updateCurveLabels | ( | ) |
References curvesList(), and Function.
Referenced by ImportOPJ::importGraphs(), resizeEvent(), and showEvent().
void Graph::updateCurveLayout | ( | PlotCurve * | c, | |
const CurveLayout * | cL | |||
) | [slot] |
References CurveLayout::aCol, CurveLayout::aStyle, PatternBox::brushStyle(), CurveLayout::connectType, curveIndex(), d_curves, CurveLayout::fillCol, CurveLayout::filledArea, getPenStyle(), CurveLayout::lCol, CurveLayout::lStyle, CurveLayout::lWidth, CurveLayout::penWidth, PlotCurve::plotStyle(), Scatter, Spline, CurveLayout::sSize, SymbolBox::style(), CurveLayout::sType, CurveLayout::symCol, and VerticalSteps.
Referenced by CurvesDialog::addCurve(), addCurves(), ImportOPJ::importGraphs(), insertCurve(), ApplicationWindow::openGraph(), and PlotWizard::plot2D().
void Graph::updateCurveNames | ( | const QString & | oldName, | |
const QString & | newName, | |||
bool | updateTableName = true | |||
) | [slot] |
References d_curves, Function, DataCurve::plotAssociation(), PlotCurve::type(), and DataCurve::updateColumnNames().
Referenced by ApplicationWindow::updateColNames(), and ApplicationWindow::updateTableNames().
void Graph::updateCurvesData | ( | Table * | w, | |
const QString & | yColName | |||
) | [slot] |
References d_curves, PlotCurve::type(), updateMarkersBoundingRect(), and updatePlot().
Referenced by ApplicationWindow::updateCurves().
void Graph::updatedLayout | ( | Graph * | ) | [signal] |
Referenced by updateLayout().
void Graph::updateErrorBars | ( | QwtErrorPlotCurve * | er, | |
bool | xErr, | |||
double | width, | |||
int | cap, | |||
const QColor & | c, | |||
bool | plus, | |||
bool | minus, | |||
bool | through | |||
) | [slot] |
References QwtErrorPlotCurve::capLength(), QwtErrorPlotCurve::color(), QwtErrorPlotCurve::drawMinusSide(), QwtErrorPlotCurve::drawPlusSide(), QwtErrorPlotCurve::drawThroughSymbol(), QwtErrorPlotCurve::minusSide(), modifiedGraph(), QwtErrorPlotCurve::plusSide(), QwtErrorPlotCurve::setCapLength(), QwtErrorPlotCurve::setColor(), QwtErrorPlotCurve::setWidth(), QwtErrorPlotCurve::setXErrors(), QwtErrorPlotCurve::throughSymbol(), QwtErrorPlotCurve::width(), and QwtErrorPlotCurve::xErrors().
Referenced by PlotDialog::applyErrorBarFormatToCurve(), and PlotDialog::pickErrorBarsColor().
void Graph::updateLayout | ( | ) |
Adjust plot content to its current size. Must be reimplemented because the base implementation adds a mask causing an ugly drawing artefact.
References updatedLayout().
Referenced by AxesDialog::applyAxisFormatToLayer(), copy(), ImportOPJ::importGraphs(), insertText(), ApplicationWindow::openGraph(), resizeEvent(), TexWidget::restore(), MultiLayer::setCommonLayerAxes(), showAxis(), and Spectrogram::showColorScale().
void Graph::updateMarkersBoundingRect | ( | bool | rescaleEvent = true |
) | [slot] |
Keep the markers on screen each time the scales are modified by adding/removing curves.
References FrameWidget::attachPolicy(), axisDivChanged(), d_enrichments, d_lines, d_panner, multiLayer(), FrameWidget::resetCoordinates(), FrameWidget::resetOrigin(), and FrameWidget::updateCoordinates().
Referenced by enablePanningMagnifier(), setCanvasGeometry(), setCanvasSize(), FunctionDialog::setConstants(), setScale(), updateCurvesData(), updateScale(), MultiLayer::updateWaterfallLayout(), and zoomed().
void Graph::updatePlot | ( | ) | [slot] |
References d_active_tool, d_auto_scale, d_user_step, updateScale(), and zoomOn().
Referenced by CurveRangeDialog::accept(), CurvesDialog::addCurves(), addErrorBars(), addFunction(), addHistogram(), Filter::addResultCurve(), Correlation::addResultCurve(), Convolution::addResultCurve(), DrawPointTool::appendPoint(), modifyFunctionCurve(), FFT::output(), Differentiation::output(), PlotWizard::plot2D(), plotVectorCurve(), ApplicationWindow::remove3DMatrixPlots(), ApplicationWindow::removeCurve(), CurvesDialog::removeCurves(), PlotDialog::removeSelectedCurve(), FunctionCurve::restore(), setCurveFullRange(), RangeSelectorTool::setCurveRange(), Fit::showConfidenceLimits(), Fit::showPredictionLimits(), Fit::showResiduals(), AssociationsDialog::updateCurves(), updateCurvesData(), and ApplicationWindow::updateMatrixPlots().
void Graph::updateScale | ( | ) | [slot] |
References d_auto_scale, d_synchronize_scales, d_zoomer, updateMarkersBoundingRect(), and updateSecondaryAxis().
Referenced by PlotDialog::acceptParams(), setAutoScale(), ApplicationWindow::setGraphDefaultSettings(), and updatePlot().
void Graph::updateSecondaryAxis | ( | int | axis, | |
bool | changeFormat = false | |||
) | [slot] |
References ScaleEngine::clone(), Spectrogram::colorScaleAxis(), d_curves, d_user_step, ScaleDraw::Date, ScaleDraw::Day, ScaleDraw::formatString(), ScaleDraw::labelsList(), ScaleDraw::Month, ScaleDraw::nameFormat(), ScaleDraw::scaleType(), setLabelsDateTimeFormat(), setLabelsDayFormat(), setLabelsMonthFormat(), and ScaleDraw::Time.
Referenced by addCurves(), plotSpectrogram(), FunctionDialog::setConstants(), ApplicationWindow::setPreferences(), setScale(), showAxis(), updateScale(), and zoomOut().
void Graph::updateVectorsLayout | ( | int | curve, | |
const QColor & | color, | |||
double | width, | |||
int | arrowLength, | |||
int | arrowAngle, | |||
bool | filled, | |||
int | position, | |||
const QString & | xEndColName = QString() , |
|||
const QString & | yEndColName = QString() | |||
) | [slot] |
References curve(), VectorCurve::fillArrowHead(), modifiedGraph(), VectorCurve::setColor(), VectorCurve::setHeadAngle(), VectorCurve::setHeadLength(), VectorCurve::setPosition(), VectorCurve::setVectorEnd(), and VectorCurve::setWidth().
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and ApplicationWindow::openGraph().
bool Graph::validCurvesDataSize | ( | ) | [slot] |
References d_curves.
Referenced by ApplicationWindow::analysis(), ApplicationWindow::baselineDialog(), ApplicationWindow::fitMultiPeak(), ApplicationWindow::movePoints(), ApplicationWindow::removePoints(), ApplicationWindow::showCursor(), ApplicationWindow::showExpDecayDialog(), ApplicationWindow::showFFTDialog(), ApplicationWindow::showFilterDialog(), ApplicationWindow::showFitDialog(), ApplicationWindow::showFitPolynomDialog(), ApplicationWindow::showInterpolationDialog(), ApplicationWindow::showSmoothDialog(), ApplicationWindow::subtractReferenceData(), ApplicationWindow::subtractStraightLine(), and ApplicationWindow::translateCurve().
void Graph::viewLineDialog | ( | ) | [signal] |
Referenced by Graph().
void Graph::viewTitleDialog | ( | ) | [signal] |
Referenced by enableTextEditor(), and showTitleContextMenu().
int Graph::visibleCurves | ( | ) | [slot] |
References d_curves.
Referenced by ApplicationWindow::showCurveContextMenu(), and ApplicationWindow::showGraphContextMenu().
void Graph::zoom | ( | bool | on | ) | [slot] |
References d_curves, and d_zoomer.
Referenced by disableTools(), Graph(), and ApplicationWindow::zoomIn().
void Graph::zoomed | ( | const QwtDoubleRect & | ) | [slot] |
References axisDivChanged(), modifiedGraph(), and updateMarkersBoundingRect().
Referenced by Graph().
bool Graph::zoomOn | ( | ) | [slot] |
References d_zoomer.
Referenced by ApplicationWindow::custom2DPlotTools(), disableTools(), dragEnterEvent(), CanvasPicker::eventFilter(), hasActiveTool(), MultiLayer::removeLayer(), MultiLayer::setNumLayers(), and updatePlot().
void Graph::zoomOut | ( | ) | [slot] |
References d_synchronize_scales, d_zoomer, and updateSecondaryAxis().
bool Graph::autoScaleFonts [private] |
Referenced by autoscaleFonts(), copy(), Graph(), setAutoscaleFonts(), setCanvasGeometry(), and setCanvasSize().
CanvasPicker* Graph::cp [private] |
Referenced by deselectMarker(), Graph(), remove(), and ~Graph().
FrameWidget* Graph::d_active_enrichment [private] |
Pointer to the currently selected text/legend.
Referenced by activeEnrichment(), activeText(), add(), addText(), deselectMarker(), Graph(), imageMarkerSelected(), insertText(), markerSelected(), remove(), removeMarker(), select(), setActiveText(), and setCurrentFont().
PlotToolInterface* Graph::d_active_tool [private] |
The currently active tool, or NULL for default (pointer).
Referenced by activeTool(), copy(), disableTools(), dragEnterEvent(), Graph(), hasActiveTool(), saveToString(), setActiveTool(), updatePlot(), and ~Graph().
bool Graph::d_antialiasing [private] |
Render hint for plot items.
Referenced by antialiasing(), Graph(), insertCurve(), insertMarker(), saveToString(), and setAntialiasing().
bool Graph::d_auto_scale [private] |
Flag indicating if the axes limits should be changed in order to show all data each time a curva data change occurs.
Referenced by copy(), enableAutoscaling(), Graph(), isAutoscalingEnabled(), updatePlot(), and updateScale().
AxisTitlePolicy Graph::d_axis_title_policy [private] |
Referenced by axisTitlePolicy(), Graph(), parseAxisTitle(), and setAxisTitlePolicy().
QStringList Graph::d_axis_titles [private] |
Referenced by axisTitleString(), copy(), Graph(), parseAxisTitle(), and setAxisTitle().
QList<QwtPlotItem*> Graph::d_curves [private] |
List storing pointers to the curves on the plot.
Referenced by addErrorBars(), addLegendItem(), analysableCurvesList(), changeCurveIndex(), closestCurve(), curve(), curveCount(), curveIndex(), curveNamesList(), curvesList(), drawItems(), enableDouglasPeukerSpeedMode(), enablePanningMagnifier(), generateFunctionName(), guessUniqueCurveLayout(), initCurveLayout(), insertCurve(), isPiePlot(), legendText(), masterCurve(), pieLegendText(), plotItem(), plotItemsList(), print(), removeCurve(), removeCurves(), removeLegendItem(), saveCurves(), setAntialiasing(), setGrayScale(), setIndexedColors(), spectrogram(), updateCurveLayout(), updateCurveNames(), updateCurvesData(), updateSecondaryAxis(), validCurvesDataSize(), visibleCurves(), and zoom().
double Graph::d_Douglas_Peuker_tolerance [private] |
Referenced by copy(), copyCurves(), enableDouglasPeukerSpeedMode(), getDouglasPeukerTolerance(), Graph(), and saveToString().
QList<FrameWidget*> Graph::d_enrichments [private] |
Referenced by add(), addImage(), addLegendItem(), addTexFormula(), addText(), boundingRect(), enrichmentsList(), increasingAreaEnrichmentsList(), insertImageMarker(), insertText(), legend(), modifyFunctionCurve(), newLegend(), plotBoxDiagram(), raiseEnrichements(), remove(), removeLegendItem(), resizeEvent(), saveMarkers(), scaleFonts(), stackingOrderEnrichmentsList(), textsList(), updateMarkersBoundingRect(), and ~Graph().
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.
Referenced by addFitCurve(), copyCurves(), deleteFitCurves(), fitCurvesList(), and removeCurve().
Grid* Graph::d_grid [private] |
Pointer to the grid.
Referenced by drawItems(), Graph(), grid(), setAxesLinewidth(), setAxisColor(), showAxis(), and showGrid().
bool Graph::d_is_exporting_tex [private] |
Referenced by exportTeX(), Graph(), isExportingTeX(), print(), printScale(), and setTeXExportingMode().
bool Graph::d_is_printing [private] |
Flag telling if we are performing a print operation.
Referenced by drawItems(), Graph(), isPrinting(), and print().
QList<ArrowMarker*> Graph::d_lines [private] |
Arrows/lines on plot.
Referenced by addArrow(), arrowMarkerSelected(), arrowsList(), deselectMarker(), numArrows(), remove(), removeMarker(), saveMarkers(), setAntialiasing(), setSelectedArrow(), and updateMarkersBoundingRect().
QwtPlotMagnifier* Graph::d_magnifier [private] |
Referenced by enablePanningMagnifier(), Graph(), hasActiveTool(), hasPanningMagnifierEnabled(), magnifyTool(), and ~Graph().
int Graph::d_maj_tick_length [private] |
Referenced by drawBreak(), drawInwardTicks(), Graph(), majorTickLength(), and setTickLength().
QPointer<SelectionMoveResizer> Graph::d_markers_selector [private] |
The markers selected for move/resize operations or NULL if none are selected.
Referenced by deselect(), deselectMarker(), hasSeletedItems(), remove(), select(), selectionMoveResizer(), selectorDeleted(), setSelectedArrow(), and ~Graph().
int Graph::d_min_tick_length [private] |
Axes tick lengths.
Referenced by drawInwardTicks(), Graph(), minorTickLength(), and setTickLength().
QwtPlotPanner* Graph::d_panner [private] |
PlotToolInterface * Graph::d_peak_fit_tool [private] |
Referenced by disableTools(), Graph(), hasActiveTool(), setActiveTool(), and ~Graph().
QPointer<RangeSelectorTool> Graph::d_range_selector [private] |
The current curve selection, or NULL if none is active.
Referenced by disableTools(), enableRangeSelectors(), Graph(), hasActiveTool(), range(), rangeSelectorsEnabled(), rangeSelectorTool(), removeCurve(), selectedCurveTitle(), selectedXEndValue(), selectedXStartValue(), setActiveTool(), and ~Graph().
ArrowMarker* Graph::d_selected_arrow [private] |
Pointer to the currently selected line/image.
Referenced by arrowMarkerSelected(), contextMenuEvent(), deselectMarker(), Graph(), markerSelected(), remove(), removeMarker(), selectedArrow(), and setSelectedArrow().
int Graph::d_speed_mode_points [private] |
Referenced by copyCurves(), enableDouglasPeukerSpeedMode(), Graph(), saveToString(), and speedModeMaxPoints().
bool Graph::d_synchronize_scales [private] |
Referenced by Graph(), setScale(), setSynchronizedScaleDivisions(), showAxis(), updateScale(), and zoomOut().
bool Graph::d_tex_escape_strings [private] |
Referenced by escapeTeXStrings(), exportTeX(), Graph(), print(), printScale(), and setEscapeTeXStringsMode().
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.
Referenced by axisStep(), copy(), Graph(), saveScale(), setAutoScale(), setScale(), updatePlot(), and updateSecondaryAxis().
QwtPlotZoomer* Graph::d_zoomer[2] [private] |
Referenced by addCurves(), copy(), Graph(), plotSpectrogram(), setScale(), updateScale(), zoom(), zoomOn(), and zoomOut().
bool Graph::drawArrowOn [private] |
Referenced by drawArrow(), drawLine(), and Graph().
bool Graph::drawAxesBackbone [private] |
Referenced by axesBackbones(), drawAxesBackbones(), Graph(), loadAxesOptions(), saveAxesBackbones(), and setLabelsDateTimeFormat().
bool Graph::drawLineOn [private] |
Referenced by drawLine(), drawLineActive(), and Graph().
ScalePicker* Graph::scalePicker [private] |
Referenced by axisTitleRect(), axisTitleSelected(), clearAxisTitle(), copyAxisTitle(), currentScale(), deselect(), enableAxis(), Graph(), hasSeletedItems(), hideSelectedAxis(), plotPie(), removeAxisTitle(), select(), selectedScale(), setCurrentFont(), setSelectedArrow(), showAxis(), showAxisDialog(), showGrids(), showScaleDialog(), and ~Graph().
TitlePicker* Graph::titlePicker [private] |
Referenced by deselect(), enableTextEditor(), Graph(), hasSeletedItems(), selectTitle(), setCurrentFont(), titleSelected(), and ~Graph().