17 #include "Properties.h"
56 void gain(
double gain);
75 void flag(
bool changed);
87 double centerLR_, centerFB_, centerUD_, centerDistance_;
89 std::vector<Mic> mics;
90 static int AziAngle[Properties::MAXNUMCHANNELS][Properties::MAXNUMCHANNELS];
~MicArray()
Class destructor.
void distPow(double pow)
Sets all of the MicArray's mics' distance powers.
void dirPow(double pow)
Sets all of the MicArray's mics' directivity powers.
void centerUD(double newCenterUD)
Set center in z.
void dirGain(double gain)
Sets all of the MicArray's mics' directivity gains.
short numChannels() const
Returns the size of the mic array.
void azi(double azi)
Sets all of the MicArray's mics' azimuth angles.
void ele(double ele)
Sets all of the MicArray's mics' elevation angles.
void xPos(double x)
Sets all of the MicArray's mics' x positions to x.
bool flag() const
Returns true if the mic array has changed, false otherwise.
bool checkDepth(double newDepth)
Checks that new room depth will not exclude any mics.
MicArray(short numMics)
Class constructor.
bool validChannel(short channelNum=8)
True if the channel num >= 0 and < the total number of channels.
bool checkHeight(double newHeight)
Checks that new room height will not exclude any mics.
void centerDistance(double rad)
Set mic array's radius.
void gain(double gain)
Sets all of the MicArray's mics' gain.
void renderMics()
Updates all mics.
void renderMic(int mic)
Updates the specified mic.
Mic & operator[](const int idx)
Returns the mic at the given index.
void zPos(double z)
Sets all of the MicArray's mics' z positions to z.
void centerFB(double newCenterFB)
Set center in y.
void centerLR(double newCenterLR)
Set center in x.
void yPos(double y)
Sets all of the MicArray's mics' y positions to y.
bool checkWidth(double newWidth)
Checks that new room width will not exclude any mics.
void dbUnit(double dbUnit)
Sets all of the MicArray's mics' dB unit.
void print()
Prints information about all of the mics.