Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYRayGraphic.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 __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(TYElement* pModelerElement = nullptr, GLenum mode = GL_RENDER);
66 
70  virtual void computeBoundingBox();
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
classe graphique pour un element de base
virtual void computeBoundingBox()
int _repeatRayEventCount
Definition: TYRayGraphic.h:83
void getRayEventColor(acoustic_event &e)
TYPoint _lastRayEventPos
Definition: TYRayGraphic.h:82
TYRayGraphic(TYRay *pElement)
virtual ~TYRayGraphic()
virtual void update(bool force=false)
static bool _gVisible
Indique si toutes les instances sont visibles.
Definition: TYRayGraphic.h:75
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
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