Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITAPropagationPathSim
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)
ITAPropagationPathSim
Commits
fabb0f5c
Commit
fabb0f5c
authored
Jan 24, 2019
by
Armin Erraji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed namespace and filepath "CombinatedModel" to "CombinedModel"
parent
76a55817
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
49 additions
and
51 deletions
+49
-51
include/ITAPropagationPathSim/CombinatedModel/PropagationConstructor.h
...opagationPathSim/CombinatedModel/PropagationConstructor.h
+0
-0
include/ITAPropagationPathSim/CombinedModel/DiffractionLocator.h
.../ITAPropagationPathSim/CombinedModel/DiffractionLocator.h
+2
-2
include/ITAPropagationPathSim/CombinedModel/ImageConstructor.h
...de/ITAPropagationPathSim/CombinedModel/ImageConstructor.h
+2
-2
include/ITAPropagationPathSim/CombinedModel/PropagationEngine.h
...e/ITAPropagationPathSim/CombinedModel/PropagationEngine.h
+3
-3
include/ITAPropagationPathSim/CombinedModel/PropagationShapes.h
...e/ITAPropagationPathSim/CombinedModel/PropagationShapes.h
+1
-1
include/ITAPropagationPathSim/CombinedModel/ReflectionLocator.h
...e/ITAPropagationPathSim/CombinedModel/ReflectionLocator.h
+2
-2
include/ITAPropagationPathSim/CombinedModel/_SourceFiles.cmake
...de/ITAPropagationPathSim/CombinedModel/_SourceFiles.cmake
+2
-3
include/ITAPropagationPathSim/_SourceFiles.cmake
include/ITAPropagationPathSim/_SourceFiles.cmake
+1
-1
src/ITAPropagationPathSim/CombinedModel/DiffractionLocator.cpp
...TAPropagationPathSim/CombinedModel/DiffractionLocator.cpp
+2
-2
src/ITAPropagationPathSim/CombinedModel/ImageConstructor.cpp
src/ITAPropagationPathSim/CombinedModel/ImageConstructor.cpp
+4
-4
src/ITAPropagationPathSim/CombinedModel/PropagationConstructor.cpp
...opagationPathSim/CombinedModel/PropagationConstructor.cpp
+0
-0
src/ITAPropagationPathSim/CombinedModel/PropagationEngine.cpp
...ITAPropagationPathSim/CombinedModel/PropagationEngine.cpp
+20
-20
src/ITAPropagationPathSim/CombinedModel/PropagationShapes.cpp
...ITAPropagationPathSim/CombinedModel/PropagationShapes.cpp
+2
-2
src/ITAPropagationPathSim/CombinedModel/ReflectionLocator.cpp
...ITAPropagationPathSim/CombinedModel/ReflectionLocator.cpp
+2
-2
src/ITAPropagationPathSim/CombinedModel/_SourceFiles.cmake
src/ITAPropagationPathSim/CombinedModel/_SourceFiles.cmake
+2
-3
src/ITAPropagationPathSim/_SourceFiles.cmake
src/ITAPropagationPathSim/_SourceFiles.cmake
+1
-1
tests/CombinedModel/CMakeLists.txt
tests/CombinedModel/CMakeLists.txt
+1
-1
tests/CombinedModel/CombinedModelTest.cpp
tests/CombinedModel/CombinedModelTest.cpp
+2
-2
No files found.
include/ITAPropagationPathSim/CombinatedModel/PropagationConstructor.h
deleted
100644 → 0
View file @
76a55817
include/ITAPropagationPathSim/Combin
at
edModel/DiffractionLocator.h
→
include/ITAPropagationPathSim/CombinedModel/DiffractionLocator.h
View file @
fabb0f5c
...
...
@@ -6,12 +6,12 @@
#include <ITAGeo/Base.h>
#include <ITAGeo/Halfedge/MeshModel.h>
#include <ITAGeo/Utils.h>
#include<ITAPropagationPathSim/Combin
at
edModel/PropagationShapes.h>
#include<ITAPropagationPathSim/CombinedModel/PropagationShapes.h>
namespace
ITAPropagationPathSim
{
namespace
Combin
at
edModel
namespace
CombinedModel
{
using
namespace
ITAGeo
;
using
namespace
std
;
...
...
include/ITAPropagationPathSim/Combin
at
edModel/ImageConstructor.h
→
include/ITAPropagationPathSim/CombinedModel/ImageConstructor.h
View file @
fabb0f5c
...
...
@@ -3,7 +3,7 @@
#include<ITAPropagationPathSim/Combin
at
edModel/PropagationShapes.h>
#include<ITAPropagationPathSim/CombinedModel/PropagationShapes.h>
// ITA includes
#include <ITAGeo/Base.h>
...
...
@@ -12,7 +12,7 @@
namespace
ITAPropagationPathSim
{
namespace
Combin
at
edModel
namespace
CombinedModel
{
using
namespace
ITAGeo
;
using
namespace
std
;
...
...
include/ITAPropagationPathSim/Combin
at
edModel/PropagationEngine.h
→
include/ITAPropagationPathSim/CombinedModel/PropagationEngine.h
View file @
fabb0f5c
#ifndef INCLUDE_WATCHER_COMBINED_PROPAGATION_ENGINE
#define INCLUDE_WATCHER_COMBINED_PROPAGATION_ENGINE
#include<ITAPropagationPathSim/Combin
at
edModel/PropagationShapes.h>
#include<ITAPropagationPathSim/CombinedModel/PropagationShapes.h>
// ITA includes
#include <ITAGeo/Base.h>
...
...
@@ -10,7 +10,7 @@
namespace
ITAPropagationPathSim
{
namespace
Combin
at
edModel
namespace
CombinedModel
{
using
namespace
ITAGeo
;
...
...
@@ -43,7 +43,7 @@ namespace ITAPropagationPathSim
void
CreateVisibilityMap
();
bool
CanPointIlluminateFace
(
const
VistaVector3D
&
v3Point
,
const
string
&
sMeshModelName
,
CITAMesh
::
FaceHandle
hFace
);
void
CanEdgeIlluminateFace
(
bool
&
bCanEdgeIlluminateFaceOut
,
ITAPropagationPathSim
::
Combin
atedModel
::
CPropagationFaceShared
&
pPropagationFace
,
ITAPropagationPathSim
::
Combinat
edModel
::
CPropagationEdgeShared
&
pPropagationEdge
);
void
CanEdgeIlluminateFace
(
bool
&
bCanEdgeIlluminateFaceOut
,
ITAPropagationPathSim
::
Combin
edModel
::
CPropagationFaceShared
&
pPropagationFace
,
ITAPropagationPathSim
::
Combin
edModel
::
CPropagationEdgeShared
&
pPropagationEdge
);
void
CanFaceIlluminateEdge
(
bool
&
bCanFaceIlluminateEdgeOut
,
CPropagationFaceShared
&
pPropagationFace
,
CPropagationEdgeShared
&
pPropagationEdge
);
void
CanFaceIlluminateFace
(
bool
&
bCanFaceIlluminateFaceOut
,
CPropagationFaceShared
&
pPropagationFaceStart
,
CPropagationFaceShared
&
pPropagationFaceEnd
);
void
CanEdgeIlluminateEdge
(
bool
&
bCanEdgeIlluminateEdgeOut
,
CPropagationEdgeShared
&
pPropagationEdgeStart
,
CPropagationEdgeShared
&
pPropagationEdgeEnd
);
...
...
include/ITAPropagationPathSim/Combin
at
edModel/PropagationShapes.h
→
include/ITAPropagationPathSim/CombinedModel/PropagationShapes.h
View file @
fabb0f5c
...
...
@@ -15,7 +15,7 @@ using namespace std;
namespace
ITAPropagationPathSim
{
namespace
Combin
at
edModel
namespace
CombinedModel
{
// Typedefs
class
CPropagationShape
;
...
...
include/ITAPropagationPathSim/Combin
at
edModel/ReflectionLocator.h
→
include/ITAPropagationPathSim/CombinedModel/ReflectionLocator.h
View file @
fabb0f5c
...
...
@@ -6,14 +6,14 @@
#include <ITAGeo/Base.h>
#include <ITAGeo/Halfedge/MeshModel.h>
#include <ITAGeo/Utils.h>
#include<ITAPropagationPathSim/Combin
at
edModel/PropagationShapes.h>
#include<ITAPropagationPathSim/CombinedModel/PropagationShapes.h>
namespace
ITAPropagationPathSim
{
namespace
Combin
at
edModel
namespace
CombinedModel
{
using
namespace
std
;
...
...
include/ITAPropagationPathSim/Combin
at
edModel/_SourceFiles.cmake
→
include/ITAPropagationPathSim/CombinedModel/_SourceFiles.cmake
View file @
fabb0f5c
# $Id:$
set
(
RelativeDir
"include/ITAPropagationPathSim/Combin
at
edModel"
)
set
(
RelativeSourceGroup
"Header Files
\\
ITAPropagationPathSim
\\
Combin
at
edModel"
)
set
(
RelativeDir
"include/ITAPropagationPathSim/CombinedModel"
)
set
(
RelativeSourceGroup
"Header Files
\\
ITAPropagationPathSim
\\
CombinedModel"
)
set
(
DirFiles
DiffractionLocator.h
ImageConstructor.h
PropagationEngine.h
PropagationConstructor.h
PropagationShapes.h
ReflectionLocator.h
)
...
...
include/ITAPropagationPathSim/_SourceFiles.cmake
View file @
fabb0f5c
...
...
@@ -2,7 +2,7 @@
set
(
RelativeDir
"include/ITAPropagationPathSim"
)
set
(
RelativeSourceGroup
"Header Files
\\
ITAPropagationPathSim"
)
set
(
SubDirs MirrorImage ConvexDiffraction Combin
at
edModel BaseEngine UrbanEngine
)
set
(
SubDirs MirrorImage ConvexDiffraction CombinedModel BaseEngine UrbanEngine
)
set
(
DirFiles
Definitions.h
...
...
src/ITAPropagationPathSim/Combin
at
edModel/DiffractionLocator.cpp
→
src/ITAPropagationPathSim/CombinedModel/DiffractionLocator.cpp
View file @
fabb0f5c
#
include
<
ITAPropagationPathSim
\
Combin
at
edModel
\
DiffractionLocator
.
h
>
#
include
<
ITAPropagationPathSim
\
CombinedModel
\
DiffractionLocator
.
h
>
using
namespace
std
;
using
namespace
ITAGeo
;
bool
ITAPropagationPathSim
::
Combin
at
edModel
::
Diffraction
::
ConstructAperturePoints
(
shared_ptr
<
const
CEmitter
>
pEmitter
,
shared_ptr
<
const
CSensor
>
pSensor
,
vector
<
CPropagationShapeShared
>&
pPropagationLists
)
bool
ITAPropagationPathSim
::
CombinedModel
::
Diffraction
::
ConstructAperturePoints
(
shared_ptr
<
const
CEmitter
>
pEmitter
,
shared_ptr
<
const
CSensor
>
pSensor
,
vector
<
CPropagationShapeShared
>&
pPropagationLists
)
{
for
(
auto
&
pPropagationStartPoint
:
pPropagationLists
)
{
...
...
src/ITAPropagationPathSim/Combin
at
edModel/ImageConstructor.cpp
→
src/ITAPropagationPathSim/CombinedModel/ImageConstructor.cpp
View file @
fabb0f5c
#include <ITAPropagationPathSim/Combin
at
edModel/ImageConstructor.h>
#include <ITAPropagationPathSim/CombinedModel/ImageConstructor.h>
using
namespace
ITAPropagationPathSim
::
Combin
at
edModel
;
using
namespace
ITAPropagationPathSim
::
CombinedModel
;
namespace
ITAPropagationPathSim
{
namespace
Combin
at
edModel
namespace
CombinedModel
{
namespace
ImageConstruction
{
...
...
@@ -97,7 +97,7 @@ namespace ITAPropagationPathSim
return
true
;
}
void
RecursivePrepareImageReceivers
(
ITAPropagationPathSim
::
Combin
at
edModel
::
CShapesMap
&
vpVisibilityMap
,
CPropagationShapeShared
&
vpShapeParent
,
std
::
shared_ptr
<
ImageReceiverMap
>
&
pParentImageReceiverMap
,
int
iOrder
,
int
iMaxOrder
)
void
RecursivePrepareImageReceivers
(
ITAPropagationPathSim
::
CombinedModel
::
CShapesMap
&
vpVisibilityMap
,
CPropagationShapeShared
&
vpShapeParent
,
std
::
shared_ptr
<
ImageReceiverMap
>
&
pParentImageReceiverMap
,
int
iOrder
,
int
iMaxOrder
)
{
auto
vpShapeChildren
=
vpVisibilityMap
[
vpShapeParent
];
...
...
src/ITAPropagationPathSim/Combin
at
edModel/PropagationConstructor.cpp
→
src/ITAPropagationPathSim/CombinedModel/PropagationConstructor.cpp
View file @
fabb0f5c
File moved
src/ITAPropagationPathSim/Combin
at
edModel/PropagationEngine.cpp
→
src/ITAPropagationPathSim/CombinedModel/PropagationEngine.cpp
View file @
fabb0f5c
#include <ITAPropagationPathSim\Combin
at
edModel\PropagationEngine.h>
#include <ITAPropagationPathSim\Combin
at
edModel\ImageConstructor.h>
#include <ITAPropagationPathSim\Combin
at
edModel\DiffractionLocator.h>
#include <ITAPropagationPathSim\Combin
at
edModel\ReflectionLocator.h>
#include <ITAPropagationPathSim\CombinedModel\PropagationEngine.h>
#include <ITAPropagationPathSim\CombinedModel\ImageConstructor.h>
#include <ITAPropagationPathSim\CombinedModel\DiffractionLocator.h>
#include <ITAPropagationPathSim\CombinedModel\ReflectionLocator.h>
//Typedefs
typedef
OpenMesh
::
PolyMesh_ArrayKernelT
<>
CITAMesh
;
...
...
@@ -10,7 +10,7 @@ struct CITAMeshPtr
CITAMesh
*
pMesh
;
};
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CPathEngine
(
shared_ptr
<
const
ITAGeo
::
Halfedge
::
CMeshModelList
>
pMeshModelList
)
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CPathEngine
(
shared_ptr
<
const
ITAGeo
::
Halfedge
::
CMeshModelList
>
pMeshModelList
)
{
m_pMeshModelList
=
pMeshModelList
;
...
...
@@ -33,7 +33,7 @@ ITAPropagationPathSim::CombinatedModel::CPathEngine::CPathEngine(shared_ptr<cons
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
ApplyEmitter
(
shared_ptr
<
ITAGeo
::
CEmitter
>
pEmitter
,
const
int
iMaxDiffractions
,
const
int
iMaxReflections
,
const
int
iMaxCombinedOrder
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
ApplyEmitter
(
shared_ptr
<
ITAGeo
::
CEmitter
>
pEmitter
,
const
int
iMaxDiffractions
,
const
int
iMaxReflections
,
const
int
iMaxCombinedOrder
)
{
//Set emitter
m_pEmitter
=
pEmitter
;
...
...
@@ -53,7 +53,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::ApplyEmitter(shared_pt
ImageConstruction
::
ConstructImageEdges
(
m_pEmitter
,
m_vpPropagationTree
);
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
ApplySensor
(
shared_ptr
<
ITAGeo
::
CSensor
>
pSensor
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
ApplySensor
(
shared_ptr
<
ITAGeo
::
CSensor
>
pSensor
)
{
//Set sensor
m_pSensor
=
pSensor
;
...
...
@@ -65,7 +65,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::ApplySensor(shared_ptr
ImageConstruction
::
ConstructImageReceivers
(
m_pSensor
,
m_vpPropagationLists
,
m_mvpShapeVisibilityMap
,
*
m_pMaxReflectionOrder
);
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
ConstructPropagationPaths
(
ITAGeo
::
CPropagationPathList
&
oPaths
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
ConstructPropagationPaths
(
ITAGeo
::
CPropagationPathList
&
oPaths
)
{
int
iCounter
=
0
;
for
(
auto
&
pPropagationList
:
m_vpPropagationLists
)
...
...
@@ -114,7 +114,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::ConstructPropagationPa
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
ConvertShapeListsToPropagationPaths
(
ITAGeo
::
CPropagationPathList
&
oPathsOut
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
ConvertShapeListsToPropagationPaths
(
ITAGeo
::
CPropagationPathList
&
oPathsOut
)
{
//Add direct path
CPropagationPath
oDirectPath
;
...
...
@@ -186,7 +186,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::ConvertShapeListsToPro
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CreatePropagationTree
()
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CreatePropagationTree
()
{
//Set initial values for number of diffractions/reflections
...
...
@@ -269,7 +269,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::CreatePropagationTree(
}
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CreatePropagationLists
()
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CreatePropagationLists
()
{
for
(
auto
&
pPropagationShape
:
m_vpPropagationTree
)
{
...
...
@@ -277,7 +277,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::CreatePropagationLists
}
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
RecursiveAddShapesToPropagationLists
(
shared_ptr
<
CPropagationShape
>&
pPropagationShapeIn
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
RecursiveAddShapesToPropagationLists
(
shared_ptr
<
CPropagationShape
>&
pPropagationShapeIn
)
{
if
(
pPropagationShapeIn
==
nullptr
)
return
;
...
...
@@ -395,7 +395,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::RecursiveAddShapesToPr
}
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
RecursiveAddChildrenToTree
(
const
CPropagationShapeShared
&
pPropagationShapeChildIn
,
CPropagationShapeShared
&
vpShapeChildCopyOut
,
int
iReflectionOrder
,
int
iDiffractionOrder
,
int
iCombinedOrder
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
RecursiveAddChildrenToTree
(
const
CPropagationShapeShared
&
pPropagationShapeChildIn
,
CPropagationShapeShared
&
vpShapeChildCopyOut
,
int
iReflectionOrder
,
int
iDiffractionOrder
,
int
iCombinedOrder
)
{
switch
(
pPropagationShapeChildIn
->
iShapeType
)
...
...
@@ -463,7 +463,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::RecursiveAddChildrenTo
}
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CreateVisibilityMap
()
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CreateVisibilityMap
()
{
//Create a visibility map
for
(
auto
&
pPropagationShapeFrom
:
m_vpPropagationShapes
)
...
...
@@ -534,14 +534,14 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::CreateVisibilityMap()
}
}
bool
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CanPointIlluminateFace
(
const
VistaVector3D
&
v3Point
,
const
string
&
sMeshModelName
,
CITAMesh
::
FaceHandle
hFace
)
bool
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CanPointIlluminateFace
(
const
VistaVector3D
&
v3Point
,
const
string
&
sMeshModelName
,
CITAMesh
::
FaceHandle
hFace
)
{
auto
&
pFaceMesh
=
m_pMeshModelList
->
GetMeshModel
(
sMeshModelName
)
->
GetMesh
()
->
pMesh
;
return
ITAGeoUtils
::
CanFaceBeIlluminated
(
*
pFaceMesh
,
hFace
,
v3Point
);
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CanEdgeIlluminateFace
(
bool
&
bCanEdgeIlluminateFaceOut
,
CPropagationFaceShared
&
pPropagationFace
,
CPropagationEdgeShared
&
pPropagationEdge
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CanEdgeIlluminateFace
(
bool
&
bCanEdgeIlluminateFaceOut
,
CPropagationFaceShared
&
pPropagationFace
,
CPropagationEdgeShared
&
pPropagationEdge
)
{
auto
&
pFaceMesh
=
m_pMeshModelList
->
GetMeshModel
(
*
pPropagationFace
->
sMeshModelName
)
->
GetMesh
()
->
pMesh
;
...
...
@@ -551,7 +551,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::CanEdgeIlluminateFace(
bCanEdgeIlluminateFaceOut
|=
ITAGeoUtils
::
CanFaceBeIlluminated
(
*
pFaceMesh
,
pPropagationFace
->
hFace
,
(
1
-
eps
)
*
(
*
pPropagationEdge
->
v3ToVertex
)
+
(
eps
)
*
(
*
pPropagationEdge
->
v3FromVertex
));
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CanFaceIlluminateEdge
(
bool
&
bCanFaceIlluminateEdgeOut
,
CPropagationFaceShared
&
pPropagationFace
,
CPropagationEdgeShared
&
pPropagationEdge
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CanFaceIlluminateEdge
(
bool
&
bCanFaceIlluminateEdgeOut
,
CPropagationFaceShared
&
pPropagationFace
,
CPropagationEdgeShared
&
pPropagationEdge
)
{
auto
&
pEdgeMesh
=
m_pMeshModelList
->
GetMeshModel
(
*
pPropagationEdge
->
sMeshModelName
)
->
GetMesh
()
->
pMesh
;
...
...
@@ -567,7 +567,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::CanFaceIlluminateEdge(
}
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CanFaceIlluminateFace
(
bool
&
bCanFaceIlluminateFaceOut
,
CPropagationFaceShared
&
pPropagationFaceStart
,
CPropagationFaceShared
&
pPropagationFaceEnd
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CanFaceIlluminateFace
(
bool
&
bCanFaceIlluminateFaceOut
,
CPropagationFaceShared
&
pPropagationFaceStart
,
CPropagationFaceShared
&
pPropagationFaceEnd
)
{
auto
&
pFaceEndMesh
=
m_pMeshModelList
->
GetMeshModel
(
*
pPropagationFaceEnd
->
sMeshModelName
)
->
GetMesh
()
->
pMesh
;
...
...
@@ -582,7 +582,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::CanFaceIlluminateFace(
}
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
CanEdgeIlluminateEdge
(
bool
&
bCanEdgeIlluminateEdgeOut
,
CPropagationEdgeShared
&
pPropagationEdgeStart
,
CPropagationEdgeShared
&
pPropagationEdgeEnd
)
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
CanEdgeIlluminateEdge
(
bool
&
bCanEdgeIlluminateEdgeOut
,
CPropagationEdgeShared
&
pPropagationEdgeStart
,
CPropagationEdgeShared
&
pPropagationEdgeEnd
)
{
auto
&
pEdgeEndMesh
=
m_pMeshModelList
->
GetMeshModel
(
*
pPropagationEdgeEnd
->
sMeshModelName
)
->
GetMesh
()
->
pMesh
;
...
...
@@ -594,7 +594,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::CanEdgeIlluminateEdge(
bCanEdgeIlluminateEdgeOut
|=
ITAGeoUtils
::
CanFaceBeIlluminated
(
*
pEdgeEndMesh
,
pPropagationEdgeEnd
->
hOppositeFace
,
(
1
-
eps
)
*
(
*
pPropagationEdgeStart
->
v3ToVertex
)
+
(
eps
)
*
(
*
pPropagationEdgeStart
->
v3FromVertex
));
}
void
ITAPropagationPathSim
::
Combin
at
edModel
::
CPathEngine
::
ConstructPropagationShapes
()
void
ITAPropagationPathSim
::
CombinedModel
::
CPathEngine
::
ConstructPropagationShapes
()
{
for
(
auto
&
pMeshModel
:
*
m_pMeshModelList
)
...
...
src/ITAPropagationPathSim/Combin
at
edModel/PropagationShapes.cpp
→
src/ITAPropagationPathSim/CombinedModel/PropagationShapes.cpp
View file @
fabb0f5c
#include <ITAPropagationPathSim/Combin
at
edModel/PropagationShapes.h>
#include <ITAPropagationPathSim/CombinedModel/PropagationShapes.h>
using
namespace
ITAPropagationPathSim
::
Combin
at
edModel
;
using
namespace
ITAPropagationPathSim
::
CombinedModel
;
void
CPropagationShape
::
CopyFrom
(
const
CPropagationShape
&
oPropagationShapeIn
)
...
...
src/ITAPropagationPathSim/Combin
at
edModel/ReflectionLocator.cpp
→
src/ITAPropagationPathSim/CombinedModel/ReflectionLocator.cpp
View file @
fabb0f5c
#include <ITAPropagationPathSim\Combin
at
edModel\ReflectionLocator.h>
#include <ITAPropagationPathSim\CombinedModel\ReflectionLocator.h>
bool
ITAPropagationPathSim
::
Combin
at
edModel
::
Reflection
::
ConstructPointsOfReflection
(
vector
<
CPropagationShapeShared
>&
pPropagationLists
,
shared_ptr
<
const
ITAGeo
::
CSensor
>
pSensor
)
bool
ITAPropagationPathSim
::
CombinedModel
::
Reflection
::
ConstructPointsOfReflection
(
vector
<
CPropagationShapeShared
>&
pPropagationLists
,
shared_ptr
<
const
ITAGeo
::
CSensor
>
pSensor
)
{
for
(
auto
&
pStartShape
:
pPropagationLists
)
{
...
...
src/ITAPropagationPathSim/Combin
at
edModel/_SourceFiles.cmake
→
src/ITAPropagationPathSim/CombinedModel/_SourceFiles.cmake
View file @
fabb0f5c
# $Id:$
set
(
RelativeDir
"src/ITAPropagationPathSim/Combin
at
edModel"
)
set
(
RelativeSourceGroup
"Source Files
\\
ITAPropagationPathSim
\\
Combin
at
edModel"
)
set
(
RelativeDir
"src/ITAPropagationPathSim/CombinedModel"
)
set
(
RelativeSourceGroup
"Source Files
\\
ITAPropagationPathSim
\\
CombinedModel"
)
set
(
DirFiles
DiffractionLocator.cpp
ImageConstructor.cpp
PropagationEngine.cpp
PropagationConstructor.cpp
PropagationShapes.cpp
ReflectionLocator.cpp
)
...
...
src/ITAPropagationPathSim/_SourceFiles.cmake
View file @
fabb0f5c
...
...
@@ -2,7 +2,7 @@
set
(
RelativeDir
"src/ITAPropagationPathSim"
)
set
(
RelativeSourceGroup
"Source Files
\\
ITAPropagationPathSim"
)
set
(
SubDirs MirrorImage ConvexDiffraction Combin
at
edModel BaseEngine UrbanEngine
)
set
(
SubDirs MirrorImage ConvexDiffraction CombinedModel BaseEngine UrbanEngine
)
set
(
DirFiles
#_SourceFiles.cmake
...
...
tests/CombinedModel/CMakeLists.txt
View file @
fabb0f5c
...
...
@@ -22,4 +22,4 @@ vista_configure_app( CombinedModelTest )
vista_install
(
CombinedModelTest
)
vista_create_default_info_file
(
CombinedModelTest
)
set_property
(
TARGET CombinedModelTest PROPERTY FOLDER
"ITAGeometricalAcoustics/Tests/ITAPropagationPathSim/Combin
at
edModel"
)
set_property
(
TARGET CombinedModelTest PROPERTY FOLDER
"ITAGeometricalAcoustics/Tests/ITAPropagationPathSim/CombinedModel"
)
tests/CombinedModel/CombinedModelTest.cpp
View file @
fabb0f5c
...
...
@@ -21,7 +21,7 @@
#include <ITAStopWatch.h>
#include <ITAStringUtils.h>
#include <ITAPropagationPathSim/Combin
at
edModel/PropagationEngine.h>
#include <ITAPropagationPathSim/CombinedModel/PropagationEngine.h>
#include <ITAGeo/Base.h>
#include <ITAGeo/Utils.h>
#include <ITAGeo/SketchUp/Model.h>
...
...
@@ -84,7 +84,7 @@ int main( int iNumInArgs, char* pcInArgs[] )
ITAStopWatch
sw
;
sw
.
start
();
auto
pPathEngine
=
make_shared
<
Combin
at
edModel
::
CPathEngine
>
(
pMeshModelList
);
auto
pPathEngine
=
make_shared
<
CombinedModel
::
CPathEngine
>
(
pMeshModelList
);
cout
<<
"Calculation time initialization path engine: "
<<
timeToString
(
sw
.
stop
())
<<
endl
;
sw
.
start
();
...
...
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