43 pTYElementGraphic = getElement()->getSrcSurf()->getGraphicObject();
44 childs.push_back(pTYElementGraphic);
47 pTYElementGraphic->
getChilds(childs, recursif);
50 pTYElementGraphic = getElement()->getSemiCircTop()->getGraphicObject();
51 childs.push_back(pTYElementGraphic);
54 pTYElementGraphic->
getChilds(childs, recursif);
57 pTYElementGraphic = getElement()->getSemiCircBottom()->getGraphicObject();
58 childs.push_back(pTYElementGraphic);
61 pTYElementGraphic->
getChilds(childs, recursif);
65 pTYElementGraphic = getElement()->getRect()->getGraphicObject();
66 childs.push_back(pTYElementGraphic);
69 pTYElementGraphic->
getChilds(childs, recursif);
104 getElement()->getSrcSurf()->getGraphicObject()->display(renderContext);
113 getElement()->getRect()->getGraphicObject()->display(renderContext);
116 getElement()->getSemiCircTop()->getGraphicObject()->display(renderContext);
119 getElement()->getSemiCircBottom()->getGraphicObject()->display(renderContext);
122 glColor3fv(getElement()->getColor());
141 glTranslatef(getElement()->getCenter()._x, getElement()->getCenter()._y,
142 getElement()->getCenter()._z);
147 for (
int i = 0; i < resolution; i++)
149 tabRect[i].getGraphicObject()->display(renderContext);
Representation graphique d'un 1/2 cylindre acoustique (fichier header)
std::vector< TYRectangle > TYTabRectangle
Collection de TYRectangle.
#define TYDEFAULTRESOLUTIONIONCIRCLE
Resolution par defaut pour la representation des cercles par des segments.
list< TYElementGraphic * > TYListPtrTYElementGraphic
List de pointeur de TYElement.
#define TYDIRPREFERENCEMANAGER
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.
@ Overlay
The current render pass is for overlay elements.
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 display(TYRenderContext &renderContext)
virtual OBox computeBoundingBox() const
virtual void update(bool force=false)
TYAcousticSemiCylinderGraphic(TYAcousticSemiCylinder *pElement)
virtual ~TYAcousticSemiCylinderGraphic()
classe graphique pour un element de base
void drawName(TYRenderContext &renderContext)
bool _visible
Inique si l'element est visible.
virtual void update(bool force=false)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
static void addElement(TYElement *pElt)