SciDAVis  1.D4
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
Graph Class Reference

A 2D-plotting widget. More...

#include <Graph.h>

List of all members.

Public Types

enum  AxisType {
  Numeric = 0, Txt = 1, Day = 2, Month = 3,
  Time = 4, Date = 5, ColHeader = 6, DateTime = 22
}
enum  CurveType {
  Line, Scatter, LineSymbols, VerticalBars,
  Area, Pie, VerticalDropLines, Spline,
  HorizontalSteps, Histogram, HorizontalBars, VectXYXY,
  ErrorBars, Box, VectXYAM, VerticalSteps,
  ColorMap, GrayMap, ContourMap, Function
}
enum  MarkerType { None = -1, Text = 0, Arrow = 1, Image = 2 }

Public Slots

void activateGraph ()
void addFitCurve (QwtPlotCurve *c)
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)
static bool canConvertTo (QwtPlotCurve *curve, CurveType type)
 Test whether curve can be converted to type using setCurveType().
void copy (ApplicationWindow *parent, Graph *g)
void copyAxisTitle ()
void copyTitle ()
void createTable (const QString &curveName)
 Provided for convenience in scripts.
void createTable (const QwtPlotCurve *curve)
QwtPlotCurve * curve (int index) const
 get curve by index
QwtPlotCurve * curve (const QString &title) const
 get curve by name
int curveIndex (long key) const
int curveIndex (QwtPlotCurve *c) const
 Map curve pointer to index.
int curveIndex (const QString &title) const
 map curve title to index
long curveKey (int curve)
int curves () const
QStringList curvesList ()
 Returns the names of all the QwtPlotCurve items on the plot, as a string list.
int curveType (int curveIndex)
void cutAxisTitle ()
void cutTitle ()
void deleteFitCurves ()
void deselect ()
void disableTools ()
void enableAutoscaling (bool yes)
bool enableRangeSelectors (const QObject *status_target=NULL, const char *status_slot="")
QList< QwtPlotCurve * > fitCurvesList ()
static Qt::BrushStyle getBrushStyle (int style)
static Qt::PenStyle getPenStyle (const QString &s)
static Qt::PenStyle getPenStyle (int style)
void hideSelectedAxis ()
bool insertCurve (Table *w, const QString &name, int style, int startRow=0, int endRow=-1)
bool insertCurve (Table *w, int xcol, const QString &name, int style)
bool insertCurve (Table *w, const QString &xColName, const QString &yColName, int style, int startRow=0, int endRow=-1)
bool insertCurvesList (Table *w, const QStringList &names, int style, int lWidth, int sSize, int startRow=0, int endRow=-1)
void insertPlotItem (QwtPlotItem *i, int type)
static QPrinter::PageSize minPageSize (const QPrinter &printer, const QRect &r)
void notifyChanges ()
static int obsoleteSymbolStyle (int type)
static QString penStyleName (Qt::PenStyle style)
bool plotHistogram (Table *w, QStringList names, int startRow=0, int endRow=-1)
QwtPlotItem * plotItem (int index)
 get plotted item by index
int plotItemIndex (QwtPlotItem *it) const
 get plot item by index
QStringList plotItemsList () const
 Returns the names of all plot items, including spectrograms, as a string list.
void plotSpectrogram (Matrix *m, CurveType type)
 Add a spectrogram to the graph.
PlotplotWidget () const
 Accessor method for d_plot.
void print (QPainter *, const QRect &rect, const QwtPlotPrintFilter &=QwtPlotPrintFilter())
void printCanvas (QPainter *painter, const QRect &canvasRect, const QwtScaleMap map[QwtPlot::axisCnt], const QwtPlotPrintFilter &pfilter) const
int range (int index, double *start, double *end)
bool rangeSelectorsEnabled () const
 Check wether range selectors are currently enabled.
void removeAxisTitle ()
void removeCurve (int index)
 Removes a curve defined by its index.
void removeCurve (const QString &s)
 Removes a curve defined by its title string s.
void removeCurves (const QString &s)
 Removes all curves defined by the title/plot association string s.
void replot ()
void restoreSpectrogram (ApplicationWindow *app, const QStringList &lst)
 Restores a spectrogram. Used when opening a project file.
double selectedXEndValue ()
double selectedXStartValue ()
void setAntialiasing (bool on=true, bool update=true)
 Enables/Disables antialiasing of plot items.
void setAutoScale ()
void setAutoscaleFonts (bool yes)
void setBarsGap (int curve, int gapPercent, int offset)
 Used for VerticalBars, HorizontalBars and Histograms.
void setCurveBrush (int index, const QBrush &b)
void setCurveFullRange (int curveIndex)
void setCurvePen (int index, const QPen &p)
void setCurveStyle (int index, int s)
void setCurveSymbol (int index, const QwtSymbol &s)
void setCurveType (int curve, CurveType type, bool update=true)
 Change the type of the given curve.
void setScale (int axis, double start, double end, double step=0.0, int majorTicks=5, int minorTicks=5, int type=0, bool inverted=false)
 Set axis scale.
void showAxisContextMenu (int axis)
void showAxisDialog ()
void showAxisTitleMenu (int axis)
void showCurve (int index, bool visible=true)
 Shows/Hides a curve defined by its index.
void showGrid ()
 Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales.
void showGrid (int axis)
 Convenience function enabling the grid for a user defined axis.
void showGrids ()
static void showPlotErrorMessage (QWidget *parent, const QStringList &emptyColumns)
void showScaleDialog ()
void showTitleContextMenu ()
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 () const
int visibleCurves ()
Pie Curves
bool isPiePlot () const
 Returns true if this Graph is a pie plot, false otherwise.
void plotPie (Table *w, const QString &name, int startRow=0, int endRow=-1)
void plotPie (Table *w, const QString &name, const QPen &pen, int brush, int size, int firstColor, int startRow=0, int endRow=-1, bool visible=true)
 Used when restoring a pie plot from a project file.
void removePie ()
QString pieLegendText ()
QString savePieCurveLayout ()
Output: Copy/Export/Print
void print ()
void setScaleOnPrint (bool on)
void printCropmarks (bool on)
void copyImage ()
QPixmap graphPixmap ()
void exportToFile (const QString &fileName)
 Provided for convenience in scripts.
void exportSVG (const QString &fname)
void exportVector (const QString &fileName, int res=0, bool color=true, bool keepAspect=true, QPrinter::PageSize pageSize=QPrinter::Custom, QPrinter::Orientation orientation=QPrinter::Portrait)
void exportImage (const QString &fileName, int quality=100, bool transparent=false)
Error Bars
bool addErrorBars (const QString &xColName, const QString &yColName, Table *errTable, const QString &errColName, int type=1, int width=1, int cap=8, const QColor &color=QColor(Qt::black), bool through=true, bool minus=true, bool plus=true)
bool addErrorBars (const QString &yColName, Table *errTable, const QString &errColName, int type=1, int width=1, int cap=8, const QColor &color=QColor(Qt::black), bool through=true, bool minus=true, bool plus=true)
void updateErrorBars (QwtErrorPlotCurve *er, bool xErr, int width, int cap, const QColor &c, bool plus, bool minus, bool through)
DataCurvemasterCurve (QwtErrorPlotCurve *er)
 Returns a valid master curve for the error bars curve.
DataCurvemasterCurve (const QString &xColName, const QString &yColName)
 Returns a valid master curve for a plot association.
Event Handlers
void contextMenuEvent (QContextMenuEvent *)
void closeEvent (QCloseEvent *e)
bool focusNextPrevChild (bool next)
Curves Layout
CurveLayout initCurveLayout (int style, int curves=0)
static CurveLayout initCurveLayout ()
void updateCurveLayout (int index, const CurveLayout *cL)
 Set layout parameters of the curve given by index.
void guessUniqueCurveLayout (int &colorIndex, int &symbolIndex)
 Tries to guess not already used curve color and symbol style.
Zoom
void zoomed (const QwtDoubleRect &)
void zoom (bool on)
void zoomOut ()
bool zoomOn ()
Saving to File
QString saveToString (bool saveAsTemplate=false)
QString saveScale ()
QString saveScaleTitles ()
QString saveFonts ()
QString saveMarkers ()
QString saveCurveLayout (int index)
QString saveAxesTitleColors ()
QString saveAxesColors ()
QString saveEnabledAxes ()
QString saveCanvas ()
QString saveTitle ()
QString saveAxesTitleAlignement ()
QString saveEnabledTickLabels ()
QString saveTicksType ()
QString saveCurves ()
QString saveLabelsFormat ()
QString saveLabelsRotation ()
QString saveAxesLabelsType ()
QString saveAxesBaseline ()
QString saveAxesFormulas ()
Text Markers
void drawText (bool on)
bool drawTextActive ()
long insertTextMarker (Legend *mrk)
long insertTextMarker (const QStringList &list, int fileVersion)
 Used when opening a project file.
void updateTextMarker (const QString &text, int angle, int bkg, const QFont &fnt, const QColor &textColor, const QColor &backgroundColor)
QFont defaultTextMarkerFont ()
QColor textMarkerDefaultColor ()
QColor textMarkerDefaultBackground ()
int textMarkerDefaultFrame ()
void setTextMarkerDefaults (int f, const QFont &font, const QColor &textCol, const QColor &backgroundCol)
void setCopiedMarkerType (Graph::MarkerType type)
void setCopiedMarkerEnds (const QPoint &start, const QPoint &end)
void setCopiedTextOptions (int bkg, const QString &text, const QFont &font, const QColor &color, const QColor &bkgColor)
void setCopiedArrowOptions (int width, Qt::PenStyle style, const QColor &color, bool start, bool end, int headLength, int headAngle, bool filledHead)
void setCopiedImageName (const QString &fn)
QRect copiedMarkerRect ()
QVector< int > textMarkerKeys ()
LegendtextMarker (long id)
void addTimeStamp ()
void removeLegend ()
void removeLegendItem (int index)
void addLegendItem (const QString &colName)
void insertLegend (const QStringList &lst, int fileVersion)
Legendlegend ()
LegendnewLegend ()
LegendnewLegend (const QString &text)
bool hasLegend ()
QString legendText ()
 Creates a new legend text using the curves titles.
Line Markers
ArrowMarkerarrow (long id)
void addArrow (ArrowMarker *mrk)
void addArrow (QStringList list, int fileVersion)
 Used when opening a project file.
QVector< int > lineMarkerKeys ()
void drawLine (bool on, bool arrow=FALSE)
 Draws a line/arrow depending on the value of "arrow".
bool drawArrow ()
bool drawLineActive ()
Qt::PenStyle arrowLineDefaultStyle ()
bool arrowHeadDefaultFill ()
int arrowDefaultWidth ()
int arrowHeadDefaultLength ()
int arrowHeadDefaultAngle ()
QColor arrowDefaultColor ()
void setArrowDefaults (int lineWidth, const QColor &c, Qt::PenStyle style, int headLength, int headAngle, bool fillHead)
bool arrowMarkerSelected ()
Image Markers
ImageMarkerimageMarker (long id)
QVector< int > imageMarkerKeys ()
ImageMarkeraddImage (ImageMarker *mrk)
ImageMarkeraddImage (const QString &fileName)
void insertImageMarker (const QStringList &lst, int fileVersion)
bool imageMarkerSelected ()
void updateImageMarker (int x, int y, int width, int height)
Common to all Markers
void removeMarker ()
void cutMarker ()
void copyMarker ()
void pasteMarker ()
void updateMarkersBoundingRect ()
 Keep the markers on screen each time the scales are modified by adding/removing curves.
long selectedMarkerKey ()
void setSelectedMarker (long mrk, bool add=false)
 Set the selected marker.
QwtPlotMarker * selectedMarkerPtr ()
bool markerSelected ()
void deselectMarker ()
 Reset any selection states on markers.
MarkerType copiedMarkerType ()
Axes
QList< int > axesType ()
QStringList scalesTitles ()
void setXAxisTitle (const QString &text)
void setYAxisTitle (const QString &text)
void setRightAxisTitle (const QString &text)
void setTopAxisTitle (const QString &text)
void setAxisTitle (int axis, const QString &text)
QString axisTitle (int axis)
QFont axisTitleFont (int axis)
void setXAxisTitleFont (const QFont &fnt)
void setYAxisTitleFont (const QFont &fnt)
void setRightAxisTitleFont (const QFont &fnt)
void setTopAxisTitleFont (const QFont &fnt)
void setAxisTitleFont (int axis, const QFont &fnt)
void setAxisFont (int axis, const QFont &fnt)
QFont axisFont (int axis)
void initFonts (const QFont &scaleTitleFnt, const QFont &numbersFnt)
QColor axisTitleColor (int axis)
void setXAxisTitleColor (const QColor &c)
void setYAxisTitleColor (const QColor &c)
void setRightAxisTitleColor (const QColor &c)
void setTopAxisTitleColor (const QColor &c)
void setAxesTitleColor (QStringList l)
int axisTitleAlignment (int axis)
void setXAxisTitleAlignment (int align)
void setYAxisTitleAlignment (int align)
void setTopAxisTitleAlignment (int align)
void setRightAxisTitleAlignment (int align)
void setAxesTitlesAlignment (const QStringList &align)
QColor axisColor (int axis)
QStringList axesColors ()
void setAxesColors (const QStringList &colors)
QColor axisNumbersColor (int axis)
QStringList axesNumColors ()
void setAxesNumColors (const QStringList &colors)
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)
void enableAxis (int axis, bool on=true)
QVector< bool > enabledAxes ()
void enableAxes (QVector< bool > axesOn)
void enableAxes (const QStringList &list)
int labelsRotation (int axis)
void setAxisLabelRotation (int axis, int rotation)
QStringList enabledTickLabels ()
void setEnabledTickLabels (const QStringList &list)
void setAxesLinewidth (int width)
void loadAxesLinewidth (int width)
 used when opening a project file
void drawAxesBackbones (bool yes)
bool axesBackbones ()
void loadAxesOptions (const QString &s)
 used when opening a project file
QList< int > axesBaseline ()
void setAxesBaseline (const QList< int > &lst)
void setAxesBaseline (QStringList &lst)
void setMajorTicksType (const QList< int > &lst)
void setMajorTicksType (const QStringList &lst)
void setMinorTicksType (const QList< int > &lst)
void setMinorTicksType (const QStringList &lst)
int minorTickLength ()
int majorTickLength ()
void setAxisTicksLength (int axis, int majTicksType, int minTicksType, int minLength, int majLength)
void setTicksLength (int minLength, int majLength)
void changeTicksLength (int minLength, int majLength)
void setLabelsNumericFormat (const QStringList &l)
void setLabelsNumericFormat (int axis, const QStringList &l)
void setLabelsNumericFormat (int axis, int format, int prec=6, const QString &formula=QString())
void setLabelsDateTimeFormat (int axis, int type, const QString &formatInfo)
void setLabelsDayFormat (int axis, int format)
void setLabelsMonthFormat (int axis, int format)
QString axisFormatInfo (int axis)
QStringList axesLabelsFormatInfo ()
void setLabelsTextFormat (int axis, const Column *column, int startRow, int endRow)
void setLabelsTextFormat (int axis, Table *table, const QString &columnName)
void setLabelsColHeaderFormat (int axis, Table *table)
QStringList getAxesFormulas ()
void setAxesFormulas (const QStringList &l)
void setAxisFormula (int pos, const QString &f)
Canvas Frame
void drawCanvasFrame (bool frameOn, int width)
void drawCanvasFrame (const QStringList &frame)
void drawCanvasFrame (bool frameOn, int width, const QColor &color)
QColor canvasFrameColor ()
int canvasFrameWidth ()
bool framed ()
Plot Title
void setTitle (const QString &t)
void setTitleFont (const QFont &fnt)
void setTitleColor (const QColor &c)
void setTitleAlignment (int align)
bool titleSelected ()
void selectTitle ()
void removeTitle ()
void initTitle (bool on, const QFont &fnt)
Modifing insertCurve Data
int selectedCurveID ()
int selectedCurveIndex ()
QString selectedCurveTitle ()
Border and Margin
void setMargin (int d)
void setFrame (int width=1, const QColor &color=QColor(Qt::black))
void setBackgroundColor (const QColor &color)
void setCanvasBackground (const QColor &color)
Image Analysis Tools
void showIntensityTable ()
User-defined Functions
bool modifyFunctionCurve (ApplicationWindow *parent, int curve, int type, const QStringList &formulas, const QString &var, QList< double > &ranges, int points)
bool addFunctionCurve (ApplicationWindow *parent, int type, const QStringList &formulas, const QString &var, QList< double > &ranges, int points, const QString &title=QString::null)
bool insertFunctionCurve (ApplicationWindow *parent, const QStringList &func_spec, int points, int fileVersion)
 Used when reading from a project file.
QString generateFunctionName (const QString &name=tr("F"))
 Returns an unique function name.
Vector Curves
void plotVectorCurve (Table *w, const QStringList &colList, int style, int startRow=0, int endRow=-1)
void updateVectorsLayout (int curve, const QColor &color, int width, int arrowLength, int arrowAngle, bool filled, int position, const QString &xEndColName=QString(), const QString &yEndColName=QString())
Box Plots
void openBoxDiagram (Table *w, const QStringList &l, int fileVersion)
void plotBoxDiagram (Table *w, const QStringList &names, int startRow=0, int endRow=-1)
Resizing
bool ignoresResizeEvents ()
void setIgnoreResizeEvents (bool ok)
void resizeEvent (QResizeEvent *e)
void scaleFonts (double factor)

Signals

void axisDblClicked (int)
void closedGraph ()
void createIntensityTable (const QString &)
void createTable (const QString &, const QString &, QList< Column * >)
void cursorInfo (const QString &)
void dataRangeChanged ()
void drawLineEnded (bool)
void drawTextOff ()
void hiddenPlot (QWidget *)
void modifiedGraph ()
void rightAxisTitleDblClicked ()
void selectedGraph (Graph *)
void showAxisDialog (int)
void showContextMenu ()
void showCurveContextMenu (int)
void showFitResults (const QString &)
void showLayerButtonContextMenu ()
void showMarkerPopupMenu ()
void showPlotDialog (int)
void topAxisTitleDblClicked ()
void viewImageDialog ()
void viewLineDialog ()
void viewTextDialog ()
void viewTitleDialog ()
void xAxisTitleDblClicked ()
void yAxisTitleDblClicked ()

Public Member Functions

PlotToolInterfaceactiveTool () const
 Return the active tool, or NULL if none is active.
 Graph (QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
Gridgrid ()
QString parentPlotName ()
 Returns the name of the parent MultiLayer object.
void setActiveTool (PlotToolInterface *tool)
 Change the active tool, deleting the old one if it exists.
 ~Graph ()

Static Public Member Functions

static int mapToQwtAxis (int axis)

Public Attributes

CanvasPickercp
Plotd_plot
QwtPlotZoomer * d_zoomer [2]
ScalePickerscalePicker
TitlePickertitlePicker

Private Attributes

bool autoScaleFonts
int auxArrowHeadAngle
int auxArrowHeadLength
bool auxFilledArrowHead
int auxMrkAngle
int auxMrkBkg
QColor auxMrkBkgColor
QColor auxMrkColor
QPoint auxMrkEnd
QString auxMrkFileName
QFont auxMrkFont
QPoint auxMrkStart
Qt::PenStyle auxMrkStyle
QString auxMrkText
int auxMrkWidth
QStringList axesFormatInfo
 Stores columns used for axes with text labels or time/date format info.
QStringList axesFormulas
QList< int > axisType
QVector< int > c_keys
 Curves on plot keys.
QVector< int > c_type
 Curve types.
PlotToolInterfaced_active_tool
 The currently active tool, or NULL for default (pointer).
bool d_antialiasing
 Render hint for plot items.
QList< QwtPlotCurve * > d_fit_curves
 List storing pointers to the curves resulting after a fit session, in case the user wants to delete them later on.
QVector< int > d_images
 Images on plot keys.
QVector< int > d_lines
 Arrows/lines on plot keys.
QPointer< SelectionMoveResizerd_markers_selector
 The markers selected for move/resize operations or NULL if none are selected.
bool d_print_cropmarks
QPointer< RangeSelectorToold_range_selector
 The current curve selection, or NULL if none is active.
bool d_scale_on_print
QVector< int > d_texts
 Stores the identifiers (keys) of the text objects on the plot.
QVector< double > d_user_step
 Stores the step the user specified for the four scale. If step = 0.0, the step will be calculated automatically by the Qwt scale engine.
QColor defaultArrowColor
int defaultArrowHeadAngle
bool defaultArrowHeadFill
int defaultArrowHeadLength
Qt::PenStyle defaultArrowLineStyle
int defaultArrowLineWidth
QFont defaultMarkerFont
int defaultMarkerFrame
QColor defaultTextMarkerBackground
QColor defaultTextMarkerColor
bool drawArrowOn
bool drawAxesBackbone
bool drawLineOn
bool drawTextOn
bool endArrowOn
bool ignoreResize
long legendMarkerID
bool m_autoscale
QPen mrkLinePen
QwtPlotMarker::LineStyle mrklStyle
int n_curves
int selectedAxis
long selectedMarker
MarkerType selectedMarkerType
bool startArrowOn
int widthLine

Detailed Description

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 SciDAVis-specific QwtPlotCurve subclasses for parts of the functionality.

Note that some of Graph's methods are implemented in analysis.cpp.

Future Plans

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 knut ]

Add support for floating-point line widths of curves and axes (request 2300). [ assigned to thzs ]


Member Enumeration Documentation

Enumerator:
Numeric 
Txt 
Day 
Month 
Time 
Date 
ColHeader 
DateTime 
Enumerator:
Line 
Scatter 
LineSymbols 
VerticalBars 
Area 
Pie 
VerticalDropLines 
Spline 
HorizontalSteps 
Histogram 
HorizontalBars 
VectXYXY 
ErrorBars 
Box 
VectXYAM 
VerticalSteps 
ColorMap 
GrayMap 
ContourMap 
Function 
Enumerator:
None 
Text 
Arrow 
Image 

Constructor & Destructor Documentation

Graph::Graph ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WFlags  f = 0 
)
Graph::~Graph ( )

Member Function Documentation

void Graph::activateGraph ( )
slot

References selectedGraph().

Referenced by Graph().

PlotToolInterface* Graph::activeTool ( ) const
inline

Return the active tool, or NULL if none is active.

References d_active_tool.

Referenced by ApplicationWindow::customToolBars(), MultiLayer::removeLayer(), and MultiLayer::setLayersNumber().

void Graph::addArrow ( ArrowMarker mrk)
slot
void Graph::addArrow ( QStringList  list,
int  fileVersion 
)
slot
bool Graph::addErrorBars ( const QString &  xColName,
const QString &  yColName,
Table errTable,
const QString &  errColName,
int  type = 1,
int  width = 1,
int  cap = 8,
const QColor &  color = QColor(Qt::black),
bool  through = true,
bool  minus = true,
bool  plus = true 
)
slot
bool Graph::addErrorBars ( const QString &  yColName,
Table errTable,
const QString &  errColName,
int  type = 1,
int  width = 1,
int  cap = 8,
const QColor &  color = QColor(Qt::black),
bool  through = true,
bool  minus = true,
bool  plus = true 
)
slot
void Graph::addFitCurve ( QwtPlotCurve *  c)
slot
bool Graph::addFunctionCurve ( ApplicationWindow parent,
int  type,
const QStringList &  formulas,
const QString &  var,
QList< double > &  ranges,
int  points,
const QString &  title = QString::null 
)
slot
ImageMarker * Graph::addImage ( ImageMarker mrk)
slot
ImageMarker * Graph::addImage ( const QString &  fileName)
slot
void Graph::addLegendItem ( const QString &  colName)
slot
void Graph::addTimeStamp ( )
slot
QStringList Graph::analysableCurvesList ( )
slot
bool Graph::antialiasing ( )
inlineslot

References d_antialiasing.

Referenced by copy(), and PlotDialog::setActiveLayer().

ArrowMarker * Graph::arrow ( long  id)
slot

References d_plot, and Plot::marker().

Referenced by copy(), and drawLine().

QColor Graph::arrowDefaultColor ( )
inlineslot

References defaultArrowColor.

Referenced by CanvasPicker::eventFilter().

int Graph::arrowDefaultWidth ( )
inlineslot
int Graph::arrowHeadDefaultAngle ( )
inlineslot
bool Graph::arrowHeadDefaultFill ( )
inlineslot
int Graph::arrowHeadDefaultLength ( )
inlineslot
Qt::PenStyle Graph::arrowLineDefaultStyle ( )
inlineslot
bool Graph::arrowMarkerSelected ( )
slot
bool Graph::autoscaleFonts ( )
inlineslot
bool Graph::axesBackbones ( )
inlineslot

References drawAxesBackbone.

Referenced by AxesDialog::setGraph().

QList< int > Graph::axesBaseline ( )
slot

References d_plot.

Referenced by copy(), and AxesDialog::setGraph().

QStringList Graph::axesColors ( )
slot

References d_plot.

Referenced by copy(), and showAxis().

QStringList Graph::axesLabelsFormatInfo ( )
inlineslot

References axesFormatInfo.

Referenced by AxesDialog::setGraph().

QStringList Graph::axesNumColors ( )
slot

References d_plot.

Referenced by copy(), and showAxis().

QList< int > Graph::axesType ( )
slot
QColor Graph::axisColor ( int  axis)
slot

References d_plot.

Referenced by AxesDialog::updateAxisColor().

void Graph::axisDblClicked ( int  )
signal

Referenced by Graph(), and showScaleDialog().

QFont Graph::axisFont ( int  axis)
slot

References d_plot.

Referenced by copy(), and scaleFonts().

QString Graph::axisFormatInfo ( int  axis)
slot

References axesFormatInfo.

Referenced by DataCurve::convertData().

QColor Graph::axisNumbersColor ( int  axis)
slot

References d_plot.

Referenced by AxesDialog::updateAxisColor().

double Graph::axisStep ( int  axis)
inlineslot

References d_user_step.

Referenced by copy(), and AxesDialog::updateScale().

QString Graph::axisTitle ( int  axis)
inlineslot
int Graph::axisTitleAlignment ( int  axis)
slot
QColor Graph::axisTitleColor ( int  axis)
slot
QFont Graph::axisTitleFont ( int  axis)
slot
bool Graph::canConvertTo ( QwtPlotCurve *  curve,
CurveType  type 
)
staticslot

Test whether curve can be converted to type using setCurveType().

References Area, HorizontalBars, HorizontalSteps, Line, LineSymbols, Scatter, Spline, VerticalBars, VerticalDropLines, and VerticalSteps.

Referenced by ApplicationWindow::customToolBars().

QColor Graph::canvasFrameColor ( )
slot

References d_plot.

Referenced by copy(), saveCanvas(), and AxesDialog::setGraph().

int Graph::canvasFrameWidth ( )
slot

References d_plot.

Referenced by copy(), and AxesDialog::setGraph().

void Graph::changeTicksLength ( int  minLength,
int  majLength 
)
slot
void Graph::closedGraph ( )
signal

Referenced by closeEvent().

void Graph::closeEvent ( QCloseEvent *  e)
slot

References closedGraph().

void Graph::contextMenuEvent ( QContextMenuEvent *  e)
slot
QRect Graph::copiedMarkerRect ( )
inlineslot

References auxMrkEnd, and auxMrkStart.

Referenced by ApplicationWindow::copyMarker().

MarkerType Graph::copiedMarkerType ( )
inlineslot
void Graph::copy ( ApplicationWindow parent,
Graph g 
)
slot

References addArrow(), addImage(), antialiasing(), arrow(), autoscaleFonts(), autoScaleFonts, axesBaseline(), axesColors(), axesFormatInfo, axesFormulas, Plot::axesLinewidth(), axesNumColors(), axisFont(), Plot::axisLabelFormat(), Plot::axisLabelPrecision(), axisStep(), axisTitle(), axisTitleAlignment(), axisTitleColor(), axisTitleFont(), axisType, Box, c_keys, c_type, canvasFrameColor(), canvasFrameWidth(), QwtHistogram::copy(), QwtBarCurve::copy(), QwtErrorPlotCurve::copy(), BoxCurve::copy(), Spectrogram::copy(), VectorCurve::copy(), Grid::copy(), curve(), curves(), curveType(), d_fit_curves, d_plot, d_user_step, Date, DateTime, Day, drawAxesBackbone, drawAxesBackbones(), drawCanvasFrame(), enableAxes(), enabledAxes(), DataCurve::endRow(), ErrorBars, fitCurvesList(), Plot::frameColor(), framed(), Function, Plot::getMajorTicksType(), Plot::getMinorTicksType(), grid(), Histogram, HorizontalBars, imageMarker(), imageMarkerKeys(), Plot::insertCurve(), insertTextMarker(), isPiePlot(), QwtTextScaleDraw::labelsMap(), labelsRotation(), legendMarkerID, lineMarkerKeys(), majorTickLength(), masterCurve(), minorTickLength(), Month, n_curves, Numeric, Plot::paletteBackgroundColor(), Pie, plotItem(), plotWidget(), removeLegend(), setAntialiasing(), setAxesBaseline(), setAxesColors(), setAxesLinewidth(), setAxesNumColors(), setAxisFont(), setAxisLabelRotation(), setAxisTitle(), setBackgroundColor(), setCanvasBackground(), Spectrogram::setColorBarWidth(), setFrame(), setLabelsDateTimeFormat(), setLabelsDayFormat(), setLabelsMonthFormat(), setLabelsNumericFormat(), setMajorTicksType(), setMinorTicksType(), QwtPieCurve::setRay(), setRightAxisTitleAlignment(), setRightAxisTitleColor(), setRightAxisTitleFont(), setTicksLength(), setTopAxisTitleAlignment(), setTopAxisTitleColor(), setTopAxisTitleFont(), setXAxisTitleAlignment(), setXAxisTitleColor(), setXAxisTitleFont(), setYAxisTitleAlignment(), setYAxisTitleColor(), setYAxisTitleFont(), Spectrogram::showColorScale(), DataCurve::startRow(), DataCurve::table(), textMarker(), textMarkerKeys(), Time, PlotCurve::type(), QwtPieCurve::updateBoundingRect(), VectXYAM, VectXYXY, VerticalBars, DataCurve::xColumnName(), VectorCurve::XYAM, and VectorCurve::XYXY.

Referenced by MultiLayer::copy(), ApplicationWindow::copyActiveLayer(), and ApplicationWindow::pasteSelection().

void Graph::copyAxisTitle ( )
slot

References d_plot, and selectedAxis.

Referenced by cutAxisTitle(), and showAxisTitleMenu().

void Graph::copyImage ( )
slot
void Graph::copyMarker ( )
slot
void Graph::copyTitle ( )
slot

References d_plot.

Referenced by showTitleContextMenu().

void Graph::createIntensityTable ( const QString &  )
signal

Referenced by showIntensityTable().

void Graph::createTable ( const QString &  curveName)
slot

Provided for convenience in scripts.

References curve().

Referenced by createTable(), and ApplicationWindow::showCurveWorksheet().

void Graph::createTable ( const QwtPlotCurve *  curve)
slot
void Graph::createTable ( const QString &  ,
const QString &  ,
QList< Column * >   
)
signal
void Graph::cursorInfo ( const QString &  )
signal
QwtPlotCurve * Graph::curve ( int  index) const
slot
QwtPlotCurve* Graph::curve ( const QString &  title) const
inlineslot

get curve by name

References curve(), and curveIndex().

Referenced by curve().

int Graph::curveIndex ( long  key) const
inlineslot
int Graph::curveIndex ( QwtPlotCurve *  c) const
slot

Map curve pointer to index.

References plotItemIndex().

int Graph::curveIndex ( const QString &  title) const
inlineslot

map curve title to index

References plotItemsList().

long Graph::curveKey ( int  curve)
inlineslot

References c_keys, and curve().

Referenced by selectedCurveID().

int Graph::curves ( ) const
inlineslot
QStringList Graph::curvesList ( )
slot
int Graph::curveType ( int  curveIndex)
slot
void Graph::cutAxisTitle ( )
slot

References copyAxisTitle(), and removeAxisTitle().

Referenced by showAxisTitleMenu().

void Graph::cutMarker ( )
slot

References copyMarker(), and removeMarker().

void Graph::cutTitle ( )
slot

References d_plot, and removeTitle().

Referenced by showTitleContextMenu().

void Graph::dataRangeChanged ( )
signal

Referenced by enableRangeSelectors().

QFont Graph::defaultTextMarkerFont ( )
inlineslot

References defaultMarkerFont.

void Graph::deleteFitCurves ( )
slot
void Graph::deselect ( )
slot
void Graph::deselectMarker ( )
slot
void Graph::disableTools ( )
slot
bool Graph::drawArrow ( )
inlineslot
void Graph::drawAxesBackbones ( bool  yes)
slot
void Graph::drawCanvasFrame ( bool  frameOn,
int  width 
)
slot
void Graph::drawCanvasFrame ( const QStringList &  frame)
slot

References d_plot.

void Graph::drawCanvasFrame ( bool  frameOn,
int  width,
const QColor &  color 
)
slot

References d_plot, and modifiedGraph().

void Graph::drawLine ( bool  on,
bool  arrow = FALSE 
)
slot

Draws a line/arrow depending on the value of "arrow".

References arrow(), drawArrowOn, drawLineEnded(), and drawLineOn.

Referenced by disableTools(), ApplicationWindow::drawArrow(), ApplicationWindow::drawLine(), and CanvasPicker::eventFilter().

bool Graph::drawLineActive ( )
inlineslot
void Graph::drawLineEnded ( bool  )
signal

Referenced by drawLine().

void Graph::drawText ( bool  on)
slot
bool Graph::drawTextActive ( )
inlineslot

References drawTextOn.

Referenced by CanvasPicker::eventFilter().

void Graph::drawTextOff ( )
signal

Referenced by Graph().

void Graph::enableAutoscaling ( bool  yes)
inlineslot
void Graph::enableAxes ( QVector< bool >  axesOn)
slot
void Graph::enableAxes ( const QStringList &  list)
slot
void Graph::enableAxis ( int  axis,
bool  on = true 
)
slot
QVector< bool > Graph::enabledAxes ( )
slot

References d_plot.

Referenced by copy().

QStringList Graph::enabledTickLabels ( )
slot

References d_plot.

Referenced by AxesDialog::setGraph().

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 disableTools().

Referenced by ApplicationWindow::showRangeSelectors().

void Graph::exportImage ( const QString &  fileName,
int  quality = 100,
bool  transparent = false 
)
slot
void Graph::exportSVG ( const QString &  fname)
slot

References d_plot, and 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,
bool  keepAspect = true,
QPrinter::PageSize  pageSize = QPrinter::Custom,
QPrinter::Orientation  orientation = QPrinter::Portrait 
)
slot
QList<QwtPlotCurve *> Graph::fitCurvesList ( )
inlineslot

References d_fit_curves.

Referenced by copy().

bool Graph::focusNextPrevChild ( bool  next)
slot
bool Graph::framed ( )
slot

References d_plot.

Referenced by copy(), and AxesDialog::setGraph().

QString Graph::generateFunctionName ( const QString &  name = tr("F"))
slot

Returns an unique function name.

References curve(), Function, n_curves, and PlotCurve::type().

Referenced by addFunctionCurve(), and Fit::insertFitFunctionCurve().

QStringList Graph::getAxesFormulas ( )
inlineslot
Qt::BrushStyle Graph::getBrushStyle ( int  style)
staticslot

Referenced by plotPie(), and updateCurveLayout().

Qt::PenStyle Graph::getPenStyle ( const QString &  s)
staticslot
Qt::PenStyle Graph::getPenStyle ( int  style)
staticslot
QPixmap Graph::graphPixmap ( )
slot

Referenced by copyImage(), and exportImage().

Grid* Graph::grid ( )
inline
void Graph::guessUniqueCurveLayout ( int &  colorIndex,
int &  symbolIndex 
)
slot

Tries to guess not already used curve color and symbol style.

References c_keys, c_type, ColorBox::colorIndex(), Plot::curve(), curve(), d_plot, ErrorBars, QwtErrorPlotCurve::masterCurve(), n_curves, and SymbolBox::symbolIndex().

Referenced by CurvesDialog::addCurve(), and initCurveLayout().

bool Graph::hasLegend ( )
inlineslot

References legendMarkerID.

Referenced by Filter::showLegend().

void Graph::hiddenPlot ( QWidget *  )
signal
void Graph::hideSelectedAxis ( )
slot
bool Graph::ignoresResizeEvents ( )
inlineslot
ImageMarker * Graph::imageMarker ( long  id)
slot

References d_plot, and Plot::marker().

Referenced by copy().

QVector<int> Graph::imageMarkerKeys ( )
inlineslot
bool Graph::imageMarkerSelected ( )
slot
CurveLayout Graph::initCurveLayout ( int  style,
int  curves = 0 
)
slot
CurveLayout Graph::initCurveLayout ( )
staticslot
void Graph::initFonts ( const QFont &  scaleTitleFnt,
const QFont &  numbersFnt 
)
slot

References d_plot.

Referenced by ApplicationWindow::setPreferences().

void Graph::initTitle ( bool  on,
const QFont &  fnt 
)
slot

References d_plot.

Referenced by ApplicationWindow::setPreferences().

bool Graph::insertCurve ( Table w,
const QString &  name,
int  style,
int  startRow = 0,
int  endRow = -1 
)
slot
bool Graph::insertCurve ( Table w,
int  xcol,
const QString &  name,
int  style 
)
slot
bool Graph::insertCurve ( Table w,
const QString &  xColName,
const QString &  yColName,
int  style,
int  startRow = 0,
int  endRow = -1 
)
slot
bool Graph::insertCurvesList ( Table w,
const QStringList &  names,
int  style,
int  lWidth,
int  sSize,
int  startRow = 0,
int  endRow = -1 
)
slot
bool Graph::insertFunctionCurve ( ApplicationWindow parent,
const QStringList &  func_spec,
int  points,
int  fileVersion 
)
slot

Used when reading from a project file.

References addFunctionCurve(), curve(), FunctionCurve::Normal, FunctionCurve::Parametric, and FunctionCurve::Polar.

Referenced by ApplicationWindow::openGraph().

void Graph::insertImageMarker ( const QStringList &  lst,
int  fileVersion 
)
slot
void Graph::insertLegend ( const QStringList &  lst,
int  fileVersion 
)
slot
void Graph::insertPlotItem ( QwtPlotItem *  i,
int  type 
)
slot
long Graph::insertTextMarker ( Legend mrk)
slot
long Graph::insertTextMarker ( const QStringList &  list,
int  fileVersion 
)
slot
bool Graph::isPiePlot ( ) const
inlineslot
int Graph::labelsRotation ( int  axis)
slot
Legend * Graph::legend ( )
slot
QString Graph::legendText ( )
slot

Creates a new legend text using the curves titles.

References c_type, curve(), ErrorBars, FunctionCurve::legend(), and n_curves.

Referenced by newLegend(), and plotBoxDiagram().

QVector<int> Graph::lineMarkerKeys ( )
inlineslot
void Graph::loadAxesLinewidth ( int  width)
slot

used when opening a project file

References d_plot, and Plot::setAxesLinewidth().

Referenced by ApplicationWindow::openGraph().

void Graph::loadAxesOptions ( const QString &  s)
slot

used when opening a project file

References d_plot, and drawAxesBackbone.

Referenced by ApplicationWindow::openGraph().

int Graph::majorTickLength ( )
slot

References d_plot, and Plot::majorTickLength().

Referenced by copy(), and saveToString().

int Graph::mapToQwtAxis ( int  axis)
static
bool Graph::markerSelected ( )
slot
DataCurve * Graph::masterCurve ( QwtErrorPlotCurve er)
slot
DataCurve * Graph::masterCurve ( const QString &  xColName,
const QString &  yColName 
)
slot

Returns a valid master curve for a plot association.

References Plot::curveKeys(), d_plot, Function, and Plot::plotItem().

int Graph::minorTickLength ( )
slot

References d_plot, and Plot::minorTickLength().

Referenced by copy(), and saveToString().

QPrinter::PageSize Graph::minPageSize ( const QPrinter &  printer,
const QRect &  r 
)
staticslot
void Graph::modifiedGraph ( )
signal
bool Graph::modifyFunctionCurve ( ApplicationWindow parent,
int  curve,
int  type,
const QStringList &  formulas,
const QString &  var,
QList< double > &  ranges,
int  points 
)
slot
Legend * Graph::newLegend ( )
slot
Legend * Graph::newLegend ( const QString &  text)
slot
void Graph::notifyChanges ( )
slot
int Graph::obsoleteSymbolStyle ( int  type)
staticslot
void Graph::openBoxDiagram ( Table w,
const QStringList &  l,
int  fileVersion 
)
slot
QString Graph::parentPlotName ( )

Returns the name of the parent MultiLayer object.

Referenced by PolynomialFit::fit(), Fit::fit(), LinearFit::fit(), and Integration::logInfo().

void Graph::pasteMarker ( )
slot
QString Graph::penStyleName ( Qt::PenStyle  style)
staticslot
QString Graph::pieLegendText ( )
slot

References Plot::curve(), curve(), Plot::curveKeys(), and d_plot.

Referenced by newLegend().

void Graph::plotBoxDiagram ( Table w,
const QStringList &  names,
int  startRow = 0,
int  endRow = -1 
)
slot
bool Graph::plotHistogram ( Table w,
QStringList  names,
int  startRow = 0,
int  endRow = -1 
)
slot
QwtPlotItem * Graph::plotItem ( int  index)
slot
int Graph::plotItemIndex ( QwtPlotItem *  it) const
slot
QStringList Graph::plotItemsList ( ) const
slot

Returns the names of all plot items, including spectrograms, as a string list.

References Plot::curveKeys(), d_plot, and Plot::plotItem().

Referenced by curveIndex(), removeCurve(), CurvesDialog::setGraph(), and CurvesDialog::showCurveRange().

void Graph::plotPie ( Table w,
const QString &  name,
int  startRow = 0,
int  endRow = -1 
)
slot
void Graph::plotPie ( Table w,
const QString &  name,
const QPen &  pen,
int  brush,
int  size,
int  firstColor,
int  startRow = 0,
int  endRow = -1,
bool  visible = true 
)
slot
void Graph::plotSpectrogram ( Matrix m,
CurveType  type 
)
slot
void Graph::plotVectorCurve ( Table w,
const QStringList &  colList,
int  style,
int  startRow = 0,
int  endRow = -1 
)
slot
Plot* Graph::plotWidget ( ) const
inlineslot

Accessor method for d_plot.

References d_plot.

Referenced by MultiLayer::addLayer(), LineProfileTool::addLineMarker(), ScreenPickerTool::append(), DataPickerTool::append(), MultiLayer::arrangeLayers(), CanvasPicker::CanvasPicker(), copy(), DataPickerTool::DataPickerTool(), CanvasPicker::drawLineMarker(), DataPickerTool::end(), CanvasPicker::eventFilter(), MultiLayer::exportSVG(), MultiLayer::exportVector(), MultiPeakFitTool::finalize(), DataPickerTool::keyEventFilter(), RangeSelectorTool::keyEventFilter(), DataPickerTool::move(), MultiPeakFitTool::MultiPeakFitTool(), ApplicationWindow::openGraph(), SelectionMoveResizer::operateOnTargets(), FFT::output(), RangeSelectorTool::pointSelected(), MultiLayer::printAllLayers(), RangeSelectorTool::RangeSelectorTool(), DataPickerTool::removePoint(), MultiLayer::resizeLayers(), ScreenPickerTool::ScreenPickerTool(), MultiPeakFitTool::selectPeak(), PlotDialog::setActiveLayer(), MultiLayer::setFonts(), AxesDialog::setGraph(), MultiLayer::setGraphGeometry(), AxesDialog::setLabelsNumericFormat(), ApplicationWindow::setPreferences(), DataPickerTool::setSelection(), AxesDialog::showAxisFormatOptions(), AxesDialog::showGridOptions(), ApplicationWindow::showPlotGeometryDialog(), ApplicationWindow::showTitleDialog(), RangeSelectorTool::switchActiveMarker(), AxesDialog::updateGrid(), AxesDialog::updateLabelsFormat(), AxesDialog::updateMinorTicksList(), AxesDialog::updateScale(), MultiLayer::wheelEvent(), DataPickerTool::~DataPickerTool(), MultiPeakFitTool::~MultiPeakFitTool(), RangeSelectorTool::~RangeSelectorTool(), and ScreenPickerTool::~ScreenPickerTool().

void Graph::print ( )
slot
void Graph::print ( QPainter *  painter,
const QRect &  rect,
const QwtPlotPrintFilter &  pfilter = QwtPlotPrintFilter() 
)
slot
void Graph::printCanvas ( QPainter *  painter,
const QRect &  canvasRect,
const QwtScaleMap  map[QwtPlot::axisCnt],
const QwtPlotPrintFilter &  pfilter 
) const
slot

References d_plot, and Plot::drawItems().

Referenced by print().

void Graph::printCropmarks ( bool  on)
inlineslot
int Graph::range ( int  index,
double *  start,
double *  end 
)
slot

Set start and end to selected X range of curve index or, if there's no selection, to the curve's total range.

Returns:
the number of selected or total points

References curve(), and d_range_selector.

Referenced by PolynomFitDialog::activateCurve(), ExpDecayDialog::activateCurve(), InterpolationDialog::activateCurve(), IntDialog::activateCurve(), FitDialog::activateCurve(), and Filter::setDataFromCurve().

bool Graph::rangeSelectorsEnabled ( ) const
inlineslot

Check wether range selectors are currently enabled.

References d_range_selector.

Referenced by ApplicationWindow::customToolBars().

void Graph::removeAxisTitle ( )
slot

References d_plot, modifiedGraph(), and selectedAxis.

Referenced by cutAxisTitle(), and showAxisTitleMenu().

void Graph::removeCurve ( int  index)
slot
void Graph::removeCurve ( const QString &  s)
slot

Removes a curve defined by its title string s.

References plotItemsList(), and removeCurve().

void Graph::removeCurves ( const QString &  s)
slot

Removes all curves defined by the title/plot association string s.

References Plot::curveKeys(), d_plot, Function, Plot::plotItem(), and removeCurve().

void Graph::removeLegend ( )
slot
void Graph::removeLegendItem ( int  index)
slot
void Graph::removeMarker ( )
slot
void Graph::removePie ( )
slot
void Graph::removeTitle ( )
slot
void Graph::replot ( )
inlineslot
void Graph::resizeEvent ( QResizeEvent *  e)
slot
void Graph::restoreSpectrogram ( ApplicationWindow app,
const QStringList &  lst 
)
slot
void Graph::rightAxisTitleDblClicked ( )
signal

Referenced by Graph(), and showAxisTitleMenu().

QString Graph::saveAxesBaseline ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveAxesColors ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveAxesFormulas ( )
slot

References axesFormulas.

Referenced by saveToString().

QString Graph::saveAxesLabelsType ( )
slot

References axesFormatInfo, axisType, ColHeader, Date, DateTime, Day, Month, Time, and Txt.

Referenced by saveToString().

QString Graph::saveAxesTitleAlignement ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveAxesTitleColors ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveCanvas ( )
slot

References canvasFrameColor(), and d_plot.

Referenced by saveToString().

QString Graph::saveCurveLayout ( int  index)
slot
QString Graph::saveCurves ( )
slot
QString Graph::saveEnabledAxes ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveEnabledTickLabels ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveFonts ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveLabelsFormat ( )
slot
QString Graph::saveLabelsRotation ( )
slot

References labelsRotation().

Referenced by saveToString().

QString Graph::saveMarkers ( )
slot
QString Graph::savePieCurveLayout ( )
slot
QString Graph::saveScale ( )
slot

References d_plot, and d_user_step.

Referenced by saveToString().

QString Graph::saveScaleTitles ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveTicksType ( )
slot
QString Graph::saveTitle ( )
slot

References d_plot.

Referenced by saveToString().

QString Graph::saveToString ( bool  saveAsTemplate = false)
slot
void Graph::scaleFonts ( double  factor)
slot
QStringList Graph::scalesTitles ( )
slot
int Graph::selectedCurveID ( )
slot
int Graph::selectedCurveIndex ( )
inlineslot

References curveIndex(), and selectedCurveID().

QString Graph::selectedCurveTitle ( )
slot
void Graph::selectedGraph ( Graph )
signal

Referenced by activateGraph(), and selectTitle().

long Graph::selectedMarkerKey ( )
slot

References selectedMarker.

Referenced by CanvasPicker::eventFilter().

QwtPlotMarker * Graph::selectedMarkerPtr ( )
slot
double Graph::selectedXEndValue ( )
slot
double Graph::selectedXStartValue ( )
slot
void Graph::selectTitle ( )
slot

References d_plot, deselectMarker(), and selectedGraph().

Referenced by Graph().

void Graph::setActiveTool ( PlotToolInterface tool)
void Graph::setAntialiasing ( bool  on = true,
bool  update = true 
)
slot
void Graph::setArrowDefaults ( int  lineWidth,
const QColor &  c,
Qt::PenStyle  style,
int  headLength,
int  headAngle,
bool  fillHead 
)
slot
void Graph::setAutoScale ( )
slot
void Graph::setAutoscaleFonts ( bool  yes)
inlineslot
void Graph::setAxesBaseline ( const QList< int > &  lst)
slot

References d_plot.

Referenced by copy(), and ApplicationWindow::openGraph().

void Graph::setAxesBaseline ( QStringList &  lst)
slot

References d_plot.

void Graph::setAxesColors ( const QStringList &  colors)
slot

References d_plot.

Referenced by copy(), and ApplicationWindow::openGraph().

void Graph::setAxesFormulas ( const QStringList &  l)
inlineslot

References axesFormulas.

Referenced by ApplicationWindow::openGraph().

void Graph::setAxesLinewidth ( int  width)
slot
void Graph::setAxesNumColors ( const QStringList &  colors)
slot

References d_plot.

Referenced by copy(), and ApplicationWindow::openGraph().

void Graph::setAxesTitleColor ( QStringList  l)
slot

References d_plot.

Referenced by ApplicationWindow::openGraph().

void Graph::setAxesTitlesAlignment ( const QStringList &  align)
slot

References d_plot.

Referenced by ApplicationWindow::openGraph().

void Graph::setAxisFont ( int  axis,
const QFont &  fnt 
)
slot
void Graph::setAxisFormula ( int  pos,
const QString &  f 
)
inlineslot

References axesFormulas.

Referenced by ApplicationWindow::openGraph().

void Graph::setAxisLabelRotation ( int  axis,
int  rotation 
)
slot

References d_plot.

Referenced by copy(), ApplicationWindow::openGraph(), and showAxis().

void Graph::setAxisTicksLength ( int  axis,
int  majTicksType,
int  minTicksType,
int  minLength,
int  majLength 
)
slot
void Graph::setAxisTitle ( int  axis,
const QString &  text 
)
slot
void Graph::setAxisTitleFont ( int  axis,
const QFont &  fnt 
)
slot
void Graph::setBackgroundColor ( const QColor &  color)
slot
void Graph::setBarsGap ( int  curve,
int  gapPercent,
int  offset 
)
slot

Used for VerticalBars, HorizontalBars and Histograms.

References curve(), QwtBarCurve::gap(), QwtBarCurve::offset(), QwtBarCurve::setGap(), and QwtBarCurve::setOffset().

Referenced by PlotDialog::acceptParams(), and ApplicationWindow::openGraph().

void Graph::setCanvasBackground ( const QColor &  color)
slot
void Graph::setCopiedArrowOptions ( int  width,
Qt::PenStyle  style,
const QColor &  color,
bool  start,
bool  end,
int  headLength,
int  headAngle,
bool  filledHead 
)
slot
void Graph::setCopiedImageName ( const QString &  fn)
inlineslot
void Graph::setCopiedMarkerEnds ( const QPoint &  start,
const QPoint &  end 
)
slot
void Graph::setCopiedMarkerType ( Graph::MarkerType  type)
inlineslot
void Graph::setCopiedTextOptions ( int  bkg,
const QString &  text,
const QFont &  font,
const QColor &  color,
const QColor &  bkgColor 
)
slot
void Graph::setCurveBrush ( int  index,
const QBrush &  b 
)
slot

References curve().

Referenced by PlotDialog::acceptParams().

void Graph::setCurveFullRange ( int  curveIndex)
slot
void Graph::setCurvePen ( int  index,
const QPen &  p 
)
slot

References curve().

Referenced by FFT::output().

void Graph::setCurveStyle ( int  index,
int  s 
)
slot
void Graph::setCurveSymbol ( int  index,
const QwtSymbol &  s 
)
slot

References curve().

void Graph::setCurveType ( int  curve,
CurveType  type,
bool  update = true 
)
slot
void Graph::setEnabledTickLabels ( const QStringList &  list)
slot

References d_plot.

Referenced by ApplicationWindow::openGraph().

void Graph::setFrame ( int  width = 1,
const QColor &  color = QColor(Qt::black) 
)
slot
void Graph::setIgnoreResizeEvents ( bool  ok)
inlineslot
void Graph::setLabelsColHeaderFormat ( int  axis,
Table table 
)
slot
void Graph::setLabelsDateTimeFormat ( int  axis,
int  type,
const QString &  formatInfo 
)
slot
void Graph::setLabelsDayFormat ( int  axis,
int  format 
)
slot
void Graph::setLabelsMonthFormat ( int  axis,
int  format 
)
slot
void Graph::setLabelsNumericFormat ( const QStringList &  l)
slot
void Graph::setLabelsNumericFormat ( int  axis,
const QStringList &  l 
)
slot
void Graph::setLabelsNumericFormat ( int  axis,
int  format,
int  prec = 6,
const QString &  formula = QString() 
)
slot
void Graph::setLabelsTextFormat ( int  axis,
const Column column,
int  startRow,
int  endRow 
)
slot
void Graph::setLabelsTextFormat ( int  axis,
Table table,
const QString &  columnName 
)
slot
void Graph::setMajorTicksType ( const QList< int > &  lst)
slot
void Graph::setMajorTicksType ( const QStringList &  lst)
slot
void Graph::setMargin ( int  d)
slot
void Graph::setMinorTicksType ( const QList< int > &  lst)
slot
void Graph::setMinorTicksType ( const QStringList &  lst)
slot
void Graph::setRightAxisTitle ( const QString &  text)
slot

References d_plot, and modifiedGraph().

void Graph::setRightAxisTitleAlignment ( int  align)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setRightAxisTitleColor ( const QColor &  c)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setRightAxisTitleFont ( const QFont &  fnt)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setScale ( int  axis,
double  start,
double  end,
double  step = 0.0,
int  majorTicks = 5,
int  minorTicks = 5,
int  type = 0,
bool  inverted = false 
)
slot
void Graph::setScaleOnPrint ( bool  on)
inlineslot
void Graph::setSelectedMarker ( long  mrk,
bool  add = false 
)
slot

Set the selected marker.

Parameters:
mrkkey of the marker to be selected.
addwhether 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_images, d_lines, d_markers_selector, d_plot, d_texts, Plot::marker(), modifiedGraph(), and selectedMarker.

Referenced by focusNextPrevChild(), and CanvasPicker::selectMarker().

void Graph::setTextMarkerDefaults ( int  f,
const QFont &  font,
const QColor &  textCol,
const QColor &  backgroundCol 
)
slot
void Graph::setTicksLength ( int  minLength,
int  majLength 
)
slot
void Graph::setTitle ( const QString &  t)
slot
void Graph::setTitleAlignment ( int  align)
slot

References d_plot, and modifiedGraph().

Referenced by ApplicationWindow::openGraph().

void Graph::setTitleColor ( const QColor &  c)
slot

References d_plot, and modifiedGraph().

Referenced by ApplicationWindow::openGraph().

void Graph::setTitleFont ( const QFont &  fnt)
slot

References d_plot, and modifiedGraph().

Referenced by ApplicationWindow::openGraph().

void Graph::setTopAxisTitle ( const QString &  text)
slot

References d_plot, and modifiedGraph().

void Graph::setTopAxisTitleAlignment ( int  align)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setTopAxisTitleColor ( const QColor &  c)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setTopAxisTitleFont ( const QFont &  fnt)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setXAxisTitle ( const QString &  text)
slot

References d_plot, and modifiedGraph().

Referenced by ImportOPJ::importGraphs().

void Graph::setXAxisTitleAlignment ( int  align)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setXAxisTitleColor ( const QColor &  c)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setXAxisTitleFont ( const QFont &  fnt)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setYAxisTitle ( const QString &  text)
slot

References d_plot, and modifiedGraph().

Referenced by ImportOPJ::importGraphs().

void Graph::setYAxisTitleAlignment ( int  align)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setYAxisTitleColor ( const QColor &  c)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::setYAxisTitleFont ( const QFont &  fnt)
slot

References d_plot, and modifiedGraph().

Referenced by copy().

void Graph::showAxis ( int  axis,
int  type,
const QString &  formatInfo,
Table table,
bool  axisOn,
int  majTicksType,
int  minTicksType,
bool  labelsOn,
const QColor &  c,
int  format,
int  prec,
int  rotation,
int  baselineDist,
const QString &  formula,
const QColor &  labelsColor 
)
slot
void Graph::showAxisContextMenu ( int  axis)
slot
void Graph::showAxisDialog ( )
slot

References selectedAxis.

Referenced by showAxisContextMenu().

void Graph::showAxisDialog ( int  )
signal
void Graph::showAxisTitleMenu ( int  axis)
slot
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 ( int  )
signal

Referenced by contextMenuEvent().

void Graph::showFitResults ( const QString &  )
signal
void Graph::showGrid ( )
slot

Convenience function enabling the grid for QwtScaleDraw::Left and Bottom Scales.

Referenced by showGrids().

void Graph::showGrid ( int  axis)
slot

Convenience function enabling the grid for a user defined axis.

References d_plot, Plot::grid(), grid(), and modifiedGraph().

void Graph::showGrids ( )
slot

References selectedAxis, and showGrid().

Referenced by showAxisContextMenu().

void Graph::showIntensityTable ( )
slot
void Graph::showLayerButtonContextMenu ( )
signal
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 
)
staticslot

Referenced by CurvesDialog::addCurves().

void Graph::showScaleDialog ( )
slot

References axisDblClicked(), and selectedAxis.

Referenced by showAxisContextMenu().

void Graph::showTitleContextMenu ( )
slot

References copyTitle(), cutTitle(), removeTitle(), and viewTitleDialog().

Referenced by Graph().

Legend * Graph::textMarker ( long  id)
slot

References d_plot, and Plot::marker().

Referenced by copy(), and MultiLayer::setFonts().

QColor Graph::textMarkerDefaultBackground ( )
inlineslot
QColor Graph::textMarkerDefaultColor ( )
inlineslot
int Graph::textMarkerDefaultFrame ( )
inlineslot

References defaultMarkerFrame.

QVector<int> Graph::textMarkerKeys ( )
inlineslot
bool Graph::titleSelected ( )
slot

References d_plot.

Referenced by ApplicationWindow::clearSelection().

void Graph::topAxisTitleDblClicked ( )
signal

Referenced by Graph(), and showAxisTitleMenu().

void Graph::updateCurveLayout ( int  index,
const CurveLayout cL 
)
slot
void Graph::updateCurveNames ( const QString &  oldName,
const QString &  newName,
bool  updateTableName = true 
)
slot
void Graph::updateCurvesData ( Table w,
const QString &  yColName 
)
slot
void Graph::updateErrorBars ( QwtErrorPlotCurve er,
bool  xErr,
int  width,
int  cap,
const QColor &  c,
bool  plus,
bool  minus,
bool  through 
)
slot
void Graph::updateImageMarker ( int  x,
int  y,
int  width,
int  height 
)
slot
void Graph::updateMarkersBoundingRect ( )
slot

Keep the markers on screen each time the scales are modified by adding/removing curves.

References d_images, d_lines, d_plot, d_texts, Plot::marker(), ImageMarker::updateBoundingRect(), ArrowMarker::updateBoundingRect(), and Legend::updateOrigin().

Referenced by setScale(), updatePlot(), and updateScale().

void Graph::updatePlot ( )
slot
void Graph::updateScale ( )
slot
void Graph::updateSecondaryAxis ( int  axis)
slot
void Graph::updateTextMarker ( const QString &  text,
int  angle,
int  bkg,
const QFont &  fnt,
const QColor &  textColor,
const QColor &  backgroundColor 
)
slot
void Graph::updateVectorsLayout ( int  curve,
const QColor &  color,
int  width,
int  arrowLength,
int  arrowAngle,
bool  filled,
int  position,
const QString &  xEndColName = QString(),
const QString &  yEndColName = QString() 
)
slot
bool Graph::validCurvesDataSize ( ) const
slot
void Graph::viewImageDialog ( )
signal

Referenced by Graph().

void Graph::viewLineDialog ( )
signal

Referenced by Graph().

void Graph::viewTextDialog ( )
signal

Referenced by Graph().

void Graph::viewTitleDialog ( )
signal

Referenced by Graph(), and showTitleContextMenu().

int Graph::visibleCurves ( )
slot
void Graph::xAxisTitleDblClicked ( )
signal

Referenced by Graph(), and showAxisTitleMenu().

void Graph::yAxisTitleDblClicked ( )
signal

Referenced by Graph(), and showAxisTitleMenu().

void Graph::zoom ( bool  on)
slot
void Graph::zoomed ( const QwtDoubleRect &  )
slot

References modifiedGraph().

Referenced by Graph().

bool Graph::zoomOn ( )
slot
void Graph::zoomOut ( )
slot

References d_zoomer, and updateSecondaryAxis().


Member Data Documentation

bool Graph::autoScaleFonts
private
int Graph::auxArrowHeadAngle
private
int Graph::auxArrowHeadLength
private
bool Graph::auxFilledArrowHead
private
int Graph::auxMrkAngle
private

Referenced by pasteMarker().

int Graph::auxMrkBkg
private
QColor Graph::auxMrkBkgColor
private
QColor Graph::auxMrkColor
private
QPoint Graph::auxMrkEnd
private
QString Graph::auxMrkFileName
private
QFont Graph::auxMrkFont
private
QPoint Graph::auxMrkStart
private
Qt::PenStyle Graph::auxMrkStyle
private
QString Graph::auxMrkText
private
int Graph::auxMrkWidth
private
QStringList Graph::axesFormatInfo
private
QStringList Graph::axesFormulas
private
QList<int> Graph::axisType
private
QVector<int> Graph::c_keys
private
QVector<int> Graph::c_type
private
CanvasPicker* Graph::cp

Referenced by focusNextPrevChild(), Graph(), and ~Graph().

PlotToolInterface* Graph::d_active_tool
private

The currently active tool, or NULL for default (pointer).

Referenced by activeTool(), Graph(), setActiveTool(), and updatePlot().

bool Graph::d_antialiasing
private

Render hint for plot items.

Referenced by antialiasing(), Graph(), saveToString(), and setAntialiasing().

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(), copy(), deleteFitCurves(), fitCurvesList(), removeCurve(), and setCurveType().

QVector<int> Graph::d_images
private
QVector<int> Graph::d_lines
private
QPointer<SelectionMoveResizer> Graph::d_markers_selector
private

The markers selected for move/resize operations or NULL if none are selected.

Referenced by deselectMarker(), insertTextMarker(), newLegend(), removeMarker(), and setSelectedMarker().

Plot* Graph::d_plot

Referenced by addArrow(), addErrorBars(), addFunctionCurve(), addImage(), addLegendItem(), addTimeStamp(), analysableCurvesList(), arrow(), axesBaseline(), axesColors(), axesNumColors(), axisColor(), axisFont(), axisNumbersColor(), axisTitle(), axisTitleAlignment(), axisTitleColor(), axisTitleFont(), canvasFrameColor(), canvasFrameWidth(), changeTicksLength(), contextMenuEvent(), copy(), copyAxisTitle(), copyMarker(), copyTitle(), curve(), curvesList(), cutTitle(), deleteFitCurves(), drawAxesBackbones(), drawCanvasFrame(), drawText(), enableAxes(), enableAxis(), enabledAxes(), enabledTickLabels(), exportSVG(), exportVector(), focusNextPrevChild(), framed(), Graph(), grid(), guessUniqueCurveLayout(), hideSelectedAxis(), imageMarker(), initFonts(), initTitle(), insertCurve(), insertImageMarker(), insertPlotItem(), insertTextMarker(), labelsRotation(), legend(), loadAxesLinewidth(), loadAxesOptions(), majorTickLength(), masterCurve(), minorTickLength(), modifyFunctionCurve(), newLegend(), openBoxDiagram(), pasteMarker(), pieLegendText(), plotBoxDiagram(), plotHistogram(), plotItem(), plotItemIndex(), plotItemsList(), plotPie(), plotSpectrogram(), plotVectorCurve(), plotWidget(), print(), printCanvas(), removeAxisTitle(), removeCurve(), removeCurves(), removeLegend(), removeLegendItem(), removeMarker(), removePie(), removeTitle(), replot(), resizeEvent(), restoreSpectrogram(), saveAxesBaseline(), saveAxesColors(), saveAxesTitleAlignement(), saveAxesTitleColors(), saveCanvas(), saveEnabledAxes(), saveEnabledTickLabels(), saveFonts(), saveLabelsFormat(), saveMarkers(), saveScale(), saveScaleTitles(), saveTicksType(), saveTitle(), saveToString(), scaleFonts(), scalesTitles(), selectedMarkerPtr(), selectTitle(), setAntialiasing(), setAutoScale(), setAxesBaseline(), setAxesColors(), setAxesLinewidth(), setAxesNumColors(), setAxesTitleColor(), setAxesTitlesAlignment(), setAxisFont(), setAxisLabelRotation(), setAxisTicksLength(), setAxisTitle(), setAxisTitleFont(), setBackgroundColor(), setCanvasBackground(), setCurveType(), setEnabledTickLabels(), setFrame(), setLabelsColHeaderFormat(), setLabelsDateTimeFormat(), setLabelsDayFormat(), setLabelsMonthFormat(), setLabelsNumericFormat(), setLabelsTextFormat(), setMajorTicksType(), setMargin(), setMinorTicksType(), setRightAxisTitle(), setRightAxisTitleAlignment(), setRightAxisTitleColor(), setRightAxisTitleFont(), setScale(), setSelectedMarker(), setTicksLength(), setTitle(), setTitleAlignment(), setTitleColor(), setTitleFont(), setTopAxisTitle(), setTopAxisTitleAlignment(), setTopAxisTitleColor(), setTopAxisTitleFont(), setXAxisTitle(), setXAxisTitleAlignment(), setXAxisTitleColor(), setXAxisTitleFont(), setYAxisTitle(), setYAxisTitleAlignment(), setYAxisTitleColor(), setYAxisTitleFont(), showAxis(), showAxisContextMenu(), showGrid(), showIntensityTable(), textMarker(), titleSelected(), updateCurveNames(), updateCurvesData(), updateErrorBars(), updateImageMarker(), updateMarkersBoundingRect(), updatePlot(), updateScale(), updateSecondaryAxis(), updateTextMarker(), updateVectorsLayout(), visibleCurves(), zoom(), and ~Graph().

bool Graph::d_print_cropmarks
private

Referenced by Graph(), print(), and printCropmarks().

QPointer<RangeSelectorTool> Graph::d_range_selector
private
bool Graph::d_scale_on_print
private

Referenced by Graph(), print(), and setScaleOnPrint().

QVector<int> Graph::d_texts
private
QVector<double> Graph::d_user_step
private

Stores the step the user specified for the four scale. If step = 0.0, the step will be calculated automatically by the Qwt scale engine.

Referenced by axisStep(), copy(), Graph(), saveScale(), setScale(), and updateSecondaryAxis().

QwtPlotZoomer* Graph::d_zoomer[2]
QColor Graph::defaultArrowColor
private
int Graph::defaultArrowHeadAngle
private
bool Graph::defaultArrowHeadFill
private
int Graph::defaultArrowHeadLength
private
Qt::PenStyle Graph::defaultArrowLineStyle
private
int Graph::defaultArrowLineWidth
private
QFont Graph::defaultMarkerFont
private
int Graph::defaultMarkerFrame
private
QColor Graph::defaultTextMarkerBackground
private
QColor Graph::defaultTextMarkerColor
private
bool Graph::drawArrowOn
private

Referenced by drawArrow(), drawLine(), and Graph().

bool Graph::drawAxesBackbone
private
bool Graph::drawLineOn
private

Referenced by drawLine(), drawLineActive(), and Graph().

bool Graph::drawTextOn
private

Referenced by drawText(), drawTextActive(), and Graph().

bool Graph::endArrowOn
private
bool Graph::ignoreResize
private
long Graph::legendMarkerID
private
bool Graph::m_autoscale
private
QPen Graph::mrkLinePen
private
QwtPlotMarker::LineStyle Graph::mrklStyle
private
int Graph::n_curves
private
ScalePicker* Graph::scalePicker
int Graph::selectedAxis
private
long Graph::selectedMarker
private
MarkerType Graph::selectedMarkerType
private
bool Graph::startArrowOn
private
TitlePicker* Graph::titlePicker

Referenced by deselect(), Graph(), and ~Graph().

int Graph::widthLine
private

The documentation for this class was generated from the following files: