48 TYElementGraphic* pTYElementGraphic = getElement()->getPalette()->getGraphicObject();
55 pTYElementGraphic = getElement()->getPanel()->getGraphicObject();
78 boundaryNoiseMap->
getPalette()->getGraphicObject()->update(force);
85 childs.push_back(pTYElementGraphic);
88 pTYElementGraphic->
getChilds(childs, recursive);
96 double offset = getElement()->getThickness() * 0.5;
118 if (!
_visible || getElement()->etat() ==
false)
123 if (mode == GL_SELECT)
158 glColor3f(1.f, 0.f, 0.f);
159 if (mode == GL_SELECT)
174 TYElementGraphic* pTYElementGraphic = getElement()->getPanel()->getGraphicObject();
185 size_t nbTriangles =
_mesh.size();
186 glBegin(GL_TRIANGLES);
187 for (
size_t i = 0; i < nbTriangles; i++)
195 glColor4f(color0.
r, color0.
g, color0.
b, opacity);
199 glColor4f(color1.
r, color1.
g, color1.
b, opacity);
203 glColor4f(color2.
r, color2.
g, color2.
b, opacity);
212 glGetFloatv(GL_LINE_WIDTH, &lw);
219 for (
size_t i = 0; i < nbIsoCurve; ++i)
225 glColor4f(1.0f - color.
r, 1.0f - color.
g, 1.0f - color.
b, opacity);
229 glColor4f(color.
r, color.
g, color.
b, opacity);
242 TYElementGraphic* pTYElementGraphic = getElement()->getPalette()->getGraphicObject();
Graphical representation of the BoundaryNoiseMap entity (header file)
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
#define TYDIRPREFERENCEMANAGER
Representation d'une palette graphique (fichier header)
Representation graphique d'un panel d'informations (fichier header)
Gestion de la table de correspondance indice/element pour le picking (fichier header)
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
OPoint3D _min
Minimal coordinates of the OBox.
OPoint3D _max
Maximal coordinates of the OBox.
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
static LPOSizeManager get()
enum TYBoundaryNoiseMapGraphic::RenderingMode _Rendering
double _paletteX
The position of the palette in x.
virtual void displaySurface(float opacity=1.f)
Display the surface of the mesh.
double _paletteY
The position of the palette in y.
double _paletteW
The width of the palette.
virtual void displayLines(float opacity=1.f, bool invertColors=false)
Display the isocurve.
LPTYPolyLineGraphic _pPolyLineGraphic
The polyline rendering.
double _paletteH
The height of the palette.
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursive=true)
Set the children.
virtual void update(bool force=false)
Update the mesh and the isocurve.
virtual void displayMixed(float opacity=1.f)
Display both the surface and the isocurve.
TYBoundaryNoiseMapGraphic(TYBoundaryNoiseMap *pElement)
Constructor.
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
Display the object.
std::vector< MTriangle > _mesh
The mesh.
double _panelH
The height of the panel.
double _panelW
The width of the panel.
void displayOnHighlight(int mode)
What we have to display when the entity is highlighted.
std::vector< MPoint > _isoCurve
The iso curve.
virtual void computeBoundingBox()
Compute the bounding box of the object.
This class represents a polyline with a thickness. Acoustic receptors are sampled inside this region.
bool isClosed() const
Is polyline closed?
classe graphique pour un element de base
static OBox _globalBoundingBox
bool _visible
Inique si l'element est visible.
bool _highlight
Indique si le highlight est active pour cet element.
virtual void update(bool force=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
void setElement(TYElement *pElt)
void setVisible(bool visible=true)
void drawLineBoundingBox()
void computeMesh(std::vector< MTriangle > &mesh) const
Compute the mesh.
void computeIsoCurve(std::vector< MTriangle > &mesh, std::vector< MPoint > &isoCurve) const
Compute the isocurve.
LPTYPalette getPalette()
Get de la palette (_pPalette)
Classe graphique pour representer une palette.
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
const OColor & getColorFromValue(values_type value) const
Set de la lookup table.
classe graphique pour un panel d'informations
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
static void addElement(TYElement *pElt)
classe graphique pour representer une polyligne a partir d'un tableau de points.
void setTabPoint(const TYTabPoint &tabPts)
virtual void computeBoundingBox()
TYPalette::values_type scalar