/[qspeakers]/system.h
ViewVC logotype

Contents of /system.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 106 - (show annotations)
Wed May 13 05:49:20 2015 UTC (2 years, 1 month ago) by ben
File MIME type: text/plain
File size: 690 byte(s)
print also number of drivers
1 #ifndef SYSTEM_H
2 #define SYSTEM_H
3
4 #include "speaker.h"
5 #include "box.h"
6 #include "sealedbox.h"
7 #include "portedbox.h"
8 #include "bandpassbox.h"
9
10 class System
11 {
12 public:
13 System(const Speaker &s, const SealedBox *b, unsigned int number = 1);
14 System(const Speaker &s, const PortedBox *b, unsigned int number = 1);
15 System(const Speaker &s, const BandPassBox *b, unsigned int number = 1);
16 double response(double f);
17 void render(QPainter *painter, const QRectF& area);
18
19 private:
20 #define SEALED 0
21 #define PORTED 1
22 #define BANDPASS 2
23 Speaker speaker;
24 const Box* box;
25 int type;
26 int sibling; /* number of same drivers (not for push-pull!) */
27 };
28
29 #endif // SYSTEM_H

  ViewVC Help
Powered by ViewVC 1.1.26