Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

LocateSensor.hh

Go to the documentation of this file.
00001 /*
00002 
00003     Sensor matrix processing for locating sound sources
00004     Copyright (C) 2000-2001 Jussi Laako
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 */
00021 
00022 
00023 #include <Alloc.hh>
00024 #include <dsp/DSPOp.hh>
00025 
00026 #include "Config.h"
00027 
00028 
00029 #ifndef LOCATESENSOR_HH
00030     #define LOCATESENSOR_HH
00031 
00032 
00036     class clLocateSensor
00037     {
00038             bool bInitialized;
00039             bool b3D;
00040             long lWidth;
00041             long lHeight;
00042             long lPosX;
00043             long lPosY;
00044             GDT fPI;
00045             GDT fHalfPI;
00046             GDT fAzimuth;
00047             GDT *fpLocMatrix;
00048             clAlloc LocMatrix;
00049             clDSPOp DSP;
00050             void Clear ();
00051             void SetValue (long, long, GDT);
00052             void SetDirection (GDT, GDT, GDT);
00053         public:
00054             clLocateSensor ();
00055             ~clLocateSensor ();
00067             bool Initialize (long, long, long, long, GDT, bool);
00071             void Uninitialize ();
00092             void SetDirectionValues (const GDT *, const GDT *, long,
00093                 long, long, GDT);
00099             GDT *GetResultMatrix () { return fpLocMatrix; }
00100     };
00101 
00102 #endif
00103 

Generated on Sun Oct 26 19:11:21 2003 for HASAS by doxygen 1.3.3