33 #include <qnamespace.h>
40 std::array<std::array<double, 3>, 4> coords;
41 for (
size_t i = 0; i < 4; ++i)
59 std::array<std::array<double, 3>, 4> coords;
60 for (
size_t i = 0; i < 4; ++i)
72 pTYElementGraphic = getElement()->getSrcSurf()->getGraphicObject();
73 childs.push_back(pTYElementGraphic);
76 pTYElementGraphic->
getChilds(childs, recursif);
79 pTYElementGraphic = getElement()->getShape()->getGraphicObject();
80 childs.push_back(pTYElementGraphic);
83 pTYElementGraphic->
getChilds(childs, recursif);
105 OColor color = getElement()->getColor();
109 if (getElement()->getIsSub() && strcmp(getElement()->getClassName(),
"TYMurElement") == 0)
126 getElement()->getSrcSurf()->getGraphicObject()->display(renderContext);
131 if ((getElement()->getIsSub()))
137 getElement()->getShape()->getGraphicObject()->display(renderContext);
139 if ((getElement()->getIsSub()))
152 float r = 255.0f, g = 0.0f, b = 0.0f;
Representation graphique d'un rectangle acoustique (fichier header)
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.
Representation graphique d'une surface de source (fichier header)
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
static OPrototype * safeDownCast(OPrototype *pObject)
virtual void display(TYRenderContext &renderContext)
virtual void getChilds(TYListPtrTYElementGraphic &childs, bool recursif=true)
void collectMeshInstances(std::vector< OGLMeshInstance > &meshInstances, TYRenderContext *renderContext) const override
virtual OBox computeBoundingBox() const
virtual void update(bool force=false)
std::shared_ptr< OGLRectangleMesh > _rectangleMesh
TYAcousticRectangleGraphic(TYAcousticRectangle *pElement)
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)
QMatrix4x4 globalMatrix() const
static void addElement(TYElement *pElt)
bool showDistributedSources