![]() |
VR-Exchange 2.2 API Documentation
|
A QwtPlot Widget customized for plotting broker framerates. More...

Signals | |
| void | seriesEnabledStateChanged (unsigned int seriesId, bool enabled) |
| Notifies listeners that the enabled state of the series changed. | |
Public Member Functions | |
| virtual | ~DtFrameratePlot () |
| Virtual DTOR. | |
| virtual void | initialize (bool showLegend) |
| Applies styles to the plot. | |
| virtual void | setShowTimeLabels (bool show) |
| Sets whether the X-Axis time labels are visible. | |
| virtual void | setLockUpdates (bool lock) |
| Sets whether updates. | |
| virtual DtFrameratePlotSeries * | createPlotSeries (unsigned int seriesId, const QColor &color, Qt::PenStyle style, const QString &dispName=QString()) |
| Creates a new series to display on the plot. | |
| virtual DtFrameratePlotSeries * | createPlotSeries (unsigned int seriesId, const QPen &pen, const QString &dispName=QString()) |
| Creates a new series to display on the plot. | |
| virtual bool | removeSeries (unsigned int seriesId) |
| Removes the series with the given id from the plot. | |
| virtual DtFrameratePlotSeries * | findSeries (unsigned int seriesId) |
| Finds the series with the given ID and returns it. | |
| virtual QwtLegend * | createLegend () |
| Creates a legend for the plot. | |
| virtual void | setFixedXAxisLength (double xAxisLength) |
| Set the fixed length of the X-Axis. | |
| virtual double | fixedXAxisLength () const |
| Get the currently set fixed X-Axis length. | |
| virtual void | setLazyMinMaxEnabled (bool enabled) |
| Set whether min/max calculation limiting should be enabled. | |
| virtual bool | lazyMinMaxEnabled () const |
| Get whether lazy min/max calculations are enabled. | |
| virtual void | updateSeries (unsigned int seriesId, double t, double val) |
| Updates the given series with the given values Updates the series with the given values, updates the plot's scaling, and performs a replot. | |
| virtual void | updateAxisScaling () |
| Updates the axis scaling to show the only the data range. | |
| virtual void | updateAxisScaling (double t) |
| Updates the axis scaling to show the only the data range. | |
| virtual double | getMaxVal () const |
| Accessor for the plot's max value of all series. | |
| virtual double | getMinVal () const |
| Accessor for the plot's min value of all series. | |
| virtual void | setSeriesEnabled (unsigned int seriesId, bool enabled) |
| Sets the series with the given id to be enabled or not. | |
| virtual void | setSeriesEnabled (QwtPlotItem *item, bool enabled) |
| Sets the given series to be enabled or not. | |
| virtual void | clear () |
| Clears the data values for all series and replots. | |
| virtual QSize | sizeHint () const |
| Returns the size hint for the plot. | |
Static Public Member Functions | |
| static DtFrameratePlot * | create () |
| Instantiates and initializes a new DtFrameratePlot. | |
| static DtFrameratePlot * | create (LegendPosition legendPos) |
| Instantiates and initializes a new DtFrameratePlot. | |
Protected Types | |
| typedef std::map< unsigned int, DtFrameratePlotSeries * > | SeriesMap |
Protected Member Functions | |
| DtFrameratePlot () | |
| Protected CTOR (use create(..)) This CTOR creates a plot with no legend. | |
| DtFrameratePlot (LegendPosition legendPos) | |
| Protected CTOR (use create(..)) Instantiates a new plot with grid lines and scrolling. | |
| virtual void | recomputeMinMax () const |
| Computes the plot's min and max values of all series. | |
| virtual QPen | createPen (const QColor &color, Qt::PenStyle style=Qt::SolidLine, int width=0) |
| Utility method for creating a pen with the given color and width. | |
Protected Attributes | |
| SeriesMap | mySeries |
| LegendPosition | myLegendPosition |
| double | myFixedXAxisLength |
| double | myMaxVal |
| double | myMinVal |
| bool | myEnableLazyMinMaxFlag |
| bool | myDirtyMinMaxFlag |
| bool | myLockUpdatesFlag |
| bool | myDirtyPlotFlag |
Static Protected Attributes | |
| static const float | theScaleFactor |
| Constant used for scaling y axis. | |
A QwtPlot Widget customized for plotting broker framerates.
|
protected |
|
virtual |
Virtual DTOR.
|
protected |
Protected CTOR (use create(..)) This CTOR creates a plot with no legend.
Instantiates a new plot with grid lines and scrolling
|
protected |
Protected CTOR (use create(..)) Instantiates a new plot with grid lines and scrolling.
| legendPos | where to position the legend relative to the plot. |
|
static |
Instantiates and initializes a new DtFrameratePlot.
|
static |
Instantiates and initializes a new DtFrameratePlot.
| legendPos | where to position the legend relative to the plot. |
|
virtual |
Applies styles to the plot.
| showLegend | whether the plot's legend should be visible. |
| legendPos | where to position the legend relative to the plot. |
| unitLabel | label for the units of the y axis. |
|
virtual |
Sets whether the X-Axis time labels are visible.
|
virtual |
Sets whether updates.
|
virtual |
Creates a new series to display on the plot.
| seriesId | an integer ID uniquely identifying the series |
| color | the color of the series lines |
| style | the style of the series lines |
| dispName | a logical name for the series (to be displayed on the legend) |
|
virtual |
Creates a new series to display on the plot.
| seriesId | an integer ID uniquely identifying the series |
| pen | the pen to use for the series lines |
| dispName | a logical name for the series (to be displayed on the legend) |
|
virtual |
Removes the series with the given id from the plot.
| seriesId | the id of the series to remove. |
|
virtual |
Finds the series with the given ID and returns it.
|
virtual |
Creates a legend for the plot.
|
virtual |
Set the fixed length of the X-Axis.
If set, the plot will only display the most recent data points that fall in the most recent xAxisLength range. If set to 0, the plot will resize to fit all values.
|
virtual |
Get the currently set fixed X-Axis length.
|
virtual |
Set whether min/max calculation limiting should be enabled.
Disabling this causes the last calculated min/max values to be stored and returned for further calls until one of the plot's series is updated. Series created by the plot inherit this setting. Note: If rescaling actions are being performed on the plot independently from the updating of the plot's series, this may need to be disabled to work correctly in conjunction with the series' onlyVisibleMinMax setting.
|
virtual |
Get whether lazy min/max calculations are enabled.
|
virtual |
Updates the given series with the given values Updates the series with the given values, updates the plot's scaling, and performs a replot.
Does nothing if the series ID is invalid.
| seriesId | the id of the series to update |
| t | the time (x) value to update with |
| val | the value (y) value to update with |
|
virtual |
Updates the axis scaling to show the only the data range.
Looks up most recently plotted time and calls updateAxisScaling( double ).
|
virtual |
Updates the axis scaling to show the only the data range.
Updates the y axis scaling so all points on all series are visible. Updates the x axis scaling to respect the fixedXAxisLength (if set).
| t | the latest x axis value plotted. |
|
virtual |
Accessor for the plot's max value of all series.
If the value needs to be recomputed, does so before returning the value. Methods should use this rather than accessing the myMaxVal directly because this method will force it to be computed.
|
virtual |
Accessor for the plot's min value of all series.
If the value needs to be recomputed, does so before returning the value. Methods should use this rather than accessing the myMinVal directly because this method will force it to be computed.
|
virtual |
Sets the series with the given id to be enabled or not.
If the series is enabled, it is visible and its min/max values are factored into scaling calculations; if the series is disabled, it is not visible and is not used in scaling calculations.
|
virtual |
Sets the given series to be enabled or not.
If the series is enabled, it is visible and its min/max values are factored into scaling calculations; if the series is disabled, it is not visible and is not used in scaling calculations.
|
virtual |
Clears the data values for all series and replots.
|
virtual |
Returns the size hint for the plot.
Overridden to allow smaller plots.
|
signal |
Notifies listeners that the enabled state of the series changed.
Non-virtual - Signals cannot be declared virtual.
|
protectedvirtual |
Computes the plot's min and max values of all series.
Iterates over the plot's series and determines the min and max values.
|
protectedvirtual |
Utility method for creating a pen with the given color and width.
| color | the color to make the pen |
| style | the style of line to draw |
| width | the width of the pen |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
staticprotected |
Constant used for scaling y axis.