27 #define IMG(id) OLocalizator::getPicture("TYTerrainGraphic", (id))
47 childs.push_back(pTYElementGraphic);
50 pTYElementGraphic->
getChilds(childs, recursif);
54 childs.push_back(pTYElementGraphic);
57 pTYElementGraphic->
getChilds(childs, recursif);
78 TYTabPoint tabpoints = getElement()->getListPoints();
81 for (
unsigned int i = 0; i < tabpoints.size(); i++)
83 tabpoints[i]._z += 0.05;
103 glColor4fv(getElement()->
getColor());
106 glColor4fv(getElement()->
getColor());
108 _pPolygon->getGraphicObject()->display(renderContext);
119 _pPolygon->getGraphicObject()->setTexture(
false);
122 if (getElement()->isUsingVegetation())
125 _pPolygon->getGraphicObject()->setTexture();
127 double r = getElement()->getSol()->getResistivite();
130 if (r >= 5.0 && r < 20.0)
134 else if (r >= 20.0 && r < 50.0)
138 else if (r >= 50.0 && r < 100.0)
142 else if (r >= 100.0 && r < 200.0)
146 else if (r >= 200.0 && r < 500.0)
150 else if (r >= 500.0 && r < 1000.0)
154 else if (r >= 1000.0 && r < 5000.0)
158 else if (r >= 5000.0 && r < 10000.0)
162 else if (r >= 10000.0 && r < 20000.0)
166 else if (r >= 20000.0)
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.
Representation graphique d'un terrain (fichier header)
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
static const OColor WHITE
bool load(const char *filename)
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)
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)
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)
void setPoints(const TYTabPoint &pts)
LPTYPolyLineGraphic _pPolyLineGraphic
virtual void display(TYRenderContext &renderContext)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void update(bool force=false)
TYTerrainGraphic(TYTerrain *pElement)
virtual OBox computeBoundingBox() const