~ubuntu-branches/debian/sid/qspeakers/sid

« back to all changes in this revision

Viewing changes to system.h

  • Committer: Package Import Robot
  • Author(s): Benoît Rouits
  • Date: 2016-10-25 21:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20161025212327-oyyitrn6c9ac6706
Tags: upstream-1.0
Import upstream version 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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