Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
UPlotCurveThreshold Class Reference

#include <UPlot.h>

Inheritance diagram for UPlotCurveThreshold:
Inheritance graph
[legend]

Public Slots

void setOrientation (Qt::Orientation orientation)
 
void setThreshold (qreal threshold)
 
- Public Slots inherited from UPlotCurve
void addValue (UPlotItem *data)
 
void addValue (qreal y)
 
void addValue (qreal x, qreal y)
 
void addValue (const QString &y)
 
void addValues (QVector< UPlotItem *> &data)
 
void addValues (const QVector< qreal > &xs, const QVector< qreal > &ys)
 
void addValues (const QVector< qreal > &ys)
 
void addValues (const QVector< int > &ys)
 
void addValues (const std::vector< qreal > &ys)
 
void addValues (const std::vector< int > &ys)
 
virtual void clear ()
 
void setData (const QVector< qreal > &x, const QVector< qreal > &y)
 
void setData (const std::vector< qreal > &x, const std::vector< qreal > &y)
 
void setData (const QVector< qreal > &y)
 
void setData (const std::vector< qreal > &y)
 
void setVisible (bool visible)
 
void setXIncrement (qreal increment)
 
void setXStart (qreal val)
 

Public Member Functions

 UPlotCurveThreshold (const QString &name, qreal thesholdValue, Qt::Orientation orientation=Qt::Horizontal, QObject *parent=0)
 
virtual ~UPlotCurveThreshold ()
 
- Public Member Functions inherited from UPlotCurve
const QBrush & brush () const
 
void draw (QPainter *painter, const QRect &limits)
 
void getData (QVector< qreal > &x, QVector< qreal > &y) const
 
void getData (QMap< qreal, qreal > &data) const
 
QPointF getItemData (int index)
 
bool isVisible () const
 
QColor itemsColor () const
 
int itemsSize () const
 
QString name () const
 
const QPen & pen () const
 
void setBrush (const QBrush &brush)
 
void setData (QVector< UPlotItem *> &data)
 
void setItemsColor (const QColor &color)
 
void setPen (const QPen &pen)
 
 UPlotCurve (const QString &name, QObject *parent=0)
 
 UPlotCurve (const QString &name, const QVector< UPlotItem *> data, QObject *parent=0)
 
 UPlotCurve (const QString &name, const QVector< qreal > &x, const QVector< qreal > &y, QObject *parent=0)
 
virtual ~UPlotCurve ()
 

Protected Member Functions

virtual bool isMinMaxValid () const
 
virtual void update (qreal scaleX, qreal scaleY, qreal offsetX, qreal offsetY, qreal xDir, qreal yDir, int maxItemsKept)
 
- Protected Member Functions inherited from UPlotCurve
void _addValue (UPlotItem *data)
 
void attach (UPlot *plot)
 
void detach (UPlot *plot)
 
const QVector< qreal > & getMinMax () const
 
int removeItem (int index)
 
void updateMinMax ()
 

Private Attributes

Qt::Orientation _orientation
 

Friends

class UPlot
 

Additional Inherited Members

- Signals inherited from UPlotCurve
void dataChanged (const UPlotCurve *)
 
- Protected Attributes inherited from UPlotCurve
QList< QGraphicsItem * > _items
 
UPlot_plot
 

Detailed Description

A special UPlotCurve that shows as a line at the specified value, spanning all the UPlot.

Definition at line 262 of file UPlot.h.

Constructor & Destructor Documentation

◆ UPlotCurveThreshold()

UPlotCurveThreshold::UPlotCurveThreshold ( const QString &  name,
qreal  thesholdValue,
Qt::Orientation  orientation = Qt::Horizontal,
QObject *  parent = 0 
)

Constructor.

Definition at line 1037 of file UPlot.cpp.

◆ ~UPlotCurveThreshold()

UPlotCurveThreshold::~UPlotCurveThreshold ( )
virtual

Definition at line 1053 of file UPlot.cpp.

Member Function Documentation

◆ isMinMaxValid()

virtual bool UPlotCurveThreshold::isMinMaxValid ( ) const
inlineprotectedvirtual

Reimplemented from UPlotCurve.

Definition at line 286 of file UPlot.h.

◆ setOrientation

void UPlotCurveThreshold::setOrientation ( Qt::Orientation  orientation)
slot

Set orientation (Qt::Horizontal or Qt::Vertical).

Definition at line 1087 of file UPlot.cpp.

◆ setThreshold

void UPlotCurveThreshold::setThreshold ( qreal  threshold)
slot

Set threshold value.

Definition at line 1058 of file UPlot.cpp.

◆ update()

void UPlotCurveThreshold::update ( qreal  scaleX,
qreal  scaleY,
qreal  offsetX,
qreal  offsetY,
qreal  xDir,
qreal  yDir,
int  maxItemsKept 
)
protectedvirtual

Reimplemented from UPlotCurve.

Definition at line 1107 of file UPlot.cpp.

Friends And Related Function Documentation

◆ UPlot

friend class UPlot
friend

Definition at line 284 of file UPlot.h.

Member Data Documentation

◆ _orientation

Qt::Orientation UPlotCurveThreshold::_orientation
private

Definition at line 289 of file UPlot.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:59