44 pTYElementGraphic = getElement()->getSrcSurf()->getGraphicObject();
45 childs.push_back(pTYElementGraphic);
48 pTYElementGraphic->
getChilds(childs, recursif);
51 pTYElementGraphic = getElement()->getCircTop()->getGraphicObject();
52 childs.push_back(pTYElementGraphic);
55 pTYElementGraphic->
getChilds(childs, recursif);
58 pTYElementGraphic = getElement()->getCircBottom()->getGraphicObject();
59 childs.push_back(pTYElementGraphic);
62 pTYElementGraphic->
getChilds(childs, recursif);
72 size_t nbPts = sommets.size();
74 for (
size_t i = 0; i < nbPts; i++)
99 getElement()->getSrcSurf()->getGraphicObject()->display(renderContext);
101 getElement()->getCircTop()->getGraphicObject()->display(renderContext);
103 getElement()->getCircBottom()->getGraphicObject()->display(renderContext);
106 glColor3fv(getElement()->getColor());
110 getElement()->getCenter().getToOGL(center);
127 OPoint3D oCenter = getElement()->getCenter();
128 glTranslatef(oCenter.
_x, oCenter.
_y, oCenter.
_z);
133 for (
int i = 0; i < resolution; i++)
135 tabRect[i].getGraphicObject()->display(renderContext);
Representation graphique d'un cylindre accoustique (fichier header)
std::vector< TYRectangle > TYTabRectangle
Collection de TYRectangle.
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
#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.
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
virtual void display(TYRenderContext &renderContext)
virtual ~TYAcousticCylinderGraphic()
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
TYAcousticCylinderGraphic(TYAcousticCylinder *pElement)
virtual OBox computeBoundingBox() const
virtual void update(bool force=false)
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)