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

#include "Plot.h"

Inheritance diagram for ot::Plot:
ot::QWidgetInterface

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.
 
virtual const QWidget * getQWidget (void) const override
 
CartesianPlotgetCartesianPlot (void)
 
PolarPlotgetPolarPlot (void)
 
void setPlotType (Plot1DCfg::PlotType _type)
 
PlotDatasetaddDataset (const QString &_title, double *_dataX, double *_dataY, long _dataSize)
 
void setConfig (const Plot1DCfg &_config)
 
const Plot1DCfggetConfig (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)
 
PlotDatasetfindDataset (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.
 
PlotDatasetfindDataset (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.
 
PlotDatasetfindDataset (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 WidgetFlagsotWidgetFlags (void) const
 

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
 
- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Constructor & Destructor Documentation

◆ Plot()

ot::Plot::Plot ( )

◆ ~Plot()

ot::Plot::~Plot ( )
virtual

Member Function Documentation

◆ addDataset()

ot::PlotDataset * ot::Plot::addDataset ( const QString & _title,
double * _dataX,
double * _dataY,
long _dataSize )

◆ changeCachedDatasetEntityVersion()

bool ot::Plot::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.

◆ clear()

void ot::Plot::clear ( bool _clearCache)

◆ datasetSelectionChanged()

void ot::Plot::datasetSelectionChanged ( PlotDataset * _selectedDataset)

◆ findDataset() [1/3]

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.

◆ findDataset() [2/3]

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.

◆ findDataset() [3/3]

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.

◆ getCache() [1/2]

std::map< UID, std::pair< UID, PlotDataset * > > & ot::Plot::getCache ( void )
inlineprotected

◆ getCache() [2/2]

const std::map< UID, std::pair< UID, PlotDataset * > > & ot::Plot::getCache ( void ) const
inlineprotected

◆ getCartesianPlot()

CartesianPlot * ot::Plot::getCartesianPlot ( void )
inline

◆ getConfig()

const Plot1DCfg & ot::Plot::getConfig ( void ) const
inline

◆ getDatasets()

std::list< ot::PlotDataset * > ot::Plot::getDatasets ( void ) const

◆ getPolarPlot()

PolarPlot * ot::Plot::getPolarPlot ( void )
inline

◆ getQWidget() [1/2]

virtual const QWidget * ot::Plot::getQWidget ( void ) const
inlineoverridevirtual

Implements ot::QWidgetInterface.

◆ getQWidget() [2/2]

virtual QWidget * ot::Plot::getQWidget ( void )
inlineoverridevirtual

Returns a pointer to the root widget of this object.

Implements ot::QWidgetInterface.

◆ hasCachedEntity()

bool ot::Plot::hasCachedEntity ( UID _entityID) const

◆ importData()

virtual void ot::Plot::importData ( const std::string & _projectName,
const std::list< Plot1DCurveInfoCfg > & _curvesToImport )
inlineprotectedvirtual

◆ refresh()

void ot::Plot::refresh ( void )

◆ removeFromCache()

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

◆ resetItemSelectionRequest

void ot::Plot::resetItemSelectionRequest ( void )
signal

◆ resetView()

void ot::Plot::resetView ( void )

◆ setAxisQuantity()

void ot::Plot::setAxisQuantity ( Plot1DCfg::AxisQuantity _quantity)

◆ setConfig()

void ot::Plot::setConfig ( const Plot1DCfg & _config)
inline

◆ setErrorState()

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

◆ setFromDataBaseConfig()

void ot::Plot::setFromDataBaseConfig ( const Plot1DDataBaseCfg & _config)

◆ setIncompatibleData()

void ot::Plot::setIncompatibleData ( void )

◆ setItemSelectedRequest

void ot::Plot::setItemSelectedRequest ( UID _treeItemUid,
bool _hasControlModifier )
signal

◆ setPlotType()

void ot::Plot::setPlotType ( Plot1DCfg::PlotType _type)

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