MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / SpectrumTrace

Method SpectrumTrace

DSView/pv/view/spectrumtrace.cpp:82–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80const double SpectrumTrace::VerticalRate = 1.0 / 2000.0;
81
82SpectrumTrace::SpectrumTrace(pv::SigSession *session,
83 pv::data::SpectrumStack *spectrum_stack, int index) :
84 Trace("FFT("+QString::number(index)+")", index, SR_CHANNEL_FFT),
85 _session(session),
86 _enable(false),
87 _view_mode(0),
88 _hover_en(false),
89 _scale(1),
90 _offset(0)
91{
92 _typeWidth = 0;
93
94 for(auto s : _session->get_signals()) {
95 if (s->signal_type() == SR_CHANNEL_DSO && index == s->get_index()){
96 _colour = s->get_colour();
97 }
98 }
99
100 _spectrum_stack = spectrum_stack;
101
102 update_lang_text();
103}
104
105SpectrumTrace::~SpectrumTrace()
106{

Callers

nothing calls this directly

Calls 3

signal_typeMethod · 0.80
get_colourMethod · 0.80
get_indexMethod · 0.45

Tested by

no test coverage detected