30 #include <qvector3d.h>
58 childs.push_back(pTYElementGraphic);
61 pTYElementGraphic->
getChilds(childs, recursif);
80 glColor4fv(getElement()->getColor());
82 glGetFloatv(GL_CURRENT_COLOR, color);
102 TYTabPoint tabpoints = getElement()->getListPoints();
105 for (
unsigned int i = 0; i < tabpoints.size(); i++)
107 tabpoints[i]._z += 0.5;
113 std::vector<QVector3D> vertices;
116 vertices.emplace_back(point._x, point._y, point._z);
OGLPolyLineMesh::EndType endTypeFromCourbeNiveau(const TYCourbeNiveau *courbeNiveau)
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 getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void update(bool force=false)
TYCourbeNiveauGraphic(TYCourbeNiveau *pElement)
void collectMeshInstances(std::vector< OGLMeshInstance > &meshInstances, TYRenderContext *renderContext) const override
std::shared_ptr< OGLPolyLineMesh > _polylineMesh
virtual void display(TYRenderContext &renderContext)
LPTYPolyLineGraphic _pPolyLineGraphic
classe graphique pour un element de base
bool _visible
Inique si l'element est visible.
virtual void update(bool force=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
virtual void display(TYRenderContext &renderContext)
void setElement(TYElement *pElt)
QMatrix4x4 globalMatrix() const
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)
TYTabPoint & getTabPoint()