39 childs.push_back(pTYElementGraphic);
42 pTYElementGraphic->
getChilds(childs, recursif);
62 TYTabPoint tabpoints = getElement()->getListPoints();
65 for (
unsigned int i = 0; i < tabpoints.size(); i++)
67 tabpoints[i]._z += 0.5;
73 if (mode == GL_SELECT)
80 if (Error != GL_NO_ERROR)
81 printf(
"Erreur OpenGL %d\n", Error);
82 glColor4fv(getElement()->getColor());
84 if (Error != GL_NO_ERROR)
85 printf(
"Erreur OpenGL %d\n", Error);
87 glGetFloatv(GL_CURRENT_COLOR, color);
89 if (Error != GL_NO_ERROR)
90 printf(
"Erreur OpenGL %d\n", Error);
95 if (mode == GL_SELECT)
Representation graphique d'une courbe de niveau (fichier header)
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
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.
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void computeBoundingBox()
virtual void update(bool force=false)
TYCourbeNiveauGraphic(TYCourbeNiveau *pElement)
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
LPTYPolyLineGraphic _pPolyLineGraphic
classe graphique pour un element de base
bool _visible
Inique si l'element est visible.
void setModified(bool modified=true)
virtual void update(bool force=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
void setElement(TYElement *pElt)
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
void highlight(bool state=true)
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()
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)