41 childs.push_back(pTYElementGraphic);
44 pTYElementGraphic->
getChilds(childs, recursif);
57 if (!
_visible || !getElement()->isInCurrentCalcul())
63 TYTabPoint tabpoints = getElement()->getListPoints();
66 for (
unsigned int i = 0; i < tabpoints.size(); i++)
68 tabpoints[i]._z += 0.5;
79 glColor4fv(getElement()->
getColor());
81 glGetFloatv(GL_CURRENT_COLOR, color);
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)
Contexte de rendu utilisé par les fonctions d'affichage.
@ Picking
The current render is only done for picking purpose.
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 update(bool force=false)
virtual OBox computeBoundingBox() const
TYCourbeNiveauGraphic(TYCourbeNiveau *pElement)
virtual void display(TYRenderContext &renderContext)
LPTYPolyLineGraphic _pPolyLineGraphic
classe graphique pour un element de base
bool _visible
Inique si l'element est visible.
void setModified(bool modified=true)
void setBoundingBoxVisible(bool state=true)
virtual void update(bool force=false)
bool isBoundingBoxVisible() const
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void display(TYRenderContext &renderContext)
void setElement(TYElement *pElt)
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 display(TYRenderContext &renderContext)