Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYRayGraphic.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef __TY_RAY_GRAPHIC__
17 #define __TY_RAY_GRAPHIC__
18 
19 #if _MSC_VER > 1000
20  #pragma once
21 #endif // _MSC_VER > 1000
22 
24 #include "TYElementGraphic.h"
25 
26 class TYRay;
27 class acoustic_event;
28 
34 {
36 
37  // Methodes
38 public:
42  TYRayGraphic(TYRay* pElement);
43 
47  virtual ~TYRayGraphic();
48 
56  virtual void update(bool force = false);
57 
65  virtual void display(TYRenderContext& renderContext);
66 
70  virtual OBox computeBoundingBox() const;
71 
72  // Membres
73 public:
75  static bool _gVisible;
76 
77 protected:
79  float _r, _g, _b; // current color of ray
80 
84 };
85 
88 
89 #endif // __TY_RAY_GRAPHIC__
Representation graphique d'un element de base (fichier header)
#define TY_DECL_METIER_GRAPHIC(classname)
SmartPtr< TYRayGraphic > LPTYRayGraphic
Smart Pointer sur TYRayGraphic.
Definition: TYRayGraphic.h:87
The box class.
Definition: 3d.h:1346
classe graphique pour un element de base
int _repeatRayEventCount
Definition: TYRayGraphic.h:83
void getRayEventColor(acoustic_event &e)
TYPoint _lastRayEventPos
Definition: TYRayGraphic.h:82
virtual void display(TYRenderContext &renderContext)
TYRayGraphic(TYRay *pElement)
virtual ~TYRayGraphic()
virtual void update(bool force=false)
virtual OBox computeBoundingBox() const
static bool _gVisible
Indique si toutes les instances sont visibles.
Definition: TYRayGraphic.h:75
int _lastRayEventType
Definition: TYRayGraphic.h:81
Classe decrivant un rayon acoustique gere par un lancer de rayon. Cette classe doit permettre la mode...
Definition: TYRay.h:35
This class store data and provide functions to manipulate event in the acoustic context.
Definition: acoustic_path.h:40