Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYRectangularMaillageGraphic.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 
27 #ifndef __TY_RECTANGULAR_MAILLAGE_GRAPHIC__
28 #define __TY_RECTANGULAR_MAILLAGE_GRAPHIC__
29 
31 #if _MSC_VER > 1000
32  #pragma once
33 #endif // _MSC_VER > 1000
34 
36 #include "TYElementGraphic.h"
37 
39 
45 {
47 
48  // Methodes
49 public:
50  /* Enum mode de rendu du maillage */
52  {
57 
62 
67 
75  virtual void update(bool force = false);
76 
84  virtual void display(TYRenderContext& renderContext);
85 
89  virtual OBox computeBoundingBox() const;
90 
91  virtual void setRendering(int mode)
92  {
93  _Rendering = (RenderingMode)mode;
94  };
95 
96 private:
100  int nextPoint(const TYTabLPPointCalcul* pPtsCalcul, const int& index1, const int& index2);
101 
102 protected:
103  std::vector<MTriangle> _mesh;
104  std::vector<MPoint> _isoCurve;
105 
106  double _scalarX;
107  double _scalarY;
108  double _scalarW;
109  double _scalarH;
110  double _panelW;
111  double _panelH;
112 
113  virtual void displaySurface(TYRenderContext& renderContext);
114  virtual void displayLines(TYRenderContext& renderContext, bool invertColors = false);
115  virtual void displayMixed(TYRenderContext& renderContext);
116 };
117 
118 #endif // __TY_RECTANGULAR_MAILLAGE_GRAPHIC__
std::vector< LPTYPointCalcul > TYTabLPPointCalcul
Collection de pointeurs de TYPointCalcul.
Definition: TYDefines.h:358
Representation graphique d'un element de base (fichier header)
#define TY_DECL_METIER_GRAPHIC(classname)
Contexte de rendu utilisé par les fonctions d'affichage.
The box class.
Definition: 3d.h:1346
classe graphique pour un element de base
classe graphique pour un maillage rectangulaire
virtual void displaySurface(TYRenderContext &renderContext)
virtual void display(TYRenderContext &renderContext)
enum TYRectangularMaillageGraphic::RenderingMode _Rendering
virtual void displayMixed(TYRenderContext &renderContext)
virtual void update(bool force=false)
virtual void displayLines(TYRenderContext &renderContext, bool invertColors=false)
int nextPoint(const TYTabLPPointCalcul *pPtsCalcul, const int &index1, const int &index2)
TYRectangularMaillageGraphic(TYRectangularMaillage *pElement)
Classe de definition d'un maillage rectangulaire.