26 #define IMG(id) OLocalizator::getPicture("TYTerrainGraphic", (id))
46 childs.push_back(pTYElementGraphic);
49 pTYElementGraphic->
getChilds(childs, recursif);
53 childs.push_back(pTYElementGraphic);
56 pTYElementGraphic->
getChilds(childs, recursif);
64 _pPolygon->getGraphicObject()->computeBoundingBox();
79 TYTabPoint tabpoints = getElement()->getListPoints();
82 for (
unsigned int i = 0; i < tabpoints.size(); i++)
84 tabpoints[i]._z += 0.05;
92 if (mode == GL_SELECT)
101 glColor4fv(getElement()->getColor());
104 glColor4fv(getElement()->getColor());
106 _pPolygon->getGraphicObject()->display(pModelerElement, mode);
108 if (mode == GL_SELECT)
117 _pPolygon->getGraphicObject()->setTexture(
false);
120 if (getElement()->isUsingVegetation())
123 _pPolygon->getGraphicObject()->setTexture();
125 double r = getElement()->getSol()->getResistivite();
128 if (r >= 5.0 && r < 20.0)
132 else if (r >= 20.0 && r < 50.0)
136 else if (r >= 50.0 && r < 100.0)
140 else if (r >= 100.0 && r < 200.0)
144 else if (r >= 200.0 && r < 500.0)
148 else if (r >= 500.0 && r < 1000.0)
152 else if (r >= 1000.0 && r < 5000.0)
156 else if (r >= 5000.0 && r < 10000.0)
160 else if (r >= 10000.0 && r < 20000.0)
164 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)
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)
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)
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)
void setPoints(const TYTabPoint &pts)
LPTYPolyLineGraphic _pPolyLineGraphic
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void update(bool force=false)
TYTerrainGraphic(TYTerrain *pElement)
virtual void computeBoundingBox()