| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
rtp_audio_graph.h
Go to the documentation of this file.
1
9
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
24 class RtpAudioGraph : public QObject
25{
26 Q_OBJECT
27 public:
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
75 private:
77 QCPGraph *wave_;
78
80 QColor color_;
81
83 QColor selection_color_;
84};
85
86#endif // RTP_AUDIO_GRAPH_H
RtpAudioGraph::setData
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
RtpAudioGraph::isMyPlottable
bool isMyPlottable(QCPAbstractPlottable *plottable)
Checks if a given plottable object belongs to this graph.
Definition rtp_audio_graph.cpp:79
RtpAudioGraph::RtpAudioGraph
RtpAudioGraph(QCustomPlot *audioPlot, QColor color)
Constructs an RtpAudioGraph.
Definition rtp_audio_graph.cpp:17
RtpAudioGraph::setMuted
void setMuted(bool isMuted)
Sets the muted state of the graph, adjusting its opacity.
Definition rtp_audio_graph.cpp:34
RtpAudioGraph::setSelected
void setSelected(bool isSelected)
Sets the selection state of the graph, altering its color.
Definition rtp_audio_graph.cpp:57
RtpAudioGraph::remove
void remove(QCustomPlot *audioPlot)
Removes the graph from the plot widget.
Definition rtp_audio_graph.cpp:74
RtpAudioGraph::setHighlight
void setHighlight(bool isHighlighted)
Sets the highlight state of the graph, drawing it more prominently.
Definition rtp_audio_graph.cpp:45