/[qspeakers]/branches/qtcharts/optimizer.h
ViewVC logotype

Contents of /branches/qtcharts/optimizer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 259 - (show annotations)
Thu Oct 8 23:47:36 2020 UTC (8 months, 1 week ago) by ben
File MIME type: text/plain
File size: 976 byte(s)
Implement undo/redo
1 #ifndef OPTIMIZER_H
2 #define OPTIMIZER_H
3
4 #include "mainwindow.h"
5 #include "speaker.h"
6 #include "box.h"
7 #include "sealedbox.h"
8 #include "portedbox.h"
9 #include "bandpassbox.h"
10
11 class Optimizer
12 {
13 public:
14 Optimizer(const Speaker &speaker, SealedBox *box, int sibling, QObject* parent = nullptr);
15 Optimizer(const Speaker &speaker, PortedBox *box, int sibling, QObject* parent = nullptr);
16 Optimizer(const Speaker &speaker, BandPassBox *box, int sibling, QObject* parent = nullptr);
17
18 void genericOptimizeBox();
19
20 void portedAlignModerate_Inf();
21 void portedAlignLegendre();
22 void portedAlignBessel();
23 void portedAlignBullock();
24 void portedAlignKeele_Hoge();
25
26 void bandpassAlignS_Pa(double s, double pa);
27 void portedAlignVb_Fb(double vb, double fb, const QString &title);
28 private:
29 Speaker speaker;
30 Box *box;
31 int type;
32 int sibling; /* number of speakers (not push-pull!) */
33 MainWindow* mainwindow;
34 };
35
36 #endif // OPTIMIZER_H

  ViewVC Help
Powered by ViewVC 1.1.26