Code_TYMPAN  4.2.0
Industrial site acoustic simulation
RayCourb.h
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 #ifndef __RAYCOURB_H
17 #define __RAYCOURB_H
18 
19 #include <vector>
20 #include <map>
22 #include "Step.h"
23 
24 using namespace std;
28 class RayCourb
29 {
30 public:
32  RayCourb();
34  RayCourb(const vec3& a);
35  RayCourb(const RayCourb& r);
37  ~RayCourb() {}
38 
40  void purge();
41 
43  void setSize(const unsigned int taille) { etapes.reserve(taille); }
44 
46  RayCourb& operator= (const RayCourb& P);
47 
48 public:
49  vector<Step> etapes;
50  int nbReflex;
51  vector<int> position;
52  map<int, int> rencontre;
53 };
54 #endif //__RAYCOURB_H
55 
int nbReflex
Reflections number.
Definition: RayCourb.h:50
void setSize(const unsigned int taille)
Set the steps vector size.
Definition: RayCourb.h:43
STL namespace.
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
Math library.
~RayCourb()
Destructor.
Definition: RayCourb.h:37
map< int, int > rencontre
Tuple (time step, encountered face)
Definition: RayCourb.h:52
Class to describe a ray curve.
Definition: RayCourb.h:28