XY Graph.
More...
#include <XYGraph.h>
◆ XYGraph()
XYGraph::XYGraph |
( |
QWidget * |
parent = 0 | ) |
|
Constructor.
- Parameters
-
References impl.
◆ ~XYGraph()
◆ addVariable() [1/2]
void XYGraph::addVariable |
( |
PdCom::Variable |
pv, |
|
|
const PdCom::Selector & |
selector = {} , |
|
|
const QtPdCom::Transmission & |
transmission = QtPdCom::event_mode , |
|
|
double |
gain = 1.0 , |
|
|
double |
offset = 0.0 |
|
) |
| |
Subscribes the horizontal/vertical channel to a ProcessVariable.
The first call connects the horizontal channel to the given ProcessVariable. The second call will connect the vertical channel to the given ProcessVariable. Any further call will be ignored.
- Todo:
- Add channel paremeter.
References impl, NumAxes, and X.
◆ addVariable() [2/2]
void XYGraph::addVariable |
( |
PdCom::Process * |
p, |
|
|
const QString & |
path, |
|
|
const PdCom::Selector & |
selector = {} , |
|
|
const QtPdCom::Transmission & |
transmission = QtPdCom::event_mode , |
|
|
double |
gain = 1.0 , |
|
|
double |
offset = 0.0 |
|
) |
| |
Subscribes the horizontal/vertical channel to a ProcessVariable.
The first call connects the horizontal channel to the given ProcessVariable. The second call will connect the vertical channel to the given ProcessVariable. Any further call will be ignored.
- Todo:
- Add channel paremeter.
References impl, NumAxes, and X.
◆ clearData()
void XYGraph::clearData |
( |
| ) |
|
Clears any displayed data.
References impl.
◆ clearVariables()
void XYGraph::clearVariables |
( |
| ) |
|
◆ event()
bool XYGraph::event |
( |
QEvent * |
event | ) |
|
|
protected |
◆ getLineColor()
QColor XYGraph::getLineColor |
( |
| ) |
const |
- Returns
- The line color.
References impl.
◆ getLineWidth()
int XYGraph::getLineWidth |
( |
| ) |
const |
- Returns
- The line width.
References impl.
◆ getScaleXMax()
double XYGraph::getScaleXMax |
( |
| ) |
const |
- Returns
- The maximum value of the horizontal scale.
References impl.
◆ getScaleXMin()
double XYGraph::getScaleXMin |
( |
| ) |
const |
- Returns
- The minimum value of the horizontal scale.
References impl.
◆ getScaleYMax()
double XYGraph::getScaleYMax |
( |
| ) |
const |
- Returns
- The maximum value of the vertical scale.
References impl.
◆ getScaleYMin()
double XYGraph::getScaleYMin |
( |
| ) |
const |
- Returns
- The minimum value of the vertical scale.
References impl.
◆ getTimeRange()
double XYGraph::getTimeRange |
( |
| ) |
const |
◆ paintEvent()
void XYGraph::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protected |
◆ resetLineColor()
void XYGraph::resetLineColor |
( |
| ) |
|
◆ resetLineWidth()
void XYGraph::resetLineWidth |
( |
| ) |
|
◆ resetScaleXMax()
void XYGraph::resetScaleXMax |
( |
| ) |
|
◆ resetScaleXMin()
void XYGraph::resetScaleXMin |
( |
| ) |
|
◆ resetScaleYMax()
void XYGraph::resetScaleYMax |
( |
| ) |
|
◆ resetScaleYMin()
void XYGraph::resetScaleYMin |
( |
| ) |
|
◆ resetTimeRange()
void XYGraph::resetTimeRange |
( |
| ) |
|
◆ resizeEvent()
void XYGraph::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protected |
Handles the widget's resize event.
- Parameters
-
References event(), and impl.
◆ setLineColor()
void XYGraph::setLineColor |
( |
const QColor & |
color | ) |
|
◆ setLineWidth()
void XYGraph::setLineWidth |
( |
int |
width | ) |
|
◆ setScaleXMax()
void XYGraph::setScaleXMax |
( |
double |
scale | ) |
|
◆ setScaleXMin()
void XYGraph::setScaleXMin |
( |
double |
scale | ) |
|
◆ setScaleYMax()
void XYGraph::setScaleYMax |
( |
double |
scale | ) |
|
◆ setScaleYMin()
void XYGraph::setScaleYMin |
( |
double |
scale | ) |
|
◆ setTimeRange()
void XYGraph::setTimeRange |
( |
double |
range | ) |
|
◆ sizeHint()
QSize XYGraph::sizeHint |
( |
| ) |
const |
|
virtual |
Gives a hint aboute the optimal size.
◆ Impl
◆ impl
std::unique_ptr<Impl> Pd::XYGraph::impl |
|
private |
Referenced by addVariable(), clearData(), clearVariables(), event(), getLineColor(), getLineWidth(), getScaleXMax(), getScaleXMin(), getScaleYMax(), getScaleYMin(), getTimeRange(), paintEvent(), resizeEvent(), setLineColor(), setLineWidth(), setScaleXMax(), setScaleXMin(), setScaleYMax(), setScaleYMin(), setTimeRange(), and XYGraph().
◆ lineColor
QColor Pd::XYGraph::lineColor |
|
readwrite |
◆ lineWidth
int Pd::XYGraph::lineWidth |
|
readwrite |
◆ scaleXMax
double Pd::XYGraph::scaleXMax |
|
readwrite |
The maximum value of the horizontal scale.
◆ scaleXMin
double Pd::XYGraph::scaleXMin |
|
readwrite |
The minimum value of the horizontal scale.
◆ scaleYMax
double Pd::XYGraph::scaleYMax |
|
readwrite |
The maximum value of the vertical scale.
◆ scaleYMin
double Pd::XYGraph::scaleYMin |
|
readwrite |
The minimum value of the vertical scale.
◆ timeRange
double Pd::XYGraph::timeRange |
|
readwrite |
The time range to display.
Older points will be discarded.
The documentation for this class was generated from the following files: