Manages the visual rendering of an RTP audio stream as a waveform graph.
More...
#include <rtp_audio_graph.h>
|
| | RtpAudioGraph (QCustomPlot *audioPlot, QColor color) |
| | Constructs an RtpAudioGraph.
|
| |
| void | setMuted (bool isMuted) |
| | Sets the muted state of the graph, adjusting its opacity.
|
| |
| void | setHighlight (bool isHighlighted) |
| | Sets the highlight state of the graph, drawing it more prominently.
|
| |
| void | setSelected (bool isSelected) |
| | Sets the selection state of the graph, altering its color.
|
| |
| void | setData (const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false) |
| | Updates the data points plotted on the graph.
|
| |
| void | remove (QCustomPlot *audioPlot) |
| | Removes the graph from the plot widget.
|
| |
| bool | isMyPlottable (QCPAbstractPlottable *plottable) |
| | Checks if a given plottable object belongs to this graph.
|
| |
Manages the visual rendering of an RTP audio stream as a waveform graph.
◆ RtpAudioGraph()
| RtpAudioGraph::RtpAudioGraph |
( |
QCustomPlot * |
audioPlot, |
|
|
QColor |
color |
|
) |
| |
|
explicit |
Constructs an RtpAudioGraph.
- Parameters
-
| audioPlot | Pointer to the QCustomPlot widget where the graph will be drawn. |
| color | The base color for the waveform graph. |
◆ isMyPlottable()
| bool RtpAudioGraph::isMyPlottable |
( |
QCPAbstractPlottable * |
plottable | ) |
|
Checks if a given plottable object belongs to this graph.
- Parameters
-
| plottable | Pointer to the abstract plottable object to check. |
- Returns
- True if the plottable is managed by this graph, false otherwise.
◆ remove()
| void RtpAudioGraph::remove |
( |
QCustomPlot * |
audioPlot | ) |
|
Removes the graph from the plot widget.
- Parameters
-
| audioPlot | Pointer to the plot widget. |
◆ setData()
| void RtpAudioGraph::setData |
( |
const QVector< double > & |
keys, |
|
|
const QVector< double > & |
values, |
|
|
bool |
alreadySorted = false |
|
) |
| |
Updates the data points plotted on the graph.
- Parameters
-
| keys | The X-axis values (e.g., timestamps). |
| values | The Y-axis values (e.g., audio samples). |
| alreadySorted | True if the data is already sorted by keys, improving performance. |
◆ setHighlight()
| void RtpAudioGraph::setHighlight |
( |
bool |
isHighlighted | ) |
|
Sets the highlight state of the graph, drawing it more prominently.
- Parameters
-
| isHighlighted | True to highlight, false to draw normally. |
◆ setMuted()
| void RtpAudioGraph::setMuted |
( |
bool |
isMuted | ) |
|
Sets the muted state of the graph, adjusting its opacity.
- Parameters
-
| isMuted | True to indicate muted, false otherwise. |
◆ setSelected()
| void RtpAudioGraph::setSelected |
( |
bool |
isSelected | ) |
|
Sets the selection state of the graph, altering its color.
- Parameters
-
| isSelected | True if selected, false otherwise. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/rtp_audio_graph.h
- /builds/wireshark/wireshark/ui/qt/widgets/rtp_audio_graph.cpp