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

SpectDir.hh

Go to the documentation of this file.
00001 /*
00002 
00003     Direction calculation from spectrum, header
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 #include "ArrayBase.hh"
00028 
00029 
00030 #ifndef SPECTDIR_HH
00031     #define SPECTDIR_HH
00032 
00033 
00034     // Following struct is not used here, but defined for global use
00038     typedef struct _stSpectDirRN
00039     {
00040         int iType;
00041         GDT fAlpha;
00042         long lMeanLength;
00043         long lGapLength;
00044     } stSpectDirRN, *stpSpectDirRN;
00045 
00046 
00053     class clSpectDir
00054     {
00055             long lDirCount;
00056             GDT fPI;
00057             GDT fHalfPI;
00058             GDT fSensorSpacing;
00059             GDT fArrayFreq;
00060             GDT *fpDirections;
00061             clAlloc DirBuf;
00062         public:
00063             clDSPOp DSP;
00064             clSpectDir ();
00065             ~clSpectDir ();
00073             void SetSensorSpacing (GDT);
00079             void SetSoundSpeed (GDT);
00088             GDT GetArrayFrequency () { return fArrayFreq; }
00099             GDT GetDirection (GDT, GDT);
00107             void SetDirectionCount (long);
00117             void SetDirection (GDT, GDT, GDT);
00128             GDT *GetDirections (GDT *);
00132             void ResetDirections ();
00133     };
00134 
00135 #endif
00136 

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