50 TYElementGraphic* pTYElementGraphic = getElement()->getPalette()->getGraphicObject();
54 pTYElementGraphic = getElement()->getPanel()->getGraphicObject();
73 pRectangularMaillage->
getPalette()->getGraphicObject()->update(force);
85 int index1 = 0, index2 = 0;
86 unsigned long largeur = 0, hauteur = 0;
92 const unsigned int larg = largeur;
93 const unsigned int haut = hauteur;
97 for (
int i = 0; i < haut - 1; i++)
99 for (
int j = 0; j < larg; j++)
102 index1 = i * larg + j;
105 index2 = (i + 1) * larg + j;
106 pPtCalcul = pPtsCalcul->at(index2);
116 if (getElement()->etat() ==
false)
132 if (mode == GL_SELECT)
154 if (mode == GL_SELECT)
161 GLfloat pointSize = NAN;
162 glGetFloatv(GL_POINT_SIZE, &pointSize);
164 glGetFloatv(GL_CURRENT_COLOR, tmpColor);
172 if (mode == GL_COMPILE)
176 glColor3f(tmpColor[0], tmpColor[1], tmpColor[2]);
178 glPointSize(pointSize);
208 bool antialiasing =
true;
241 size_t nbTriangles =
_mesh.size();
243 if (nbTriangles > 1000)
254 bmax = (bmax <= nbTriangles ? bmax : nbTriangles);
262 glBegin(GL_TRIANGLES);
263 for (
size_t i = bmin; i < bmax; i++)
285 glColor4f(color0.
r, color0.
g, color0.
b, opacity);
288 glColor4f(color1.
r, color1.
g, color1.
b, opacity);
291 glColor4f(color2.
r, color2.
g, color2.
b, opacity);
298 bmax = (bmax <= nbTriangles ? bmax : nbTriangles);
299 }
while (bmin < nbTriangles);
325 glGetFloatv(GL_LINE_WIDTH, &lw);
328 std::vector<MPoint>::iterator it;
341 glColor4f(1.0f - color.
r, 1.0f - color.
g, 1.0f - color.
b, opacity);
345 glColor4f(color.
r, color.
g, color.
b, opacity);
367 while ((pPtsCalcul->at(indice)->etat() ==
false) && (indice > 0))
All base classes related to 3D manipulation.
std::vector< LPTYPointCalcul > TYTabLPPointCalcul
Collection de pointeurs de TYPointCalcul.
#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)
Representation graphique d'un maillage rectangulaire (fichier header)
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
static LPOSizeManager get()
classe graphique pour un element de base
void drawName(TYElement *pModelerElement=nullptr)
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)
void setVisible(bool visible=true)
void drawLineBoundingBox()
TYTabLPPointCalcul & getPtsCalcul()
Set/Get de la liste des points de calcul.
void computeMesh(std::vector< MTriangle > &mesh) const
Compute the mesh.
void computeIsoCurve(std::vector< MTriangle > &mesh, std::vector< MPoint > &isoCurve) const
Compute the isocurve.
LPTYPanel getPanel()
Get du panel.
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 de definition d'un point de calcul.C'est une classe derivee a TYPoint avec en plus un spectrep...
virtual void displayMixed(GLenum mode=GL_RENDER)
std::vector< MPoint > _isoCurve
virtual void displayLines(GLenum mode=GL_RENDER, bool invertColors=false)
virtual ~TYRectangularMaillageGraphic()
virtual void computeBoundingBox()
enum TYRectangularMaillageGraphic::RenderingMode _Rendering
virtual void update(bool force=false)
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
std::vector< MTriangle > _mesh
int nextPoint(const TYTabLPPointCalcul *pPtsCalcul, const int &index1, const int &index2)
TYRectangularMaillageGraphic(TYRectangularMaillage *pElement)
virtual void displaySurface(GLenum mode=GL_RENDER)
Classe de definition d'un maillage rectangulaire.
void getDimensionsAndSteps(unsigned long &x, unsigned long &y, OVector3D &stepx, OVector3D &stepy) const
Renvoie le nombre de lignes et de colonnes du maillage.En fonction de ses dimensions en 3D et de la d...
TYPalette::values_type scalar