A 2D-plotting widget. More...
#include <Graph.h>
Public Types | |
enum | Axis { Left, Right, Bottom, Top } |
enum | CurveType { Line, Scatter, LineSymbols, VerticalBars, Area, Pie, VerticalDropLines, Spline, HorizontalSteps, Histogram, HorizontalBars, VectXYXY, ErrorBars, Box, VectXYAM, VerticalSteps, ColorMap, GrayScale, Contour, Function, ImagePlot } |
enum | MarkerType { None = -1, Text = 0, Arrow = 1, Image = 2 } |
enum | Scale { Linear, Log10 } |
enum | Ticks { NoTicks = 0, Out = 1, InOut = 2, In = 3 } |
Public Slots | |
void | activateGraph () |
bool | addCurves (Table *w, const QStringList &names, int style=0, 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. | |
QwtPlotCurve * | curve (const QString &title) |
get curve by name | |
QwtPlotCurve * | curve (int index) |
get curve by index | |
int | curveCount () |
int | curveIndex (const QString &title) |
map curve title to index | |
int | curveIndex (QwtPlotCurve *c) |
Map curve pointer to index. | |
QStringList | curveNamesList () |
Returns the names of all the QwtPlotCurve items on the plot, as a string list. | |
void | cutAxisTitle () |
void | cutTitle () |
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 (int style) |
static Qt::PenStyle | getPenStyle (const QString &s) |
void | hideSelectedAxis () |
void | insertCurve (QwtPlotItem *c) |
PlotCurve * | insertCurve (Table *w, const QString &xColName, const QString &yColName, int style, int startRow=0, int endRow=-1) |
PlotCurve * | insertCurve (Table *w, int xcol, const QString &name, int style) |
PlotCurve * | insertCurve (Table *w, const QString &name, int style, int startRow=0, int endRow=-1) |
void | insertPlotItem (QwtPlotItem *i, int type) |
void | invertScale (int axis) |
Set axis scale. | |
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) |
void | removeAxisTitle () |
void | removeCurve (const QString &s) |
Removes a curve defined by its title string s. | |
void | removeCurve (int index) |
Removes a curve defined by its index. | |
void | removeCurve (QwtPlotItem *it) |
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 | setCurveFullRange (int curveIndex) |
void | setCurveStyle (int index, int s) |
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 (int axis) |
Convenience function enabling the grid for a user defined axis. | |
void | showGrid () |
Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales. | |
void | showGrids () |
static void | showPlotErrorMessage (QWidget *parent, const QStringList &emptyColumns) |
void | showScaleDialog () |
void | showTitleContextMenu () |
void | updateCurveNames (const QString &oldName, const QString &newName, bool updateTableName=true) |
void | updateCurvesData (Table *w, const QString &yColName) |
void | updatePlot () |
void | updateScale () |
void | updateSecondaryAxis (int axis) |
bool | validCurvesDataSize () |
int | visibleCurves () |
Line Markers | |
void | addArrow (QStringList list, int fileVersion) |
Used when opening a project file. | |
ArrowMarker * | addArrow (ArrowMarker *mrk) |
bool | arrowMarkerSelected () |
bool | drawArrow () |
void | drawLine (bool on, bool arrow=false) |
Draws a line/arrow depending on the value of "arrow". | |
bool | drawLineActive () |
QList< QwtPlotMarker * > | linesList () |
void | remove (ArrowMarker *arrow) |
Error Bars | |
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) |
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) |
DataCurve * | masterCurve (const QString &xColName, const QString &yColName) |
Returns a valid master curve for a plot association. | |
DataCurve * | masterCurve (QwtErrorPlotCurve *er) |
Returns a valid master curve for the error bars curve. | |
void | updateErrorBars (QwtErrorPlotCurve *er, bool xErr, double width, int cap, const QColor &c, bool plus, bool minus, bool through) |
User-defined Functions | |
FunctionCurve * | addFunction (const QStringList &formulas, double start, double end, int points=100, const QString &var="x", int type=0, const QString &title=QString::null) |
QString | generateFunctionName (const QString &name=tr("F")) |
Returns an unique function name. | |
FunctionCurve * | insertFunctionCurve (const QString &formula, int points, int fileVersion) |
Used when reading from a project file with version < 0.9.5. | |
void | modifyFunctionCurve (int curve, int type, const QStringList &formulas, const QString &var, double start, double end, int points, const QMap< QString, double > &constants) |
Image Markers | |
ImageWidget * | addImage (const QImage &image) |
ImageWidget * | addImage (const QString &fileName) |
ImageWidget * | addImage (ImageWidget *i) |
bool | imageMarkerSelected () |
void | insertImageMarker (const QStringList &lst, int fileVersion) |
Texts | |
LegendWidget * | addText (LegendWidget *) |
LegendWidget * | addTimeStamp () |
void | insertLegend (const QStringList &lst, int fileVersion) |
LegendWidget * | insertText (const QStringList &list, int fileVersion) |
Used when opening a project file. | |
QString | legendText () |
Creates a new legend text using the curves titles. | |
LegendWidget * | newLegend (const QString &text=QString()) |
void | removeLegendItem (int index) |
Axes | |
bool | axesBackbones () |
QColor | axisColor (int axis) |
QString | axisFormatInfo (int axis) |
QString | axisFormula (int axis) |
QColor | axisLabelsColor (int axis) |
int | axisTitleAlignment (int axis) |
QColor | axisTitleColor (int axis) |
QFont | axisTitleFont (int axis) |
QRect | axisTitleRect (const QwtScaleWidget *scale) |
QString | axisTitleString (int axis) |
ScaleDraw::ScaleType | axisType (int axis) |
void | changeTicksLength (int minLength, int majLength) |
QwtScaleWidget * | currentScale () |
void | drawAxesBackbones (bool yes) |
void | enableAxis (int axis, bool on=true) |
void | enableAxisLabels (int axis, bool on=true) |
void | initFonts (const QFont &scaleTitleFnt, const QFont &numbersFnt) |
int | labelsRotation (int axis) |
void | loadAxesLinewidth (int width) |
used when opening a project file | |
void | loadAxesOptions (const QString &s) |
used when opening a project file | |
QwtScaleWidget * | selectedScale () |
void | setAxisColor (int axis, const QColor &color) |
void | setAxisFont (int axis, const QFont &fnt) |
void | setAxisFormula (int axis, const QString &) |
void | setAxisLabelRotation (int axis, int rotation) |
void | setAxisLabelsColor (int axis, const QColor &color) |
void | setAxisMargin (int axis, int margin) |
void | setAxisTicksLength (int axis, int majTicksType, int minTicksType, int minLength, int majLength) |
void | setAxisTitle (int axis, const QString &text) |
void | setAxisTitleAlignment (int axis, int align) |
void | setAxisTitleColor (int axis, const QColor &c) |
void | setAxisTitleFont (int axis, const QFont &fnt) |
void | setLabelsDateTimeFormat (int axis, int type, const QString &formatInfo) |
void | setLabelsDayFormat (int axis, int format) |
void | setLabelsMonthFormat (int axis, int format) |
void | setLabelsNumericFormat (int axis, int format, int prec=6, const QString &formula=QString()) |
void | setLabelsNumericFormat (const QStringList &l) |
Used for restoring project files. | |
void | setLabelsTextFormat (int axis, int type, const QString &labelsColName, Table *table) |
void | setLabelsTextFormat (int axis, int type, const QString &name, const QStringList &lst) |
void | setMajorTicksType (const QStringList &lst) |
void | setMajorTicksType (const QList< int > &lst) |
void | setMinorTicksType (const QStringList &lst) |
void | setMinorTicksType (const QList< int > &lst) |
void | setRightAxisTitle (const QString &text) |
void | setScaleTitle (int axis, const QString &text) |
TODO: eliminate this function in version 0.9.1 (used only when restoring project files). | |
void | setTicksLength (int minLength, int majLength) |
void | setTopAxisTitle (const QString &text) |
void | setXAxisTitle (const QString &text) |
void | setYAxisTitle (const QString &text) |
void | showAxis (int axis, int type, const QString &formatInfo, Table *table, bool axisOn, int majTicksType, int minTicksType, bool labelsOn, const QColor &c, int format, int prec, int rotation, int baselineDist, const QString &formula, const QColor &labelsColor) |
Canvas Frame | |
QColor | canvasFrameColor () |
int | canvasFrameWidth () |
void | setCanvasFrame (int width=1, const QColor &color=QColor(Qt::black)) |
Plot Title | |
void | clearTitle () |
Sets the title to an "almost empty" string: " ", thus keeping the QwtText object visible. | |
void | initTitle (bool on, const QFont &fnt) |
void | removeTitle () |
Sets title to an empty string and hides the text label. | |
void | selectTitle (bool select=true) |
void | setTitleAlignment (int align) |
void | setTitleColor (const QColor &c) |
void | setTitleFont (const QFont &fnt) |
bool | titleSelected () |
Event Handlers | |
void | closeEvent (QCloseEvent *e) |
void | contextMenuEvent (QContextMenuEvent *) |
bool | focusNextPrevChild (bool next) |
Output: Copy/Export/Print | |
void | copyImage () |
void | exportImage (const QString &fileName, int quality=100, bool transparent=false) |
void | exportSVG (const QString &fname) |
void | exportToFile (const QString &fileName) |
Provided for convenience in scripts. | |
void | exportVector (const QString &fileName, int res=0, bool color=true) |
QPixmap | graphPixmap () |
void | print () |
void | printCropmarks (bool on) |
void | setScaleOnPrint (bool on) |
Common to all Markers | |
void | deselectMarker () |
Reset any selection states on markers. | |
bool | markerSelected () |
void | removeMarker () |
QwtPlotMarker * | selectedMarker () |
void | setSelectedMarker (QwtPlotMarker *mrk, bool add=false) |
Set the selected marker. | |
void | updateMarkersBoundingRect () |
Keep the markers on screen each time the scales are modified by adding/removing curves. | |
Curves Layout | |
void | guessUniqueCurveLayout (int &colorIndex, int &symbolIndex) |
Tries to guess not already used curve color and symbol style. | |
static CurveLayout | initCurveLayout () |
CurveLayout | initCurveLayout (int style, int curves=0) |
void | updateCurveLayout (PlotCurve *c, const CurveLayout *cL) |
Pie Curves | |
bool | isPiePlot () |
Returns true if this Graph is a pie plot, false otherwise. | |
QString | pieLegendText () |
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. | |
QwtPieCurve * | plotPie (Table *w, const QString &name, int startRow=0, int endRow=-1) |
Used when creating a pie plot. | |
void | removePie () |
QString | savePieCurveLayout () |
Obsolete functions provided to keep existing Python scripts working | |
LegendWidget * | legend () |
void | removeLegend () |
void | setLegend (const 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) |
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()) |
Resizing | |
void | resizeEvent (QResizeEvent *e) |
void | scaleFonts (double factor) |
Saving to File | |
QString | saveAxesBaseline () |
QString | saveAxesColors () |
QString | saveAxesFormulas () |
QString | saveAxesLabelsType () |
QString | saveAxesTitleAlignement () |
QString | saveAxesTitleColors () |
QString | saveCanvas () |
QString | saveCurveLayout (int index) |
QString | saveCurves () |
QString | saveEnabledAxes () |
QString | saveEnabledTickLabels () |
QString | saveFonts () |
QString | saveLabelsFormat () |
QString | saveLabelsRotation () |
QString | saveMarkers () |
QString | saveScale () |
QString | saveScaleTitles () |
QString | saveTicksType () |
QString | saveTitle () |
QString | saveToString (bool saveAsTemplate=false) |
Modifing insertCurve Data | |
QString | selectedCurveTitle () |
Border and background | |
void | setBackgroundColor (const QColor &color) |
void | setFrame (int width=1, const QColor &color=Qt::black) |
Zoom | |
void | zoom (bool on) |
void | zoomed (const QwtDoubleRect &) |
bool | zoomOn () |
void | zoomOut () |
Signals | |
void | axisDblClicked (int) |
void | closedGraph () |
void | createTable (const QString &, int, int, const QString &) |
void | currentFontChanged (const QFont &) |
void | cursorInfo (const QString &) |
void | dataRangeChanged () |
void | drawLineEnded (bool) |
void | enableTextEditor (Graph *) |
void | hiddenPlot (QWidget *) |
void | modifiedGraph () |
void | selectedGraph (Graph *) |
void | showAxisDialog (int) |
void | showAxisTitleDialog () |
void | showContextMenu () |
void | showCurveContextMenu (QwtPlotCurve *) |
void | showFitResults (const QString &) |
void | showMarkerPopupMenu () |
void | showPlotDialog (int) |
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) |
TexWidget * | addTexFormula (const QString &s, const QPixmap &pix) |
int | axesLinewidth () const |
int | axisLabelFormat (int axis) |
void | axisLabelFormat (int axis, char &f, int &prec) const |
int | axisLabelPrecision (int axis) |
QRect | boundingRect () |
PlotCurve * | closestCurve (int xpos, int ypos, int &dist, int &point) |
QList< QwtPlotItem * > | curvesList () |
void | deselect (QWidget *) |
void | deselect () |
QList< FrameWidget * > | enrichmentsList () |
QColor | frameColor () |
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 | hasSeletedItems () |
void | initScaleLimits () |
Called first time we add curves in order to determine the best plot limits. | |
void | insertMarker (QwtPlotMarker *m) |
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) |
DataCurve * | selectedCurveLabels () |
void | setActiveText (LegendWidget *l) |
void | setActiveTool (PlotToolInterface *tool) |
Change the active tool, deleting the old one if it exists. | |
void | setAxesLinewidth (int width) |
void | setMajorTicksType (int axis, int type) |
void | setMinorTicksType (int axis, int type) |
void | setTickLength (int minLength, int majLength) |
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 () | |
Private Member Functions | |
void | addLegendItem () |
QwtDoubleInterval | axisBoundingInterval (int axis) |
Finds bounding interval of the plot data. | |
void | deselectCurves () |
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 | printCanvas (QPainter *painter, const QRect &canvasRect, const QwtScaleMap map[axisCnt], const QwtPlotPrintFilter &pfilter) const |
void | printFrame (QPainter *painter, const QRect &rect) const |
void | showEvent (QShowEvent *event) |
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. | |
QList< QwtPlotItem * > | d_curves |
List storing pointers to the curves on the plot. | |
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. | |
QList< QwtPlotMarker * > | d_lines |
Arrows/lines on plot. | |
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. | |
PlotToolInterface * | d_peak_fit_tool |
bool | d_print_cropmarks |
QPointer< RangeSelectorTool > | d_range_selector |
The current curve selection, or NULL if none is active. | |
bool | d_scale_on_print |
QwtPlotMarker * | d_selected_marker |
Pointer to the currently selected line/image. | |
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_grid, d_maj_tick_length, d_min_tick_length, d_peak_fit_tool, d_print_cropmarks, d_scale_on_print, d_selected_marker, d_user_step, d_zoomer, deselectMarker(), drawArrowOn, drawAxesBackbone, drawLineOn, enableTextEditor(), modifiedGraph(), removeTitle(), scalePicker, selectTitle(), setAxisTitle(), showAxisContextMenu(), showAxisTitleMenu(), showMarkerPopupMenu(), showPlotDialog(), showTitleContextMenu(), titlePicker, viewLineDialog(), zoom(), and zoomed().
Graph::~Graph | ( | ) |
References cp, d_active_tool, d_enrichments, d_markers_selector, 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(), ApplicationWindow::copySelection(), ApplicationWindow::cutSelection(), MultiPeakFitTool::finalize(), ApplicationWindow::pasteSelection(), MultiLayer::removeLayer(), MultiLayer::setNumLayers(), ApplicationWindow::showCurveContextMenu(), and ApplicationWindow::showCurveWorksheet().
FrameWidget * Graph::add | ( | FrameWidget * | fw, | |
bool | copy = true | |||
) |
References d_active_enrichment, and d_enrichments.
Referenced by AddWidgetTool::addEquation(), AddWidgetTool::addRectangle(), AddWidgetTool::addText(), copy(), ApplicationWindow::pasteSelection(), PieLabel::PieLabel(), RectangleWidget::restore(), LegendWidget::restore(), and ApplicationWindow::zoomRectanglePlot().
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::setBoundingRect(), ArrowMarker::setColor(), ArrowMarker::setEndPoint(), ArrowMarker::setHeadAngle(), ArrowMarker::setHeadLength(), ArrowMarker::setStartPoint(), ArrowMarker::setStyle(), and ArrowMarker::setWidth().
ArrowMarker * Graph::addArrow | ( | ArrowMarker * | mrk | ) | [slot] |
References ArrowMarker::color(), d_lines, ArrowMarker::drawEndArrow(), ArrowMarker::drawStartArrow(), ArrowMarker::endPointCoord(), ArrowMarker::fillArrowHead(), ArrowMarker::filledArrowHead(), ArrowMarker::hasEndArrow(), ArrowMarker::hasStartArrow(), ArrowMarker::headAngle(), ArrowMarker::headLength(), insertMarker(), 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(), ApplicationWindow::openGraph(), and ApplicationWindow::pasteSelection().
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(), Box, Table::colIndex(), Table::colName(), Table::colPlotDesignation(), Table::colX(), Table::colY(), ErrorBars, QwtErrorPlotCurve::Horizontal, initCurveLayout(), initScaleLimits(), insertCurve(), Table::Label, CurveLayout::lWidth, masterCurve(), Pie, plotBoxDiagram(), plotPie(), plotVectorCurve(), DataCurve::setLabelsColumnName(), CurveLayout::sSize, PlotCurve::type(), updateCurveLayout(), VectXYAM, VectXYXY, Table::xErr, and Table::yErr.
Referenced by ImportOPJ::importGraphs(), and ApplicationWindow::multilayerPlot().
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, ErrorBars, and Function.
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::multilayerPlot(), and ApplicationWindow::openGraph().
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::color(), generateFunctionName(), guessUniqueCurveLayout(), insertCurve(), FunctionCurve::loadData(), modifiedGraph(), FunctionCurve::setFormulas(), FunctionCurve::setRange(), FunctionCurve::setVariable(), and updatePlot().
Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), 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(), and ApplicationWindow::plotHistogram().
ImageWidget * Graph::addImage | ( | const QImage & | image | ) | [slot] |
References d_enrichments, and modifiedGraph().
ImageWidget * Graph::addImage | ( | const QString & | fileName | ) | [slot] |
References d_enrichments, and modifiedGraph().
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().
void Graph::addLegendItem | ( | ) | [private] |
References d_curves, d_enrichments, LegendWidget::isAutoUpdateEnabled(), LegendWidget::setText(), and LegendWidget::text().
Referenced by 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, ErrorBars, and PlotCurve::type().
Referenced by ApplicationWindow::addErrorBars(), ApplicationWindow::analysis(), PolynomFitDialog::fit(), ExpDecayDialog::fit(), InterpolationDialog::interpolate(), DataSetDialog::setGraph(), SmoothCurveDialog::setGraph(), PolynomFitDialog::setGraph(), InterpolationDialog::setGraph(), FitDialog::setGraph(), FilterDialog::setGraph(), FFTDialog::setGraph(), and ExpDecayDialog::setGraph().
bool Graph::antialiasing | ( | ) | [inline, slot] |
References d_antialiasing.
Referenced by copy(), LegendWidget::drawText(), LegendWidget::drawVector(), PlotDialog::setActiveLayer(), and FitDialog::updatePreview().
bool Graph::arrowMarkerSelected | ( | ) | [slot] |
References d_lines, and d_selected_marker.
Referenced by ApplicationWindow::copyMarker(), and ApplicationWindow::showMarkerPopupMenu().
bool Graph::autoscaleFonts | ( | ) | [inline, slot] |
References autoScaleFonts.
Referenced by MultiLayer::arrangeLayers(), MultiLayer::copy(), and MultiLayer::resizeLayers().
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().
QString Graph::axisFormatInfo | ( | int | axis | ) | [slot] |
Referenced by AxesDialog::changeBaselineDist(), AxesDialog::pickAxisColor(), AxesDialog::pickAxisNumColor(), AxesDialog::setAxisType(), AxesDialog::setLabelsNumericFormat(), AxesDialog::showAxisFormatOptions(), AxesDialog::updateMajTicksType(), AxesDialog::updateMinTicksType(), AxesDialog::updatePlot(), and AxesDialog::updateTickLabelsList().
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(), and AxesDialog::updateScale().
int Graph::axisTitleAlignment | ( | int | axis | ) | [slot] |
QColor Graph::axisTitleColor | ( | int | axis | ) | [slot] |
QFont Graph::axisTitleFont | ( | int | axis | ) | [slot] |
Referenced by AxesDialog::customAxisLabelFont(), and ImportOPJ::importGraphs().
QRect Graph::axisTitleRect | ( | const QwtScaleWidget * | scale | ) | [slot] |
References scalePicker, and ScalePicker::titleRect().
Referenced by TextEditor::TextEditor().
QString Graph::axisTitleString | ( | int | axis | ) | [inline, slot] |
Referenced by AxesDialog::changeBaselineDist(), AxesDialog::updatePlot(), and AxesDialog::updateTitleBox().
ScaleDraw::ScaleType Graph::axisType | ( | int | axis | ) | [slot] |
References ScaleDraw::Numeric.
Referenced by ApplicationWindow::openGraph(), AxesDialog::setAxisType(), AxesDialog::updatePlot(), and AxesDialog::updateScale().
QRect Graph::boundingRect | ( | ) |
References d_enrichments.
Referenced by MultiLayer::canvasChildrenRect(), 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::changeTicksLength | ( | int | minLength, | |
int | majLength | |||
) | [slot] |
References enableAxis(), majorTickLength(), minorTickLength(), modifiedGraph(), and setTicksLength().
Referenced by AxesDialog::applyCanvasFormatTo().
void Graph::clearAxisTitle | ( | ) | [slot] |
References ScalePicker::currentAxis(), modifiedGraph(), 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 showTitleContextMenu().
void Graph::closedGraph | ( | ) | [signal] |
Referenced by closeEvent().
void Graph::closeEvent | ( | QCloseEvent * | e | ) | [slot] |
References closedGraph().
PlotCurve * Graph::closestCurve | ( | int | xpos, | |
int | ypos, | |||
int & | dist, | |||
int & | point | |||
) |
References curve(), d_curves, ErrorBars, Function, and PlotCurve::type().
Referenced by DataPickerTool::append(), contextMenuEvent(), CanvasPicker::eventFilter(), and RangeSelectorTool::pointSelected().
void Graph::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [slot] |
References closestCurve(), d_selected_marker, showContextMenu(), showCurveContextMenu(), and showMarkerPopupMenu().
void Graph::copy | ( | Graph * | g | ) | [slot] |
References add(), addArrow(), antialiasing(), axesLinewidth(), axisColor(), axisLabelFormat(), axisLabelPrecision(), axisLabelsColor(), axisStep(), canvasFrameColor(), canvasFrameWidth(), ScaleEngine::clone(), Grid::copy(), copyCurves(), d_auto_scale, d_user_step, d_zoomer, ScaleDraw::Date, ScaleDraw::Day, ScaleEngine::divideScale(), drawAxesBackbone, drawAxesBackbones(), enableAxis(), enrichmentsList(), ScaleDraw::formatString(), ScaleDraw::formula(), frameColor(), getMajorTicksType(), getMinorTicksType(), grid(), isAutoscalingEnabled(), ScaleDraw::labelsList(), labelsRotation(), linesList(), majorTickLength(), minorTickLength(), ScaleDraw::Month, ScaleDraw::nameFormat(), ScaleDraw::Numeric, paletteBackgroundColor(), ScaleDraw::scaleType(), setAntialiasing(), setAxesLinewidth(), setAxisFont(), setAxisLabelRotation(), setBackgroundColor(), setCanvasFrame(), setFrame(), setLabelsDateTimeFormat(), setLabelsDayFormat(), setLabelsMonthFormat(), setLabelsNumericFormat(), setMajorTicksType(), setMinorTicksType(), setTicksLength(), ScaleDraw::Time, and updateLayout().
Referenced by MultiLayer::copy(), 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_fit_curves, DataCurve::endRow(), ErrorBars, fitCurvesList(), Function, Histogram, HorizontalBars, insertCurve(), masterCurve(), QwtHistogram::matrix(), Pie, Spectrogram::setColorBarWidth(), PlotCurve::setPlotStyle(), Spectrogram::showColorScale(), DataCurve::startRow(), DataCurve::table(), PlotCurve::type(), VectXYAM, VectXYXY, VerticalBars, DataCurve::xColumnName(), VectorCurve::XYAM, and VectorCurve::XYXY.
Referenced by ApplicationWindow::addInsetLayer(), copy(), and ApplicationWindow::zoomRectanglePlot().
void Graph::copyImage | ( | ) | [slot] |
References graphPixmap().
Referenced by ApplicationWindow::copyActiveLayer().
void Graph::copyTitle | ( | ) | [slot] |
Referenced by showTitleContextMenu().
void Graph::createTable | ( | const QString & | , | |
int | , | |||
int | , | |||
const QString & | ||||
) | [signal] |
void Graph::createTable | ( | const QwtPlotCurve * | curve | ) | [slot] |
References createTable(), legend(), and LegendWidget::text().
void Graph::createTable | ( | const QString & | curveName | ) | [slot] |
Provided for convenience in scripts.
References curve().
Referenced by createTable(), and ApplicationWindow::showCurveWorksheet().
void Graph::currentFontChanged | ( | const QFont & | ) | [signal] |
Referenced by notifyFontChange(), select(), and selectTitle().
QwtScaleWidget * Graph::currentScale | ( | ) | [slot] |
References ScalePicker::currentAxis(), and scalePicker.
Referenced by TextDialog::setGraph().
void Graph::cursorInfo | ( | const QString & | ) | [signal] |
QwtPlotCurve* Graph::curve | ( | const QString & | title | ) | [inline, slot] |
QwtPlotCurve * Graph::curve | ( | int | index | ) | [slot] |
get curve by index
References d_curves.
Referenced by SmoothCurveDialog::activateCurve(), InterpolationDialog::activateCurve(), FitDialog::activateCurve(), FFTDialog::activateCurve(), ExpDecayDialog::activateCurve(), ApplicationWindow::analysis(), ApplicationWindow::analyzeCurve(), AssociationsDialog::changePlotAssociation(), closestCurve(), createTable(), ApplicationWindow::defineErrorBars(), LegendWidget::drawText(), ExpDecayDialog::fit(), LegendWidget::getCurve(), guessUniqueCurveLayout(), ImportOPJ::importGraphs(), initCurveLayout(), insertFunctionCurve(), insertText(), RangeSelectorTool::keyEventFilter(), DataPickerTool::keyEventFilter(), modifyFunctionCurve(), ApplicationWindow::openGraph(), LegendWidget::parse(), ApplicationWindow::plotDoubleYAxis(), range(), RangeSelectorTool::RangeSelectorTool(), removeCurve(), removePie(), PieLabel::restore(), restoreCurveLabels(), saveCurveLayout(), savePieCurveLayout(), setBarsGap(), setCurveFullRange(), setCurveStyle(), FunctionDialog::setCurveToModify(), CurveRangeDialog::setCurveToModify(), Filter::setDataCurve(), LegendWidget::symbolsMaxWidth(), and updateVectorsLayout().
int Graph::curveCount | ( | ) | [inline, slot] |
References d_curves.
Referenced by ApplicationWindow::addErrorBars(), ApplicationWindow::changeMatrixName(), ApplicationWindow::extractLayers(), ApplicationWindow::hideOtherCurves(), LayerItem::insertCurvesList(), RangeSelectorTool::keyEventFilter(), DataPickerTool::keyEventFilter(), RangeSelectorTool::RangeSelectorTool(), PlotDialog::removeSelectedCurve(), AssociationsDialog::setGraph(), ApplicationWindow::showAllCurves(), ApplicationWindow::showCursor(), ApplicationWindow::showCurveContextMenu(), CurvesDialog::showCurveRange(), ApplicationWindow::showGraphContextMenu(), ApplicationWindow::showRangeSelectors(), and LegendWidget::symbolsMaxWidth().
int Graph::curveIndex | ( | const QString & | title | ) | [inline, slot] |
map curve title to index
References plotItemsList().
int Graph::curveIndex | ( | QwtPlotCurve * | c | ) | [inline, slot] |
Map curve pointer to index.
References d_curves.
Referenced by curve(), Filter::curveIndex(), deleteFitCurves(), CanvasPicker::eventFilter(), RangeSelectorTool::keyEventFilter(), DataPickerTool::keyEventFilter(), removeCurve(), ApplicationWindow::showCurveContextMenu(), and updateCurveLayout().
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] |
void Graph::cutAxisTitle | ( | ) | [slot] |
References copyAxisTitle(), and removeAxisTitle().
Referenced by showAxisTitleMenu().
void Graph::cutTitle | ( | ) | [slot] |
References removeTitle().
Referenced by showTitleContextMenu().
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 | ( | QWidget * | l | ) |
References d_markers_selector.
void Graph::deselect | ( | ) |
References ScalePicker::deselect(), deselectCurves(), deselectMarker(), scalePicker, TitlePicker::setSelected(), and titlePicker.
Referenced by deselectMarker(), CanvasPicker::eventFilter(), ScalePicker::selectLabels(), ScalePicker::selectTitle(), selectTitle(), MultiLayer::setActiveLayer(), and LegendWidget::showTextEditor().
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_marker, deselect(), CanvasPicker::disableEditing(), enableTextEditor(), and ArrowMarker::setEditable().
Referenced by 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(), zoom(), and zoomOn().
Referenced by ApplicationWindow::disableTools(), and removeCurve().
bool Graph::drawArrow | ( | ) | [inline, slot] |
References drawArrowOn.
Referenced by CanvasPicker::eventFilter().
void Graph::drawAxesBackbones | ( | bool | yes | ) | [slot] |
References drawAxesBackbone, and modifiedGraph().
Referenced by AxesDialog::applyCanvasFormatTo(), copy(), 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 disableTools(), and CanvasPicker::eventFilter().
void Graph::drawLineEnded | ( | bool | ) | [signal] |
Referenced by drawLine().
void Graph::enableAutoscaling | ( | bool | on = true |
) | [inline, slot] |
References d_auto_scale.
Referenced by ApplicationWindow::openGraph(), ApplicationWindow::setGraphDefaultSettings(), and ApplicationWindow::setPreferences().
void Graph::enableAxis | ( | int | axis, | |
bool | on = true | |||
) | [slot] |
References ScalePicker::refresh(), and scalePicker.
Referenced by ApplicationWindow::addInsetLayer(), changeTicksLength(), copy(), hideSelectedAxis(), ApplicationWindow::loadImage(), ApplicationWindow::openGraph(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::plotImage(), plotPie(), plotSpectrogram(), ApplicationWindow::setPreferences(), and showAxis().
void Graph::enableAxisLabels | ( | int | axis, | |
bool | on = true | |||
) | [slot] |
Referenced by ApplicationWindow::openGraph().
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, dataRangeChanged(), and setActiveTool().
Referenced by ApplicationWindow::showRangeSelectors().
void Graph::enableTextEditor | ( | Graph * | ) | [signal] |
void Graph::enableTextEditor | ( | ) | [slot] |
References MdiSubWindow::applicationWindow(), ApplicationWindow::d_in_place_editing, multiLayer(), TitlePicker::selected(), showAxisTitleDialog(), titlePicker, and viewTitleDialog().
Referenced by deselectMarker(), and Graph().
QList<FrameWidget *> Graph::enrichmentsList | ( | ) | [inline] |
void Graph::exportImage | ( | const QString & | fileName, | |
int | quality = 100 , |
|||
bool | transparent = false | |||
) | [slot] |
References graphPixmap().
Referenced by ApplicationWindow::exportLayer(), and exportToFile().
void Graph::exportSVG | ( | const QString & | fname | ) | [slot] |
References print().
Referenced by ApplicationWindow::exportLayer(), and exportToFile().
void Graph::exportToFile | ( | const QString & | fileName | ) | [slot] |
Provided for convenience in scripts.
References exportImage(), exportSVG(), and exportVector().
void Graph::exportVector | ( | const QString & | fileName, | |
int | res = 0 , |
|||
bool | color = true | |||
) | [slot] |
References boundingRect(), and print().
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, Function, and PlotCurve::type().
Referenced by addFunction(), and Fit::insertFitFunctionCurve().
QList< int > Graph::getMajorTicksType | ( | ) |
References ScaleDraw::majorTicksStyle(), and ScaleDraw::Out.
Referenced by copy(), saveTicksType(), AxesDialog::setGraph(), setMajorTicksType(), setTicksLength(), and showAxis().
QList< int > Graph::getMinorTicksType | ( | ) |
References ScaleDraw::minorTicksStyle(), and ScaleDraw::Out.
Referenced by copy(), saveTicksType(), AxesDialog::setGraph(), setMinorTicksType(), setTicksLength(), and showAxis().
Qt::PenStyle Graph::getPenStyle | ( | int | style | ) | [static, slot] |
Qt::PenStyle Graph::getPenStyle | ( | const QString & | s | ) | [static, slot] |
QPixmap Graph::graphPixmap | ( | ) | [slot] |
References boundingRect(), and print().
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 ColorBox::colorIndex(), curve(), d_curves, ErrorBars, QwtErrorPlotCurve::masterCurve(), SymbolBox::symbolIndex(), and PlotCurve::type().
Referenced by CurvesDialog::addCurve(), addFunction(), and initCurveLayout().
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().
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(), and initCurveLayout().
CurveLayout Graph::initCurveLayout | ( | int | style, | |
int | curves = 0 | |||
) | [slot] |
References CurveLayout::aCol, Area, CurveLayout::aStyle, CurveLayout::connectType, curve(), d_curves, CurveLayout::fillCol, CurveLayout::filledArea, guessUniqueCurveLayout(), Histogram, HorizontalBars, HorizontalSteps, initCurveLayout(), CurveLayout::lCol, Line, Scatter, QwtBarCurve::setGap(), QwtBarCurve::setOffset(), Spline, CurveLayout::sType, CurveLayout::symCol, PlotCurve::type(), VerticalBars, VerticalDropLines, and VerticalSteps.
Referenced by ImportOPJ::importGraphs(), and ApplicationWindow::multilayerPlot().
void Graph::initFonts | ( | const QFont & | scaleTitleFnt, | |
const QFont & | numbersFnt | |||
) | [slot] |
References setAxisFont().
Referenced by ApplicationWindow::setPreferences().
void Graph::initScaleLimits | ( | ) |
Called first time we add curves in order to determine the best plot limits.
References d_user_step, and d_zoomer.
Referenced by addCurves(), and ApplicationWindow::multilayerPlot().
void Graph::initTitle | ( | bool | on, | |
const QFont & | fnt | |||
) | [slot] |
Referenced by ApplicationWindow::setPreferences().
void Graph::insertCurve | ( | QwtPlotItem * | c | ) | [slot] |
References d_antialiasing, and d_curves.
PlotCurve * 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, Histogram, QwtBarCurve::Horizontal, HorizontalBars, insertCurve(), Table::numRows(), setLabelsDateTimeFormat(), PlotCurve::setPlotStyle(), Table::Text, Table::text(), ScaleDraw::Time, Table::Time, QwtBarCurve::Vertical, and VerticalBars.
References Table::colIndex(), Table::colName(), and insertCurve().
PlotCurve * 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(), ImportOPJ::importGraphs(), insertCurve(), insertPlotItem(), ApplicationWindow::multilayerPlot(), openBoxDiagram(), ApplicationWindow::openGraph(), FFT::output(), Differentiation::output(), plotBoxDiagram(), plotPie(), plotSpectrogram(), plotVectorCurve(), FunctionCurve::restore(), restoreHistogram(), and restoreSpectrogram().
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 copy().
bool Graph::isPiePlot | ( | ) | [slot] |
Returns true if this Graph is a pie plot, false otherwise.
Referenced by ApplicationWindow::addErrorBars(), CanvasPicker::eventFilter(), ApplicationWindow::fitMultiPeak(), ApplicationWindow::movePoints(), newLegend(), ApplicationWindow::removePoints(), saveCurves(), ApplicationWindow::setPreferences(), ApplicationWindow::showCursor(), ApplicationWindow::showCurvesDialog(), ApplicationWindow::showGraphContextMenu(), ApplicationWindow::showRangeSelectors(), ApplicationWindow::showScaleDialog(), ApplicationWindow::translateCurve(), AxesDialog::updateGrid(), ApplicationWindow::zoomIn(), and ApplicationWindow::zoomOut().
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 createTable(), removeLegend(), and setLegend().
QString Graph::legendText | ( | ) | [slot] |
Creates a new legend text using the curves titles.
References d_curves, and ErrorBars.
Referenced by newLegend(), and plotBoxDiagram().
QList<QwtPlotMarker *> Graph::linesList | ( | ) | [inline, slot] |
References d_lines.
Referenced by copy(), CanvasPicker::eventFilter(), and CanvasPicker::selectMarker().
void Graph::loadAxesLinewidth | ( | int | width | ) | [slot] |
used when opening a project file
References setAxesLinewidth().
Referenced by ApplicationWindow::openGraph().
void Graph::loadAxesOptions | ( | const QString & | s | ) | [slot] |
used when opening a project file
References drawAxesBackbone.
Referenced by ApplicationWindow::openGraph().
int Graph::majorTickLength | ( | ) | const |
References d_maj_tick_length.
Referenced by changeTicksLength(), copy(), saveToString(), AxesDialog::setGraph(), setMajorTicksType(), and showAxis().
bool Graph::markerSelected | ( | ) | [slot] |
References d_active_enrichment, and d_selected_marker.
Referenced by ApplicationWindow::copyMarker(), and ApplicationWindow::copySelection().
DataCurve * Graph::masterCurve | ( | const QString & | xColName, | |
const QString & | yColName | |||
) | [slot] |
DataCurve * Graph::masterCurve | ( | QwtErrorPlotCurve * | er | ) | [slot] |
Returns a valid master curve for the error bars curve.
References d_curves, Function, QwtErrorPlotCurve::masterCurve(), and DataCurve::plotAssociation().
Referenced by addCurves(), addErrorBars(), AssociationsDialog::changePlotAssociation(), copyCurves(), and ImportOPJ::importGraphs().
int Graph::minorTickLength | ( | ) | const |
References d_min_tick_length.
Referenced by changeTicksLength(), copy(), saveToString(), AxesDialog::setGraph(), setMajorTicksType(), and showAxis().
void Graph::modifiedGraph | ( | ) | [signal] |
Referenced by addFunction(), addImage(), addTexFormula(), addTimeStamp(), changeTicksLength(), clearAxisTitle(), clearTitle(), drawAxesBackbones(), Graph(), hideSelectedAxis(), insertCurve(), modifyFunctionCurve(), newLegend(), notifyChanges(), remove(), removeAxisTitle(), removeCurve(), removePie(), removeTitle(), select(), setAutoScale(), setAxesLinewidth(), setAxisFont(), setAxisTitle(), setAxisTitleFont(), setBackgroundColor(), setCanvasFrame(), setCurrentFont(), setCurveFullRange(), setRightAxisTitle(), setSelectedMarker(), 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(), TextDialog::apply(), EnrichmentDialog::apply(), AxesDialog::applyCanvasFormat(), FrameWidget::calculateBottomValue(), FrameWidget::calculateRightValue(), FrameWidget::calculateXValue(), FrameWidget::calculateYValue(), RangeSelectorTool::copySelection(), RangeSelectorTool::emitStatusText(), enableTextEditor(), CanvasPicker::eventFilter(), AddWidgetTool::eventFilter(), EnrichmentDialog::frameApplyTo(), FrameWidget::FrameWidget(), LegendWidget::getCurve(), QwtPieCurve::initLabels(), DataPickerTool::keyEventFilter(), ScaleDraw::label(), QwtPieCurve::loadData(), Fit::logFitInfo(), Integration::logInfo(), newLegend(), RangeSelectorTool::pasteSelection(), EnrichmentDialog::patternApplyTo(), print(), raiseEnrichements(), EnrichmentDialog::saveImagesInternally(), EnrichmentDialog::setBestSize(), EnrichmentDialog::setCoordinates(), RectangleWidget::setLinkedLayer(), FrameWidget::setOriginCoord(), LegendWidget::showTextEditor(), TextEditor::TextEditor(), EnrichmentDialog::textFormatApplyTo(), EnrichmentDialog::updateForm(), AxesDialog::updateGrid(), 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(), ImportOPJ::importGraphs(), ApplicationWindow::multilayerPlot(), ApplicationWindow::newGraph(), ApplicationWindow::newLegend(), and Filter::showLegend().
void Graph::notifyChanges | ( | ) | [slot] |
References modifiedGraph().
Referenced by CurveRangeDialog::accept(), PlotDialog::acceptParams(), AddWidgetTool::addEquation(), AddWidgetTool::addRectangle(), AddWidgetTool::addText(), TextDialog::apply(), AssociationsDialog::changePlotAssociation(), PlotDialog::chooseLabelsFont(), TextEditor::closeEvent(), RangeSelectorTool::setCurveRange(), AxesDialog::updateGrid(), and AxesDialog::updatePlot().
void Graph::notifyFontChange | ( | const QFont & | f | ) | [inline, slot] |
References currentFontChanged().
Referenced by SelectionMoveResizer::operateOnTargets(), scaleFonts(), ScalePicker::selectLabels(), ScalePicker::selectTitle(), and DataCurve::setLabelsSelected().
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::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] |
QwtPlotItem * Graph::plotItem | ( | int | index | ) | [slot] |
get plotted item by index
References d_curves.
Referenced by ApplicationWindow::changeMatrixName(), LayerItem::insertCurvesList(), AssociationsDialog::setGraph(), showCurve(), CurvesDialog::showCurveBtn(), CurvesDialog::showCurveRange(), and ApplicationWindow::showCurveWorksheet().
QStringList Graph::plotItemsList | ( | ) | [slot] |
Returns the names of all plot items, including spectrograms, as a string list.
References d_curves.
Referenced by curveIndex(), CurvesDialog::setGraph(), and CurvesDialog::showCurveRange().
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().
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().
Spectrogram * Graph::plotSpectrogram | ( | Matrix * | m, | |
CurveType | type | |||
) | [slot] |
Add a spectrogram to the graph.
References ColorMap, Contour, enableAxis(), GrayScale, insertCurve(), Spectrogram::setDefaultColorMap(), and Spectrogram::setGrayScale().
Referenced by CurvesDialog::addCurve(), ApplicationWindow::plotImage(), 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 | ( | ) | [slot] |
References d_print_cropmarks, d_scale_on_print, and multiLayer().
Referenced by exportSVG(), exportVector(), and graphPixmap().
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(), printCanvas(), and printFrame().
Referenced by MultiLayer::canvasPixmap(), MultiLayer::exportSVG(), MultiLayer::exportVector(), MultiLayer::printActiveLayer(), and MultiLayer::printAllLayers().
void Graph::printCanvas | ( | QPainter * | painter, | |
const QRect & | canvasRect, | |||
const QwtScaleMap | map[axisCnt], | |||
const QwtPlotPrintFilter & | pfilter | |||
) | const [private] |
References d_enrichments, drawItems(), and FrameWidget::print().
Referenced by print().
void Graph::printCropmarks | ( | bool | on | ) | [inline, slot] |
References d_print_cropmarks.
Referenced by MultiLayer::printActiveLayer().
void Graph::printFrame | ( | QPainter * | painter, | |
const QRect & | rect | |||
) | const [private] |
References paletteBackgroundColor().
Referenced by print().
void Graph::raiseEnrichements | ( | ) |
References d_enrichments, enrichmentsList(), 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(), and d_range_selector.
Referenced by PolynomFitDialog::activateCurve(), InterpolationDialog::activateCurve(), FitDialog::activateCurve(), ExpDecayDialog::activateCurve(), and Filter::setDataFromCurve().
void Graph::remove | ( | ArrowMarker * | arrow | ) | [slot] |
References cp, d_lines, d_markers_selector, d_selected_marker, CanvasPicker::disableEditing(), and modifiedGraph().
void Graph::remove | ( | FrameWidget * | f | ) |
References d_active_enrichment, d_enrichments, and modifiedGraph().
Referenced by EnrichmentDialog::~EnrichmentDialog().
void Graph::removeAxisTitle | ( | ) | [slot] |
References ScalePicker::currentAxis(), modifiedGraph(), and scalePicker.
Referenced by cutAxisTitle(), and showAxisTitleMenu().
void Graph::removeCurve | ( | const QString & | s | ) | [slot] |
Removes a curve defined by its title string s.
References curveIndex(), and removeCurve().
void Graph::removeCurve | ( | int | index | ) | [slot] |
Removes a curve defined by its index.
References d_curves, and removeCurve().
void Graph::removeCurve | ( | QwtPlotItem * | it | ) | [slot] |
References curve(), d_curves, d_fit_curves, d_range_selector, disableTools(), ErrorBars, Function, modifiedGraph(), and removeLegendItem().
Referenced by deleteFitCurves(), ApplicationWindow::extractLayers(), DataCurve::remove(), ApplicationWindow::remove3DMatrixPlots(), removeCurve(), ApplicationWindow::removeCurve(), removeCurves(), CurvesDialog::removeCurves(), removePie(), and PlotDialog::removeSelectedCurve().
void Graph::removeCurves | ( | const QString & | s | ) | [slot] |
Removes all curves defined by the title/plot association string s.
References d_curves, Function, and removeCurve().
Referenced by ApplicationWindow::removeCurves().
void Graph::removeLegend | ( | ) | [slot] |
References legend().
Referenced by ApplicationWindow::zoomRectanglePlot().
void Graph::removeLegendItem | ( | int | index | ) | [slot] |
References d_curves, d_enrichments, ErrorBars, LegendWidget::isAutoUpdateEnabled(), LegendWidget::setText(), and LegendWidget::text().
Referenced by removeCurve().
void Graph::removeMarker | ( | ) | [slot] |
References d_active_enrichment, d_lines, and d_selected_marker.
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 ApplicationWindow::clearSelection(), 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(), DataCurve::setLabelsAlignment(), DataCurve::setLabelsColor(), DataCurve::setLabelsColumnName(), DataCurve::setLabelsFont(), DataCurve::setLabelsOffset(), DataCurve::setLabelsRotation(), and DataCurve::setLabelsWhiteOut().
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::Default, getPenStyle(), Spectrogram::GrayScale, insertCurve(), ApplicationWindow::matrix(), Spectrogram::setCustomColorMap(), Spectrogram::setDefaultColorMap(), Spectrogram::setGrayScale(), and Spectrogram::setLevelsNumber().
Referenced by ApplicationWindow::openGraph().
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(), ColorBox::colorIndex(), 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 Box, QwtErrorPlotCurve::capLength(), QwtErrorPlotCurve::color(), d_curves, QwtErrorPlotCurve::direction(), DataCurve::endRow(), ErrorBars, Function, 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::saveLabelsRotation | ( | ) | [slot] |
References labelsRotation().
Referenced by saveToString().
QString Graph::saveMarkers | ( | ) | [slot] |
References 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] |
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_antialiasing, drawAxesBackbone, frameColor(), grid(), majorTickLength(), minorTickLength(), paletteBackgroundColor(), saveAxesBaseline(), saveAxesColors(), saveAxesFormulas(), saveAxesLabelsType(), saveAxesTitleAlignement(), saveAxesTitleColors(), saveCanvas(), saveCurves(), saveEnabledAxes(), saveEnabledTickLabels(), saveFonts(), saveLabelsFormat(), saveLabelsRotation(), saveMarkers(), saveScale(), saveScaleTitles(), saveTicksType(), saveTitle(), and Grid::saveToString().
Referenced by MultiLayer::save().
void Graph::scaleFonts | ( | double | factor | ) | [slot] |
References curvesList(), Function, notifyFontChange(), and setAxisFont().
Referenced by resizeEvent(), and MultiLayer::resizeLayers().
void Graph::select | ( | QWidget * | l, | |
bool | add = false | |||
) |
References currentFontChanged(), d_active_enrichment, d_markers_selector, ScalePicker::deselect(), deselectCurves(), modifiedGraph(), scalePicker, and selectTitle().
Referenced by SelectionMoveResizer::mousePressEvent(), and FrameWidget::mousePressEvent().
DataCurve * Graph::selectedCurveLabels | ( | ) |
References curvesList(), and Function.
Referenced by CanvasPicker::eventFilter().
QString Graph::selectedCurveTitle | ( | ) | [slot] |
References d_range_selector.
Referenced by ApplicationWindow::analysis(), PolynomFitDialog::setGraph(), InterpolationDialog::setGraph(), FitDialog::setGraph(), and ExpDecayDialog::setGraph().
void Graph::selectedGraph | ( | Graph * | ) | [signal] |
Referenced by activateGraph(), and selectTitle().
QwtPlotMarker* Graph::selectedMarker | ( | ) | [inline, slot] |
References d_selected_marker.
Referenced by ApplicationWindow::copyMarker(), CanvasPicker::eventFilter(), and ApplicationWindow::showLineDialog().
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::selectTitle | ( | bool | select = true |
) | [slot] |
References currentFontChanged(), deselect(), selectedGraph(), TitlePicker::setSelected(), and titlePicker.
Referenced by Graph(), select(), DataCurve::setLabelsSelected(), and setSelectedMarker().
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, PlotToolInterface::rtti(), and PlotToolInterface::Rtti_MultiPeakFitTool.
Referenced by AddWidgetTool::addEquation(), ApplicationWindow::addRectangle(), ApplicationWindow::addTexFormula(), AddWidgetTool::addText(), ApplicationWindow::addText(), ApplicationWindow::drawPoints(), enableRangeSelectors(), AddWidgetTool::eventFilter(), ApplicationWindow::fitMultiPeak(), DataPickerTool::keyEventFilter(), LineProfileTool::mouseReleaseEvent(), ApplicationWindow::movePoints(), ApplicationWindow::pixelLineProfile(), ApplicationWindow::removePoints(), TranslateCurveTool::selectCurvePoint(), TranslateCurveTool::selectDestination(), ApplicationWindow::showCursor(), ApplicationWindow::showScreenReader(), 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(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::setAutoScale(), and showAxisContextMenu().
void Graph::setAutoscaleFonts | ( | bool | on = true |
) | [inline, slot] |
void Graph::setAxesLinewidth | ( | int | width | ) |
References axesLinewidth(), and modifiedGraph().
Referenced by AxesDialog::applyCanvasFormatTo(), copy(), loadAxesLinewidth(), and ApplicationWindow::setPreferences().
void Graph::setAxisColor | ( | int | axis, | |
const QColor & | color | |||
) | [slot] |
Referenced by ApplicationWindow::openGraph().
void Graph::setAxisFont | ( | int | axis, | |
const QFont & | fnt | |||
) | [slot] |
References modifiedGraph().
Referenced by copy(), AxesDialog::customAxisFont(), ImportOPJ::importGraphs(), initFonts(), ApplicationWindow::openGraph(), scaleFonts(), and MultiLayer::setFonts().
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(), and showAxis().
void Graph::setAxisLabelsColor | ( | int | axis, | |
const QColor & | color | |||
) | [slot] |
Referenced by ApplicationWindow::openGraph().
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 setTicksLength(), and showAxis().
void Graph::setAxisTitle | ( | int | axis, | |
const QString & | text | |||
) | [slot] |
References modifiedGraph().
Referenced by ApplicationWindow::addInsetLayer(), AxesDialog::changeBaselineDist(), clearAxisTitle(), Graph(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::plotImage(), ApplicationWindow::polishGraph(), MultiLayer::setFonts(), 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 ApplicationWindow::openGraph().
void Graph::setAxisTitleFont | ( | int | axis, | |
const QFont & | fnt | |||
) | [slot] |
References modifiedGraph().
Referenced by AxesDialog::customAxisLabelFont(), ImportOPJ::importGraphs(), and ApplicationWindow::openGraph().
void Graph::setBackgroundColor | ( | const QColor & | color | ) | [slot] |
References modifiedGraph().
Referenced by ApplicationWindow::addInsetLayer(), PlotDialog::applyFormatToLayer(), copy(), ApplicationWindow::openGraph(), and ApplicationWindow::setPreferences().
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] |
References modifiedGraph().
Referenced by AxesDialog::applyCanvasFormatTo(), copy(), ApplicationWindow::openGraph(), ApplicationWindow::setPreferences(), and ApplicationWindow::zoomRectanglePlot().
void Graph::setCurrentFont | ( | const QFont & | f | ) | [slot] |
References curvesList(), d_active_enrichment, Function, 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::setCurveStyle | ( | int | index, | |
int | s | |||
) | [slot] |
References Box, curve(), ErrorBars, Histogram, HorizontalBars, HorizontalSteps, Line, LineSymbols, Pie, PlotCurve::plotStyle(), Scatter, PlotCurve::setPlotStyle(), Spline, VectXYAM, VectXYXY, VerticalBars, VerticalDropLines, and VerticalSteps.
Referenced by PlotDialog::acceptParams(), PlotDialog::changePlotType(), and ImportOPJ::importGraphs().
void Graph::setFrame | ( | int | width = 1 , |
|
const QColor & | color = Qt::black | |||
) | [slot] |
References frameColor().
Referenced by PlotDialog::applyFormatToLayer(), copy(), ApplicationWindow::openGraph(), plotPie(), and ApplicationWindow::setPreferences().
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(), and showAxis().
void Graph::setLabelsDayFormat | ( | int | axis, | |
int | format | |||
) | [slot] |
References ScaleDraw::setDayFormat().
Referenced by copy(), ApplicationWindow::openGraph(), and showAxis().
void Graph::setLabelsMonthFormat | ( | int | axis, | |
int | format | |||
) | [slot] |
References ScaleDraw::setMonthFormat().
Referenced by copy(), ApplicationWindow::openGraph(), and showAxis().
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 & | labelsColName, | |||
Table * | table | |||
) | [slot] |
void Graph::setLabelsTextFormat | ( | int | axis, | |
int | type, | |||
const QString & | name, | |||
const QStringList & | lst | |||
) | [slot] |
References ScaleDraw::ColHeader, and ScaleDraw::Text.
Referenced by DataCurve::loadData(), ApplicationWindow::openGraph(), and showAxis().
void Graph::setLegend | ( | const QString & | s | ) | [slot] |
References legend(), and LegendWidget::setText().
void Graph::setMajorTicksType | ( | const QStringList & | lst | ) | [slot] |
References setMajorTicksType().
void Graph::setMajorTicksType | ( | const QList< int > & | lst | ) | [slot] |
void Graph::setMajorTicksType | ( | int | axis, | |
int | type | |||
) |
References ScaleDraw::setMajorTicksStyle().
Referenced by copy(), ApplicationWindow::openGraph(), ApplicationWindow::polishGraph(), setMajorTicksType(), and ApplicationWindow::setPreferences().
void Graph::setMinorTicksType | ( | const QStringList & | lst | ) | [slot] |
References setMinorTicksType().
void Graph::setMinorTicksType | ( | const QList< int > & | lst | ) | [slot] |
References getMinorTicksType(), and setMinorTicksType().
void Graph::setMinorTicksType | ( | int | axis, | |
int | type | |||
) |
References ScaleDraw::setMinorTicksStyle().
Referenced by copy(), ApplicationWindow::openGraph(), ApplicationWindow::polishGraph(), 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(), d_user_step, d_zoomer, ScaleEngine::divideScale(), ScaleEngine::drawBreakDecoration(), 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(), ApplicationWindow::openGraph(), ApplicationWindow::plotImage(), setCanvasCoordinates(), and AxesDialog::updatePlot().
void Graph::setScaleOnPrint | ( | bool | on | ) | [inline, slot] |
References d_scale_on_print.
Referenced by MultiLayer::printActiveLayer().
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::setSelectedMarker | ( | QwtPlotMarker * | mrk, | |
bool | add = false | |||
) | [slot] |
Set the selected marker.
mrk | key of the marker to be selected. | |
add | whether the marker is to be added to an existing selection. If add is false (the default) or there is no existing selection, a new SelectionMoveResizer is created and stored in d_markers_selector. |
References d_lines, d_markers_selector, d_selected_marker, ScalePicker::deselect(), modifiedGraph(), scalePicker, and selectTitle().
Referenced by CanvasPicker::selectMarker().
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(), ImportOPJ::importGraphs(), and FFT::output().
void Graph::setYAxisTitle | ( | const QString & | text | ) | [slot] |
References modifiedGraph(), and setAxisTitle().
Referenced by LineProfileTool::calculateLineProfile(), ImportOPJ::importGraphs(), 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 | |||
) | [slot] |
References axisColor(), axisLabelFormat(), axisLabelPrecision(), axisLabelsColor(), ScaleDraw::Date, ScaleDraw::Day, drawAxesBackbone, enableAxis(), ScaleDraw::formatString(), ScaleDraw::formula(), getMajorTicksType(), getMinorTicksType(), labelsRotation(), majorTickLength(), minorTickLength(), modifiedGraph(), ScaleDraw::Month, ScaleDraw::Numeric, ScalePicker::refresh(), scalePicker, ScaleDraw::scaleType(), setAxisLabelRotation(), setAxisTicksLength(), setLabelsDateTimeFormat(), setLabelsDayFormat(), setLabelsMonthFormat(), setLabelsNumericFormat(), setLabelsTextFormat(), ScaleDraw::Time, updateLayout(), and updateSecondaryAxis().
Referenced by ImportOPJ::importGraphs(), and AxesDialog::showAxis().
void Graph::showAxisContextMenu | ( | int | axis | ) | [slot] |
References grid(), hideSelectedAxis(), setAutoScale(), showAxisDialog(), showGrids(), showScaleDialog(), and unzoom_xpm.
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(), copy_xpm, copyAxisTitle(), cut_xpm, 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 | ( | QwtPlotCurve * | ) | [signal] |
Referenced by contextMenuEvent().
void Graph::showEvent | ( | QShowEvent * | event | ) | [private] |
References updateCurveLabels().
void Graph::showFitResults | ( | const QString & | ) | [signal] |
void Graph::showGrid | ( | int | axis | ) | [slot] |
Convenience function enabling the grid for a user defined axis.
References d_grid, and modifiedGraph().
void Graph::showGrid | ( | ) | [slot] |
Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales.
Referenced by showGrids(), and ApplicationWindow::zoomRectanglePlot().
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(), copy_xpm, copyTitle(), cut_xpm, cutTitle(), removeTitle(), and viewTitleDialog().
Referenced by Graph().
QList< LegendWidget * > Graph::textsList | ( | ) |
References d_enrichments.
Referenced by MultiLayer::setFonts().
bool Graph::titleSelected | ( | ) | [slot] |
References TitlePicker::selected(), and titlePicker.
Referenced by ApplicationWindow::clearSelection(), ApplicationWindow::enableTextEditor(), and TextEditor::TextEditor().
void Graph::updateCurveLabels | ( | ) |
References curvesList(), and Function.
Referenced by resizeEvent(), and showEvent().
void Graph::updateCurveLayout | ( | PlotCurve * | c, | |
const CurveLayout * | cL | |||
) | [slot] |
References CurveLayout::aCol, CurveLayout::aStyle, PatternBox::brushStyle(), ColorBox::color(), 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(), ApplicationWindow::multilayerPlot(), and ApplicationWindow::openGraph().
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, ErrorBars, Function, PlotCurve::type(), updateMarkersBoundingRect(), and updatePlot().
Referenced by ApplicationWindow::updateCurves().
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::acceptParams(), PlotDialog::changeErrorBarsMinus(), PlotDialog::changeErrorBarsPlus(), PlotDialog::changeErrorBarsThrough(), PlotDialog::changeErrorBarsType(), 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.
Referenced by copy(), insertText(), ApplicationWindow::openGraph(), resizeEvent(), and showAxis().
void Graph::updateMarkersBoundingRect | ( | ) | [slot] |
Keep the markers on screen each time the scales are modified by adding/removing curves.
References d_enrichments, d_lines, and FrameWidget::updateCoordinates().
Referenced by setScale(), updateCurvesData(), and updateScale().
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(), 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_zoomer, updateMarkersBoundingRect(), and updateSecondaryAxis().
Referenced by PlotDialog::acceptParams(), setAutoScale(), ApplicationWindow::setGraphDefaultSettings(), and updatePlot().
void Graph::updateSecondaryAxis | ( | int | axis | ) | [slot] |
References ScaleEngine::clone(), Spectrogram::colorScaleAxis(), d_curves, and d_user_step.
Referenced by 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::fitMultiPeak(), ApplicationWindow::movePoints(), ApplicationWindow::removePoints(), ApplicationWindow::showCursor(), ApplicationWindow::showExpDecayDialog(), ApplicationWindow::showFFTDialog(), ApplicationWindow::showFilterDialog(), ApplicationWindow::showFitDialog(), ApplicationWindow::showFitPolynomDialog(), ApplicationWindow::showInterpolationDialog(), ApplicationWindow::showSmoothDialog(), 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, d_zoomer, and lens_xpm.
Referenced by disableTools(), Graph(), and ApplicationWindow::zoomIn().
void Graph::zoomed | ( | const QwtDoubleRect & | ) | [slot] |
References modifiedGraph().
Referenced by Graph().
bool Graph::zoomOn | ( | ) | [slot] |
References d_zoomer.
Referenced by disableTools(), CanvasPicker::eventFilter(), MultiLayer::removeLayer(), MultiLayer::setNumLayers(), and updatePlot().
void Graph::zoomOut | ( | ) | [slot] |
References d_zoomer, and updateSecondaryAxis().
bool Graph::autoScaleFonts [private] |
Referenced by autoscaleFonts(), Graph(), resizeEvent(), and setAutoscaleFonts().
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(), disableTools(), Graph(), 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().
QList<QwtPlotItem*> Graph::d_curves [private] |
List storing pointers to the curves on the plot.
Referenced by addErrorBars(), addLegendItem(), analysableCurvesList(), closestCurve(), curve(), curveCount(), curveIndex(), curveNamesList(), curvesList(), generateFunctionName(), guessUniqueCurveLayout(), initCurveLayout(), insertCurve(), isPiePlot(), legendText(), masterCurve(), pieLegendText(), plotItem(), plotItemsList(), removeCurve(), removeCurves(), removeLegendItem(), saveCurves(), setAntialiasing(), updateCurveLayout(), updateCurveNames(), updateCurvesData(), updateSecondaryAxis(), validCurvesDataSize(), visibleCurves(), and zoom().
QList<FrameWidget*> Graph::d_enrichments [private] |
Referenced by add(), addImage(), addLegendItem(), addTexFormula(), addText(), boundingRect(), enrichmentsList(), insertImageMarker(), insertText(), legend(), modifyFunctionCurve(), newLegend(), plotBoxDiagram(), printCanvas(), raiseEnrichements(), remove(), removeLegendItem(), resizeEvent(), saveMarkers(), 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 Graph(), grid(), and showGrid().
QList<QwtPlotMarker*> Graph::d_lines [private] |
Arrows/lines on plot.
Referenced by addArrow(), arrowMarkerSelected(), deselectMarker(), linesList(), remove(), removeMarker(), saveMarkers(), setAntialiasing(), setSelectedMarker(), and updateMarkersBoundingRect().
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(), setSelectedMarker(), and ~Graph().
int Graph::d_min_tick_length [private] |
Axes tick lengths.
Referenced by drawInwardTicks(), Graph(), minorTickLength(), and setTickLength().
PlotToolInterface * Graph::d_peak_fit_tool [private] |
Referenced by disableTools(), Graph(), setActiveTool(), and ~Graph().
bool Graph::d_print_cropmarks [private] |
Referenced by Graph(), print(), and printCropmarks().
QPointer<RangeSelectorTool> Graph::d_range_selector [private] |
The current curve selection, or NULL if none is active.
Referenced by disableTools(), enableRangeSelectors(), range(), removeCurve(), selectedCurveTitle(), selectedXEndValue(), selectedXStartValue(), setActiveTool(), and ~Graph().
bool Graph::d_scale_on_print [private] |
Referenced by Graph(), print(), and setScaleOnPrint().
QwtPlotMarker* Graph::d_selected_marker [private] |
Pointer to the currently selected line/image.
Referenced by arrowMarkerSelected(), contextMenuEvent(), deselectMarker(), Graph(), markerSelected(), remove(), removeMarker(), selectedMarker(), and setSelectedMarker().
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(), initScaleLimits(), saveScale(), setAutoScale(), setScale(), updatePlot(), and updateSecondaryAxis().
QwtPlotZoomer* Graph::d_zoomer[2] [private] |
Referenced by copy(), Graph(), initScaleLimits(), setScale(), updateScale(), zoom(), zoomOn(), and zoomOut().
bool Graph::drawArrowOn [private] |
Referenced by drawArrow(), drawLine(), and Graph().
bool Graph::drawAxesBackbone [private] |
Referenced by axesBackbones(), copy(), drawAxesBackbones(), Graph(), loadAxesOptions(), saveToString(), setLabelsDateTimeFormat(), and showAxis().
bool Graph::drawLineOn [private] |
Referenced by drawLine(), drawLineActive(), and Graph().
ScalePicker* Graph::scalePicker [private] |
Referenced by axisTitleRect(), clearAxisTitle(), copyAxisTitle(), currentScale(), deselect(), enableAxis(), Graph(), hasSeletedItems(), hideSelectedAxis(), plotPie(), removeAxisTitle(), select(), selectedScale(), setCurrentFont(), setSelectedMarker(), showAxis(), showAxisDialog(), showGrids(), showScaleDialog(), and ~Graph().
TitlePicker* Graph::titlePicker [private] |
Referenced by deselect(), enableTextEditor(), Graph(), hasSeletedItems(), selectTitle(), setCurrentFont(), titleSelected(), and ~Graph().