Code_TYMPAN  4.2.0
Industrial site acoustic simulation
RayCourb.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14 */
15 
16 #include "RayCourb.h"
17 
18 RayCourb::RayCourb() : nbReflex(0)
19 {
20 }
21 
23 {
24  etapes.insert(etapes.begin(), Step(a));
25 }
26 
28 {
29 }
30 
31 
33 {
34  etapes = P.etapes;
35  nbReflex = P.nbReflex;
36  position = P.position;
37  rencontre = P.rencontre;
38 
39  return *this;
40 }
41 
43 {
44  etapes.clear();
45  position.clear();
46  rencontre.clear();
47 }
int nbReflex
Reflections number.
Definition: RayCourb.h:50
RayCourb & operator=(const RayCourb &P)
Operator=.
Definition: RayCourb.cpp:32
RayCourb()
Constructor.
Definition: RayCourb.cpp:18
3D vector Vector defined with 3 float numbers
Definition: mathlib.h:107
vector< Step > etapes
Time steps vector.
Definition: RayCourb.h:49
vector< int > position
List of the indices of points where reflection happens (time step number)
Definition: RayCourb.h:51
map< int, int > rencontre
Tuple (time step, encountered face)
Definition: RayCourb.h:52
void purge()
Clear all the arrays.
Definition: RayCourb.cpp:42
Describe a step in the ray path.
Definition: Step.h:31
Class to describe a ray curve.
Definition: RayCourb.h:28