44 TYElementGraphic* pTYElementGraphic = getElement()->getPalette()->getGraphicObject();
48 pTYElementGraphic = getElement()->getPanel()->getGraphicObject();
59 pMaillage->
getPalette()->getGraphicObject()->update(force);
69 for (
unsigned int i = 0; i < pPtsCalcul->size(); i++)
71 pPtCalcul = pPtsCalcul->at(i);
80 if (getElement()->etat() ==
false)
112 glBegin(GL_LINE_STRIP);
115 for (
unsigned int i = 0; i < pPtsCalcul->size(); i++)
117 pPtCalcul = pPtsCalcul->at(i);
120 switch (getElement()->getDataType())
133 const OColor& color = getElement()->getPalette()->getColorFromValue(value);
134 glColor4f(color.
r, color.
g, color.
b, opacity);
135 glVertex3f(pPtCalcul->
_x, pPtCalcul->
_y, pPtCalcul->
_z);
145 TYElementGraphic* pTYElementGraphic = getElement()->getPanel()->getGraphicObject();
147 pTYPanelGraphic->
display(renderContext);
152 GLfloat pointSize = NAN;
153 glGetFloatv(GL_POINT_SIZE, &pointSize);
160 glPointSize(pointSize);
162 TYElementGraphic* pTYElementGraphic = getElement()->getPalette()->getGraphicObject();
166 glGetIntegerv(GL_VIEWPORT, viewport);
167 unsigned int width = viewport[2];
168 unsigned int height = viewport[3];
171 pTYPaletteGraphic->
display(renderContext);
std::vector< LPTYPointCalcul > TYTabLPPointCalcul
Collection de pointeurs de TYPointCalcul.
#define TYDIRPREFERENCEMANAGER
Representation graphique d'un maillage lineaire (fichier header)
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)
Contexte de rendu utilisé par les fonctions d'affichage.
@ Picking
The current render is only done for picking purpose.
@ Overlay
The current render pass is for overlay elements.
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
double valGlobDBA() const
Compute the global value dB[A] of a one-third Octave spectrum.
double valGlobDBLin() const
Compute the global value dB[Lin] of a one-third Octave spectrum.
double getValueReal(double freq)
classe graphique pour un element de base
void drawName(TYRenderContext &renderContext)
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)
void setVisible(bool visible=true)
virtual void update(bool force=false)
TYLinearMaillageGraphic(TYLinearMaillage *pElement)
virtual ~TYLinearMaillageGraphic()
virtual OBox computeBoundingBox() const
virtual void display(TYRenderContext &renderContext)
Classe de definition d'un maillage lineaire.
LPTYPalette getPalette()
Get de la palette (_pPalette)
Classe graphique pour representer une palette.
virtual void display(TYRenderContext &renderContext)
classe graphique pour un panel d'informations
virtual void display(TYRenderContext &renderContext)
static void addElement(TYElement *pElt)
Classe de definition d'un point de calcul.C'est une classe derivee a TYPoint avec en plus un spectrep...
virtual LPTYSpectre getSpectre()
Get du spectre resultat d'un calcul donne.