QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QwtSetSample Class Reference

A sample of the types (x1...xn, y) or (x, y1..yn) More...

#include <qwt_samples.h>

Public Member Functions

 QwtSetSample ()
 Default constructor.
 
 QwtSetSample (double, const QVector< double > &=QVector< double >())
 Constructor with value and set.
 
bool operator== (const QwtSetSample &other) const
 Equality comparison operator.
 
bool operator!= (const QwtSetSample &other) const
 Inequality comparison operator.
 
double added () const
 Return all values of the set added together.
 

Public Attributes

double value
 value
 
QVector< double > set
 Vector of values associated to value.
 

Detailed Description

A sample of the types (x1...xn, y) or (x, y1..yn)

Used for set-based samples where one dimension has multiple values. Commonly used for bar charts with multiple bars at each position.

Constructor & Destructor Documentation

◆ QwtSetSample() [1/2]

QwtSetSample::QwtSetSample ( )
inline

Default constructor.

The value is set to 0.0

◆ QwtSetSample() [2/2]

QwtSetSample::QwtSetSample ( double  v,
const QVector< double > &  s = QVector< double >() 
)
inlineexplicit

Constructor with value and set.

Parameters
vValue
sSet of values

Member Function Documentation

◆ added()

double QwtSetSample::added ( ) const
inline

Return all values of the set added together.

Returns
Sum of all values in the set

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