Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAltimetrieGraphic.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 
27 #ifndef __TY_ALTIMETRIE_GRAPHIC__
28 #define __TY_ALTIMETRIE_GRAPHIC__
29 
30 #if _MSC_VER > 1000
31  #pragma once
32 #endif // _MSC_VER > 1000
33 
35 #include "TYElementGraphic.h"
36 #include "TYPolygonGraphic.h"
37 #include <QImage>
38 
39 class TYAltimetrie;
40 
46 {
48 
49  // Methodes
50 public:
55 
59  virtual ~TYAltimetrieGraphic();
60 
68  virtual void update(bool force = false);
69 
76  virtual void display(TYElement* pModelerElement = nullptr, GLenum mode = GL_RENDER);
77 
82  virtual void getChilds(TYListPtrTYElementGraphic& childs, bool recursif = true);
83 
87  virtual void computeBoundingBox();
88 
98  void setBackgroundImage(QString sTopoFileName, int semiX, int semiY, TYPoint ptPosition,
99  OVector3D bgImageOrientation);
100 
104  void unsetBackgroundImage();
105 
106 protected:
107  void bindTexture();
111  int _semiX;
112  int _semiY;
115  GLuint _theTexture;
116  double _angle;
118  QString _sTopoFileName;
119  unsigned char* _imgDataPtr;
123 };
124 
125 #endif // __TY_ALTIMETRIE_GRAPHIC__
Representation graphique d'un element de base (fichier header)
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
#define TY_DECL_METIER_GRAPHIC(classname)
Representation graphique d'un polygone (fichier header)
The 3D vector class.
Definition: 3d.h:298
classe graphique pour une altimetrie
void setBackgroundImage(QString sTopoFileName, int semiX, int semiY, TYPoint ptPosition, OVector3D bgImageOrientation)
unsigned char * _imgDataPtr
virtual void computeBoundingBox()
TYAltimetrieGraphic(TYAltimetrie *pElement)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void update(bool force=false)
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
Assigne une altitude a chaque point de l'espace.
Definition: TYAltimetrie.h:35
classe graphique pour un element de base
std::vector< OColor > OLookupTable
Collection de OColor.
Definition: color.h:105