Debian Codegraph @

src/plotview.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2015-2016, Mike Walters <[email protected]>
3 *
4 * This file is part of inspectrum.
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #pragma once
21
22 #include <QGraphicsView>
23 #include <QPaintEvent>
24
25 #include "cursors.h"cxx . . $ `<file>/src/cursors.h`/
26 #include "inputsource.h"cxx . . $ `<file>/src/inputsource.h`/
27 #include "plot.h"cxx . . $ `<file>/src/plot.h`/
28 #include "samplesource.h"cxx . . $ `<file>/src/samplesource.h`/
29 #include "spectrogramplot.h"cxx . . $ `<file>/src/spectrogramplot.h`/
30 #include "traceplot.h"cxx . . $ `<file>/src/traceplot.h`/
31
32 class PlotViewcxx . . $ PlotView# : public QGraphicsViewcxx . . $ QGraphicsView#, Subscribercxx . . $ Subscriber#
33 {
34 Q_OBJECTcxx . . $ PlotView#staticMetaObject.
35
36 public:
37 PlotViewcxx . . $ PlotView#PlotView(30dc97247bd3c294).(InputSourcecxx . . $ InputSource# *input);
38 void setSampleRatecxx . . $ PlotView#setSampleRate(ba8836b59fb42830).(double rate);
39
40 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
41 void timeSelectionChangedcxx . . $ PlotView#timeSelectionChanged(9364e6e7bff7660).(float time);
42 void zoomIncxx . . $ PlotView#zoomIn(49f6e7a06ebc5aa8).();
43 void zoomOutcxx . . $ PlotView#zoomOut(49f6e7a06ebc5aa8).();
44
45 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
46 void cursorsMovedcxx . . $ PlotView#cursorsMoved(49f6e7a06ebc5aa8).();
47 void enableCursorscxx . . $ PlotView#enableCursors(b45ddcbc8423892c).(bool enabled);
48 void enableScalescxx . . $ PlotView#enableScales(b45ddcbc8423892c).(bool enabled);
49 void enableAnnotationscxx . . $ PlotView#enableAnnotations(b45ddcbc8423892c).(bool enabled);
50 void enableAnnotationCommentsTooltipscxx . . $ PlotView#enableAnnotationCommentsTooltips(b45ddcbc8423892c).(bool enabled);
51 void invalidateEventcxx . . $ PlotView#invalidateEvent(49f6e7a06ebc5aa8).() override;
52 void repaintcxx . . $ PlotView#repaint(49f6e7a06ebc5aa8).();
53 void setCursorSegmentscxx . . $ PlotView#setCursorSegments(d4f767463ce0a6b3).(int segments);
54 void setFFTAndZoomcxx . . $ PlotView#setFFTAndZoom(3e454b8ccf442868).(int fftSize, int zoomLevel);
55 void setPowerMincxx . . $ PlotView#setPowerMin(d4f767463ce0a6b3).(int power);
56 void setPowerMaxcxx . . $ PlotView#setPowerMax(d4f767463ce0a6b3).(int power);
57
58 protected:
59 void mouseMoveEventcxx . . $ PlotView#mouseMoveEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *event) override;
60 void mouseReleaseEventcxx . . $ PlotView#mouseReleaseEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *event) override;
61 void contextMenuEventcxx . . $ PlotView#contextMenuEvent(ebb2569a74e11126).(QContextMenuEventcxx . . $ QContextMenuEvent# * event) override;
62 void paintEventcxx . . $ PlotView#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent# *event) override;
63 void resizeEventcxx . . $ PlotView#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent# * event) override;
64 void scrollContentsBycxx . . $ PlotView#scrollContentsBy(3e454b8ccf442868).(int dx, int dy) override;
65 bool viewportEventcxx . . $ PlotView#viewportEvent(f123fa2ce489f0bd).(QEventcxx . . $ QEvent# *event) override;
66 void showEventcxx . . $ PlotView#showEvent(bc3b8402ee8753a7).(QShowEventcxx . . $ QShowEvent# *event) override;
67
68 private:
69 Cursorscxx . . $ Cursors# cursorscxx . . $ PlotView#cursors.;
70 SampleSourcecxx . . $ SampleSource#<stdcxx . . $ std/::complexcxx . . $ std/complex#<float>> *mainSampleSourcecxx . . $ PlotView#mainSampleSource. = nullptr;
71 SpectrogramPlotcxx . . $ SpectrogramPlot# *spectrogramPlotcxx . . $ PlotView#spectrogramPlot. = nullptr;
72 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Plotcxx . . $ Plot#>> plotscxx . . $ PlotView#plots.;
73 range_tcxx . . $ range_t#<size_t> viewRangecxx . . $ PlotView#viewRange.;
74 range_tcxx . . $ range_t#<size_t> selectedSamplescxx . . $ PlotView#selectedSamples.;
75 int zoomPoscxx . . $ PlotView#zoomPos.;
76 size_t zoomSamplecxx . . $ PlotView#zoomSample.;
77
78 int fftSizecxx . . $ PlotView#fftSize. = 1024;
79 int zoomLevelcxx . . $ PlotView#zoomLevel. = 1;
80 int powerMincxx . . $ PlotView#powerMin.;
81 int powerMaxcxx . . $ PlotView#powerMax.;
82 bool cursorsEnabledcxx . . $ PlotView#cursorsEnabled.;
83 double sampleRatecxx . . $ PlotView#sampleRate. = 0.0;
84 bool timeScaleEnabledcxx . . $ PlotView#timeScaleEnabled.;
85 int scrollZoomStepsAccumulatedcxx . . $ PlotView#scrollZoomStepsAccumulated. = 0;
86 bool annotationCommentsEnabledcxx . . $ PlotView#annotationCommentsEnabled.;
87
88 void addPlotcxx . . $ PlotView#addPlot(df8cfcebfd347647).(Plotcxx . . $ Plot# *plot);
89 void emitTimeSelectioncxx . . $ PlotView#emitTimeSelection(49f6e7a06ebc5aa8).();
90 void extractSymbolscxx . . $ PlotView#extractSymbols(85844caa9ea15706).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<AbstractSampleSourcecxx . . $ AbstractSampleSource#> src, bool toClipboard);
91 void exportSamplescxx . . $ PlotView#exportSamples(22d84a47a7b53cf1).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<AbstractSampleSourcecxx . . $ AbstractSampleSource#> src);
92 template<typename SOURCETYPE> void exportSamplescxx . . $ PlotView#exportSamples(22d84a47a7b53cf1).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<AbstractSampleSourcecxx . . $ AbstractSampleSource#> src);
93 int plotsHeightcxx . . $ PlotView#plotsHeight(b126dc7c1de90089).();
94 size_t samplesPerColumncxx . . $ PlotView#samplesPerColumn(f708dce9a8856c70).();
95 void updateViewRangecxx . . $ PlotView#updateViewRange(b45ddcbc8423892c).(bool reCenter);
96 void updateViewcxx . . $ PlotView#updateView(b0b38cda41d4ede4).(bool reCenter = false, bool expanding = false);
97 void paintTimeScalecxx . . $ PlotView#paintTimeScale(dba2c6533854c69f).(QPaintercxx . . $ QPainter# &painter, QRectcxx . . $ QRect# &rect, range_tcxx . . $ range_t#<size_t> sampleRange);
98 void updateAnnotationTooltipcxx . . $ PlotView#updateAnnotationTooltip(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *event);
99
100 int sampleToColumncxx . . $ PlotView#sampleToColumn(15f694ef3c96d230).(size_t sample);
101 size_t columnToSamplecxx . . $ PlotView#columnToSample(c104ebd7d68b2193).(int col);
102 };