/[qspeakers]/bandpassbox.h
ViewVC logotype

Contents of /bandpassbox.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 79 - (show annotations)
Sun Mar 1 13:28:12 2015 UTC (2 years, 3 months ago) by ben
File MIME type: text/plain
File size: 1163 byte(s)
implement print function
1 #ifndef BANDPASSBOX_H
2 #define BANDPASSBOX_H
3
4 #include <QDomElement>
5
6 #include "sealedbox.h"
7 #include "portedbox.h"
8
9 class BandPassBox : public Box
10 {
11 public:
12 BandPassBox(double svol = 0.1, double pvol = 0.01, double pfreq = 1, unsigned int pnum = 1, double plen = 0, double pdiam = 0);
13
14 void setSealedBoxVolume(double vol);
15 void setPortedBoxVolume(double vol);
16 void setPortedBoxPortNum(unsigned int val);
17 void setPortedBoxPortLen(double len);
18 void setPortedBoxPortDiam(double diam);
19 void setPortedBoxResFreq(double freq);
20 void updatePortedBoxPorts(double sd, double xmax);
21 void updatePortedBoxPortsLength();
22
23 double getSealedBoxVolume(void) const;
24 double getPortedBoxVolume(void) const;
25 unsigned int getPortedBoxPortNum(void) const;
26 double getPortedBoxPortLen(void) const;
27 double getPortedBoxPortDiam(void) const;
28 double getPortedBoxResFreq(void) const;
29
30 QDomElement toDomElement(QDomDocument& doc) const;
31 void fromDomElement(const QDomElement &e);
32 void render(QPainter *painter, const QRectF& area);
33
34 private:
35 SealedBox sealedBox;
36 PortedBox portedBox;
37 };
38
39 #endif // BANDPASSBOX_H

  ViewVC Help
Powered by ViewVC 1.1.26