#include "Plot.h"
Signals | |
| void | resetItemSelectionRequest (void) |
| void | setItemSelectedRequest (UID _treeItemUid, bool _hasControlModifier) |
Public Member Functions | |
| Plot () | |
| virtual | ~Plot () |
| virtual QWidget * | getQWidget (void) override |
| Returns a pointer to the root widget of this object. | |
| CartesianPlot * | getCartesianPlot (void) |
| PolarPlot * | getPolarPlot (void) |
| void | setPlotType (Plot1DCfg::PlotType _type) |
| PlotDataset * | addDataset (const QString &_title, double *_dataX, double *_dataY, long _dataSize) |
| void | setConfig (const Plot1DCfg &_config) |
| const Plot1DCfg & | getConfig (void) const |
| void | setFromDataBaseConfig (const Plot1DDataBaseCfg &_config) |
| void | resetView (void) |
| void | setErrorState (bool _isError, const QString &_message=QString()) |
| void | setIncompatibleData (void) |
| void | refresh (void) |
| void | clear (bool _clearCache) |
| void | removeFromCache (unsigned long long _entityID) |
| void | datasetSelectionChanged (PlotDataset *_selectedDataset) |
| PlotDataset * | findDataset (QwtPlotCurve *_curve) |
| Returns the dataset for the given plot curve. Returns NULL if the dataset does not exist. The Plot keeps ownership of the dataset. | |
| PlotDataset * | findDataset (QwtPolarCurve *_curve) |
| Returns the dataset for the given plot curve. Returns NULL if the dataset does not exist. The Plot keeps ownership of the dataset. | |
| PlotDataset * | findDataset (UID _entityID) |
| Returns the cached dataset for the given entity id. Returns NULL if the dataset does not exist. The Plot keeps ownership of the dataset. | |
| void | setAxisQuantity (Plot1DCfg::AxisQuantity _quantity) |
| bool | hasCachedEntity (UID _entityID) const |
| bool | changeCachedDatasetEntityVersion (UID _entityID, UID _newEntityVersion) |
| Updates the entity version of the specified dataset if needed. Returns false if the dataset does not exist or the version did not change. | |
| std::list< PlotDataset * > | getDatasets (void) const |
Public Member Functions inherited from ot::QWidgetInterface | |
| QWidgetInterface () | |
| virtual | ~QWidgetInterface () |
| void | setOTWidgetFlags (const WidgetFlags &_flags) |
| const WidgetFlags & | otWidgetFlags (void) const |
| virtual void | otWidgetFlagsChanged (const WidgetFlags &_flags) |
| void | centerOnParent (const QWidget *const _parentWidget) |
| Centers this widget on the parent. If no parent is provided the widget will center on the screen. | |
| QPoint | calculateCenterOnParentPos (const QWidget *const _parentWidget) |
| Calculates the top left corner of this widget centered on the parent widget. If no parent is provided the widget will center on the screen. | |
Protected Member Functions | |
| virtual void | importData (const std::string &_projectName, const std::list< Plot1DCurveInfoCfg > &_curvesToImport) |
| std::map< UID, std::pair< UID, PlotDataset * > > & | getCache (void) |
| const std::map< UID, std::pair< UID, PlotDataset * > > & | getCache (void) const |
Additional Inherited Members | |
Protected Attributes inherited from ot::QWidgetInterface | |
| WidgetFlags | m_widgetFlags |
| ot::Plot::Plot | ( | ) |
|
virtual |
| ot::PlotDataset * ot::Plot::addDataset | ( | const QString & | _title, |
| double * | _dataX, | ||
| double * | _dataY, | ||
| long | _dataSize ) |
Updates the entity version of the specified dataset if needed. Returns false if the dataset does not exist or the version did not change.
| void ot::Plot::clear | ( | bool | _clearCache | ) |
| void ot::Plot::datasetSelectionChanged | ( | PlotDataset * | _selectedDataset | ) |
| ot::PlotDataset * ot::Plot::findDataset | ( | QwtPlotCurve * | _curve | ) |
Returns the dataset for the given plot curve. Returns NULL if the dataset does not exist. The Plot keeps ownership of the dataset.
| ot::PlotDataset * ot::Plot::findDataset | ( | QwtPolarCurve * | _curve | ) |
Returns the dataset for the given plot curve. Returns NULL if the dataset does not exist. The Plot keeps ownership of the dataset.
| ot::PlotDataset * ot::Plot::findDataset | ( | UID | _entityID | ) |
Returns the cached dataset for the given entity id. Returns NULL if the dataset does not exist. The Plot keeps ownership of the dataset.
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
| std::list< ot::PlotDataset * > ot::Plot::getDatasets | ( | void | ) | const |
|
inline |
|
inlineoverridevirtual |
Returns a pointer to the root widget of this object.
Implements ot::QWidgetInterface.
| bool ot::Plot::hasCachedEntity | ( | UID | _entityID | ) | const |
|
inlineprotectedvirtual |
| void ot::Plot::refresh | ( | void | ) |
| void ot::Plot::removeFromCache | ( | unsigned long long | _entityID | ) |
|
signal |
| void ot::Plot::resetView | ( | void | ) |
| void ot::Plot::setAxisQuantity | ( | Plot1DCfg::AxisQuantity | _quantity | ) |
|
inline |
| void ot::Plot::setErrorState | ( | bool | _isError, |
| const QString & | _message = QString() ) |
| void ot::Plot::setFromDataBaseConfig | ( | const Plot1DDataBaseCfg & | _config | ) |
| void ot::Plot::setIncompatibleData | ( | void | ) |
|
signal |
| void ot::Plot::setPlotType | ( | Plot1DCfg::PlotType | _type | ) |