Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITAGeo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Institute of Technical Acoustics (ITA)
ITAGeo
Commits
2da1a794
Commit
2da1a794
authored
Jan 23, 2019
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
b8641873
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
5 deletions
+27
-5
include/ITAGeo/Directivity/DAFF_ImpulseResponse.h
include/ITAGeo/Directivity/DAFF_ImpulseResponse.h
+10
-3
src/ITAGeo/Directivity/DAFF_ImpulseResponse.cpp
src/ITAGeo/Directivity/DAFF_ImpulseResponse.cpp
+10
-0
src/ITAGeo/Material/Utils.cpp
src/ITAGeo/Material/Utils.cpp
+5
-0
src/ITAGeo/Utils.cpp
src/ITAGeo/Utils.cpp
+2
-2
No files found.
include/ITAGeo/Directivity/DAFF_ImpulseResponse.h
View file @
2da1a794
...
...
@@ -19,9 +19,13 @@
#ifndef IW_ITA_GEO_DIRECTIVITY_DAFF_IMPULSE_RESPONSE
#define IW_ITA_GEO_DIRECTIVITY_DAFF_IMPULSE_RESPONSE
#include <ITAGeo/Definitions.h>
#include <ITAGeo/Directivity/Base.h>
#include <ITAGeo/Directivity/DAFF_Format.h>
#include "../Definitions.h"
#include "../Coordinates.h"
#include "Base.h"
#include "DAFF_Format.h"
#include <ITAFiniteImpulseResponse.h>
#include <ITAMultichannelFiniteImpulseResponse.h>
namespace
ITAGeo
{
...
...
@@ -35,6 +39,9 @@ namespace ITAGeo
virtual
~
CDAFF_ImpulseResponse
();
float
GetFilterLengthSamples
()
const
;
void
GetNearestNeighbourImpulseResponse
(
const
ITAGeo
::
Coordinates
::
CSpherical
&
oDirection
,
ITABase
::
CFiniteImpulseResponse
&
oFIR
,
const
int
iChannelIndex
=
0
)
const
;
void
GetNearestNeighbourImpulseResponse
(
const
ITAGeo
::
Coordinates
::
CSpherical
&
oDirection
,
ITABase
::
CMultichannelFiniteImpulseResponse
&
oFIR
)
const
;
};
}
}
...
...
src/ITAGeo/Directivity/DAFF_ImpulseResponse.cpp
View file @
2da1a794
...
...
@@ -28,3 +28,13 @@ float ITAGeo::Directivity::CDAFF_ImpulseResponse::GetFilterLengthSamples() const
ITAGeo
::
Directivity
::
CDAFF_ImpulseResponse
::~
CDAFF_ImpulseResponse
()
{
}
void
ITAGeo
::
Directivity
::
CDAFF_ImpulseResponse
::
GetNearestNeighbourImpulseResponse
(
const
ITAGeo
::
Coordinates
::
CSpherical
&
oDirection
,
ITABase
::
CFiniteImpulseResponse
&
oFIR
,
const
int
iChannelIndex
)
const
{
ITA_EXCEPT_NOT_IMPLEMENTED
;
}
void
ITAGeo
::
Directivity
::
CDAFF_ImpulseResponse
::
GetNearestNeighbourImpulseResponse
(
const
ITAGeo
::
Coordinates
::
CSpherical
&
oDirection
,
ITABase
::
CMultichannelFiniteImpulseResponse
&
oFIR
)
const
{
ITA_EXCEPT_NOT_IMPLEMENTED
;
}
src/ITAGeo/Material/Utils.cpp
View file @
2da1a794
#include <ITAGeo/Material/Utils.h>
#include <ITAException.h>
float
ITAGeo
::
Material
::
Utils
::
EstimateFilterLengthSamples
(
std
::
shared_ptr
<
const
IMaterial
>
pMaterial
,
const
float
fSampleRate
,
const
float
fSpeedOfSound
/*= ITAConstants::DEFAULT_SPEED_OF_SOUND_F*/
)
{
ITA_EXCEPT_NOT_IMPLEMENTED
;
}
src/ITAGeo/Utils.cpp
View file @
2da1a794
...
...
@@ -556,9 +556,9 @@ bool ITAGeoUtils::VistaRaysFromOpenMeshFaceHalfedges(CITAMesh* pMesh, CITAMesh::
vRays
.
push_back
(
VistaRay
(
oStartPoint
,
oEndPoint
-
oStartPoint
));
}
return
true
;
}
}
ITA_GEO_API
float
ITAGeo
::
Material
::
Utils
::
EstimateFilterLengthSamples
(
std
::
shared_ptr
<
const
IMaterial
>
pMaterial
,
const
float
fSampleRate
,
const
float
fSpeedOfSound
)
float
ITAGeo
::
Material
::
Utils
::
EstimateFilterLengthSamples
(
std
::
shared_ptr
<
const
IMaterial
>
pMaterial
,
const
float
fSampleRate
,
const
float
fSpeedOfSound
)
{
// Allow for the lowest frequency a phase shift of one cycle / return samples of one wave length
switch
(
pMaterial
->
GetType
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment