Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
rtp_audio_graph.h
Go to the documentation of this file.
1
10#ifndef RTP_AUDIO_GRAPH_H
11#define RTP_AUDIO_GRAPH_H
12
13#include "config.h"
14
15#include <ui/qt/widgets/qcustomplot.h>
16
17//class QCPItemStraightLine;
18//class QCPAxisTicker;
19//class QCPAxisTickerDateTime;
20
24class RtpAudioGraph : public QObject
25{
26 Q_OBJECT
27public:
33 explicit RtpAudioGraph(QCustomPlot *audioPlot, QColor color);
34
39 void setMuted(bool isMuted);
40
45 void setHighlight(bool isHighlighted);
46
51 void setSelected(bool isSelected);
52
59 void setData(const QVector<double> &keys, const QVector<double> &values, bool alreadySorted=false);
60
65 void remove(QCustomPlot *audioPlot);
66
72 bool isMyPlottable(QCPAbstractPlottable *plottable);
73
74
75private:
77 QCPGraph *wave_;
78
80 QColor color_;
81
83 QColor selection_color_;
84};
85
86#endif // RTP_AUDIO_GRAPH_H
Manages the visual rendering of an RTP audio stream as a waveform graph.
Definition rtp_audio_graph.h:25
void setData(const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false)
Updates the data points plotted on the graph.
Definition rtp_audio_graph.cpp:69
bool isMyPlottable(QCPAbstractPlottable *plottable)
Checks if a given plottable object belongs to this graph.
Definition rtp_audio_graph.cpp:79
void setMuted(bool isMuted)
Sets the muted state of the graph, adjusting its opacity.
Definition rtp_audio_graph.cpp:34
void setSelected(bool isSelected)
Sets the selection state of the graph, altering its color.
Definition rtp_audio_graph.cpp:57
void remove(QCustomPlot *audioPlot)
Removes the graph from the plot widget.
Definition rtp_audio_graph.cpp:74
void setHighlight(bool isHighlighted)
Sets the highlight state of the graph, drawing it more prominently.
Definition rtp_audio_graph.cpp:45