OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
qwtw::Plot Class Reference

#include "Plot.h"

Inheritance diagram for qwtw::Plot:

Signals

void selectionChanged (PlotDataset *_selectedDataset, bool _isControlPressed)
 

Public Member Functions

 Plot ()
 
virtual ~Plot ()
 
QWidget * widget (void) const
 
void setPlotType (AbstractPlot::PlotType _type)
 
void setTitle (const QString &_title)
 
void setGridVisible (bool _isVisible, bool _repaint=true)
 
void setGridColor (const QColor &_color, bool _repaint=true)
 
void setGridLineWidth (double _width, bool _repaint=true)
 
void setLegendVisible (bool _isVisible, bool _repaint=true)
 
void setAxisTitle (AbstractPlotAxis::AxisID _axis, const QString &_title)
 
void setAxisAutoScale (AbstractPlotAxis::AxisID _axis, bool _autoScaleEnabled)
 
void setAxisLogScale (AbstractPlotAxis::AxisID _axis, bool _logScaleEnabled)
 
void setAxisMinValue (AbstractPlotAxis::AxisID _axis, double _minValue)
 
void setAxisMaxValue (AbstractPlotAxis::AxisID _axis, double _maxValue)
 
void setAxisValueLabels (AbstractPlotAxis::AxisID _axis, const std::map< double, QString > &_valueToLabelMap)
 
void clearAxisValueLabels ()
 
void clearAxisValueLabels (AbstractPlotAxis::AxisID _axis)
 
void resetView (void)
 
PlotDatasetaddDataset (const QString &_title, double *_dataX, double *_dataY, long _dataSize, bool _addToCache=true)
 
virtual void datasetSelectionChanged (PlotDataset *_selectedDataset)
 
void setErrorState (bool _isError, const QString &_message=QString())
 
void setIncompatibleData (void)
 
void repaintAll (void)
 
void refresh (void)
 
void clear (bool _clearCache, bool _clearAxisSettings)
 
void removeFromCache (unsigned long long _entityID)
 
PlotDatasetfindDataset (QwtPlotCurve *_curve)
 
PlotDatasetfindDataset (QwtPolarCurve *_curve)
 
void setAxisQuantity (PlotDataset::axisQuantity _type)
 
void SetStyleSheets (const std::string &_plotBackgroundSheet, const std::string &_xyPlot, const std::string &_xyCanvas, const QColor &_polarPlotColor, const QPen &_zoomerPen)
 

Constructor & Destructor Documentation

◆ Plot()

qwtw::Plot::Plot ( )

◆ ~Plot()

qwtw::Plot::~Plot ( )
virtual

Member Function Documentation

◆ addDataset()

qwtw::PlotDataset * qwtw::Plot::addDataset ( const QString & _title,
double * _dataX,
double * _dataY,
long _dataSize,
bool _addToCache = true )

◆ clear()

void qwtw::Plot::clear ( bool _clearCache,
bool _clearAxisSettings )

◆ clearAxisValueLabels() [1/2]

void qwtw::Plot::clearAxisValueLabels ( )

◆ clearAxisValueLabels() [2/2]

void qwtw::Plot::clearAxisValueLabels ( AbstractPlotAxis::AxisID _axis)

◆ datasetSelectionChanged()

void qwtw::Plot::datasetSelectionChanged ( PlotDataset * _selectedDataset)
virtual

◆ findDataset() [1/2]

qwtw::PlotDataset * qwtw::Plot::findDataset ( QwtPlotCurve * _curve)

◆ findDataset() [2/2]

qwtw::PlotDataset * qwtw::Plot::findDataset ( QwtPolarCurve * _curve)

◆ refresh()

void qwtw::Plot::refresh ( void )

◆ removeFromCache()

void qwtw::Plot::removeFromCache ( unsigned long long _entityID)

◆ repaintAll()

void qwtw::Plot::repaintAll ( void )

◆ resetView()

void qwtw::Plot::resetView ( void )

◆ selectionChanged

void qwtw::Plot::selectionChanged ( PlotDataset * _selectedDataset,
bool _isControlPressed )
signal

◆ setAxisAutoScale()

void qwtw::Plot::setAxisAutoScale ( AbstractPlotAxis::AxisID _axis,
bool _autoScaleEnabled )

◆ setAxisLogScale()

void qwtw::Plot::setAxisLogScale ( AbstractPlotAxis::AxisID _axis,
bool _logScaleEnabled )

◆ setAxisMaxValue()

void qwtw::Plot::setAxisMaxValue ( AbstractPlotAxis::AxisID _axis,
double _maxValue )

◆ setAxisMinValue()

void qwtw::Plot::setAxisMinValue ( AbstractPlotAxis::AxisID _axis,
double _minValue )

◆ setAxisQuantity()

void qwtw::Plot::setAxisQuantity ( PlotDataset::axisQuantity _type)

◆ setAxisTitle()

void qwtw::Plot::setAxisTitle ( AbstractPlotAxis::AxisID _axis,
const QString & _title )

◆ setAxisValueLabels()

void qwtw::Plot::setAxisValueLabels ( AbstractPlotAxis::AxisID _axis,
const std::map< double, QString > & _valueToLabelMap )

◆ setErrorState()

void qwtw::Plot::setErrorState ( bool _isError,
const QString & _message = QString() )

◆ setGridColor()

void qwtw::Plot::setGridColor ( const QColor & _color,
bool _repaint = true )

◆ setGridLineWidth()

void qwtw::Plot::setGridLineWidth ( double _width,
bool _repaint = true )

◆ setGridVisible()

void qwtw::Plot::setGridVisible ( bool _isVisible,
bool _repaint = true )

◆ setIncompatibleData()

void qwtw::Plot::setIncompatibleData ( void )

◆ setLegendVisible()

void qwtw::Plot::setLegendVisible ( bool _isVisible,
bool _repaint = true )

◆ setPlotType()

void qwtw::Plot::setPlotType ( AbstractPlot::PlotType _type)

◆ SetStyleSheets()

void qwtw::Plot::SetStyleSheets ( const std::string & _plotBackgroundSheet,
const std::string & _xyPlot,
const std::string & _xyCanvas,
const QColor & _polarPlotColor,
const QPen & _zoomerPen )

◆ setTitle()

void qwtw::Plot::setTitle ( const QString & _title)

◆ widget()

QWidget * qwtw::Plot::widget ( void ) const
inline

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