|
typedef QPair< double, double > | Extrema |
| Extrema type with minimum and maximum. More...
|
|
◆ Extrema
Extrema type with minimum and maximum.
◆ Layer()
Pd::Graph::Layer::Layer |
( |
Graph * |
parent, |
|
|
QColor |
c, |
|
|
Graph::State |
state, |
|
|
std::chrono::nanoseconds |
timeRange |
|
) |
| |
◆ appendToExtrema()
bool Pd::Graph::Layer::appendToExtrema |
( |
std::chrono::nanoseconds |
time, |
|
|
double |
value |
|
) |
| |
|
private |
Appends a new data value to the extrema ring buffer.
- Returns
- true, if the widget has to be redrawn.
◆ clearData()
void Pd::Graph::Layer::clearData |
( |
| ) |
|
◆ fillExtrema()
void Pd::Graph::Layer::fillExtrema |
( |
| ) |
|
|
private |
◆ getValues()
const ValueRing< double > & Pd::Graph::Layer::getValues |
( |
| ) |
const |
- Returns
- The values currently displayed.
◆ hasSampled()
bool Pd::Graph::Layer::hasSampled |
( |
| ) |
const |
|
inline |
◆ newValues()
void Pd::Graph::Layer::newValues |
( |
std::chrono::nanoseconds |
ts | ) |
|
|
overrideprivate |
This virtual method is called by the ProcessVariable, if its value changes.
◆ paint()
void Pd::Graph::Layer::paint |
( |
QPainter & |
painter, |
|
|
double |
scaleFactor, |
|
|
const Scale & |
valueScale, |
|
|
const QRect & |
graphRect |
|
) |
| |
◆ prepareSample()
void Pd::Graph::Layer::prepareSample |
( |
std::chrono::nanoseconds |
t | ) |
|
Copy current values into trigger buffer.
◆ resizeExtrema()
void Pd::Graph::Layer::resizeExtrema |
( |
unsigned int |
length | ) |
|
◆ setState()
◆ setTimeRange()
void Pd::Graph::Layer::setTimeRange |
( |
std::chrono::nanoseconds |
range | ) |
|
◆ color
QColor Pd::Graph::Layer::color |
|
private |
◆ dataPresent
bool Pd::Graph::Layer::dataPresent |
|
private |
value contains a valid value.
◆ extrema
QVector<Extrema> Pd::Graph::Layer::extrema |
|
private |
Vector containing the extrema to display.
◆ extremaOffset
int Pd::Graph::Layer::extremaOffset |
|
private |
Current offset in the extrema buffer.
◆ graph
Graph* const Pd::Graph::Layer::graph |
|
private |
◆ lastAppendedValue
double Pd::Graph::Layer::lastAppendedValue |
|
private |
◆ offsetTime
std::chrono::nanoseconds Pd::Graph::Layer::offsetTime |
|
private |
Absolute time of the #offset.
◆ savedValues
ValueRing<double> Pd::Graph::Layer::savedValues |
|
private |
◆ state
◆ timeToSample
std::chrono::nanoseconds Pd::Graph::Layer::timeToSample |
|
private |
◆ validExtrema
unsigned int Pd::Graph::Layer::validExtrema |
|
private |
◆ value
double Pd::Graph::Layer::value |
|
private |
◆ values
Ring buffer with time/value pairs.
The documentation for this class was generated from the following file: