Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
classe graphique pour un element de base More...
#include <TYElementGraphic.h>
Public Member Functions | |
virtual | ~TYElementGraphic () |
void | setElement (TYElement *pElt) |
TYElement * | getTYElement () |
void | updateTree () |
virtual void | update (bool force=false) |
virtual void | display (GLenum mode=GL_RENDER) |
void | setModified (bool modified=true) |
bool | getModified (bool andReset=false) |
void | setVisible (bool visible=true) |
bool | getVisible () |
void | setRecursiveVisible (bool visible=true) |
void | setTexture (bool state=true) |
bool | getTexture () |
OBox | GetBox () |
virtual void | computeBoundingBox () |
virtual void | getChilds (TYListPtrTYElementGraphic &childs, bool recursif=true) |
void | highlight (bool state=true) |
bool | getHighlightState () |
void | viewOnlyHighlight (bool state=true) |
bool | getOnlyHighlight () |
Public Member Functions inherited from IRefCount | |
IRefCount () | |
virtual | ~IRefCount () |
virtual int | incRef () |
virtual int | decRef () |
int | getRefCount () const |
Static Public Attributes | |
static OBox | _globalBoundingBox |
static bool | _gDrawNormals = false |
Indique si les normals doivent etre visible. More... | |
static bool | _gDrawPlafond = true |
Indique si les plafonds doivent etre visible. More... | |
Protected Member Functions | |
TYElementGraphic (TYElement *pElt) | |
void | displayNormal (OVector3D normal, OPoint3D p1) |
void | glVertex3fAndEnlargeBB (GLfloat x, GLfloat y, GLfloat z) |
void | glVertex3dAndEnlargeBB (GLdouble x, GLdouble y, GLdouble z) |
void | gluDiskAndEnlargeBB (GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops) |
void | gluCylinderAndEnlargeBB (GLUquadric *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks) |
void | gluPartialDiskAndEnlargeBB (GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle) |
void | drawBoundingBox () |
void | drawLineBoundingBox () |
void | drawName () |
Protected Attributes | |
OBox | _boundingBox |
TYElement * | _pElement |
L'element metier auquel cet element graphique metier est associe. More... | |
bool | _highlight |
Indique si le highlight est active pour cet element. More... | |
bool | _texture |
Indique si le texturing est active pour cet element. More... | |
bool | _visible |
Inique si l'element est visible. More... | |
bool | _bFirstDisp |
Protected Attributes inherited from IRefCount | |
int | m_refCount |
The reference counter. More... | |
Private Attributes | |
bool | _modified |
Indique si l'element associe a ete modifie. More... | |
bool | _viewOnlyHighlight |
Inique si on affiche la bounding box seule. More... | |
classe graphique pour un element de base
Definition at line 69 of file TYElementGraphic.h.
|
virtual |
Destructeur.
Definition at line 59 of file TYElementGraphic.cpp.
|
protected |
Constructeur.
Definition at line 45 of file TYElementGraphic.cpp.
|
virtual |
Reimplemented in TYBoundaryNoiseMapGraphic, TYSourceLineicGraphic, TYSourcePonctuelleGraphic, TYPolyLineGraphic, TYAltimetrieGraphic, TYRectangularMaillageGraphic, TYGeometryNodeGraphic, TYTerrainGraphic, TYAcousticLineGraphic, TYAcousticVolumeNodeGraphic, TYAcousticCylinderGraphic, TYAcousticFaceSetGraphic, TYAcousticPolygonGraphic, TYAcousticRectangleGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSurfaceNodeGraphic, TYCourbeNiveauGraphic, TYEtageGraphic, TYFaceSetGraphic, TYPlanEauGraphic, TYSegmentGraphic, TYSourceSurfacicGraphic, TYAcousticCircleGraphic, TYAcousticRectangleNodeGraphic, TYAcousticSemiCircleGraphic, TYLinearMaillageGraphic, TYPointControlGraphic, TYPointGraphic, TYPolygonGraphic, TYRectangleGraphic, TYAcousticBoxGraphic, and TYRayGraphic.
Definition at line 383 of file TYElementGraphic.cpp.
|
virtual |
Effectue le trace openGL de l'objet graphique
mode | Gere les modes rendu et select pour le picking. |
Reimplemented in TYBoundaryNoiseMapGraphic, TYSiteNodeGraphic, TYPolyLineGraphic, TYSourceLineicGraphic, TYSourcePonctuelleGraphic, TYRectangularMaillageGraphic, TYAltimetrieGraphic, TYTerrainGraphic, TYAcousticLineGraphic, TYGeometryNodeGraphic, TYProjetGraphic, TYResultatGraphic, TYAcousticCircleGraphic, TYAcousticCylinderGraphic, TYAcousticFaceSetGraphic, TYAcousticPolygonGraphic, TYAcousticRectangleGraphic, TYAcousticRectangleNodeGraphic, TYAcousticSemiCircleGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticVolumeNodeGraphic, TYCalculGraphic, TYCourbeNiveauGraphic, TYEtageGraphic, TYInfrastructureGraphic, TYLinearMaillageGraphic, TYPaletteGraphic, TYPlanEauGraphic, TYPointControlGraphic, TYSegmentGraphic, TYSourceSurfacicGraphic, TYTopographieGraphic, TYEcranGraphic, TYFaceSetGraphic, TYPointGraphic, TYRectangleGraphic, TYAcousticBoxGraphic, TYPanelGraphic, TYPolygonGraphic, and TYRayGraphic.
Definition at line 359 of file TYElementGraphic.cpp.
|
protected |
Definition at line 252 of file TYElementGraphic.cpp.
|
protected |
|
protected |
Definition at line 210 of file TYElementGraphic.cpp.
|
inline |
Get des extremites de la boite englobante de l'objet.
Definition at line 144 of file TYElementGraphic.h.
|
inlinevirtual |
Reimplemented in TYBoundaryNoiseMapGraphic, TYSiteNodeGraphic, TYSourceLineicGraphic, TYAltimetrieGraphic, TYTerrainGraphic, TYAcousticLineGraphic, TYGeometryNodeGraphic, TYProjetGraphic, TYAcousticCylinderGraphic, TYAcousticPolygonGraphic, TYAcousticRectangleGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticVolumeNodeGraphic, TYCalculGraphic, TYCourbeNiveauGraphic, TYEtageGraphic, TYInfrastructureGraphic, TYPlanEauGraphic, TYSourceSurfacicGraphic, TYTopographieGraphic, and TYAcousticBoxGraphic.
Definition at line 147 of file TYElementGraphic.h.
bool TYElementGraphic::getHighlightState | ( | ) |
Retourne l'etat du Highlight.
Definition at line 346 of file TYElementGraphic.cpp.
bool TYElementGraphic::getModified | ( | bool | andReset = false | ) |
Set/Get du flag indiquant si l'element associe a ete modifie.
Definition at line 114 of file TYElementGraphic.cpp.
|
inline |
Retourn l'etat d'affichage de la bounding box seule.
Definition at line 167 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est texture.
Definition at line 139 of file TYElementGraphic.h.
|
inline |
Renvoie l'element associe a cet objet (la methode getElement n'est pas membre de la classe de base TYElementGraphic!).
Definition at line 85 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est visible.
Definition at line 126 of file TYElementGraphic.h.
|
protected |
Definition at line 322 of file TYElementGraphic.cpp.
|
protected |
|
protected |
|
protected |
Definition at line 306 of file TYElementGraphic.cpp.
|
protected |
void TYElementGraphic::highlight | ( | bool | state = true | ) |
Highlight la bounding box de l'objet graphique de l'element metier ou de l'ensemble des objets graphiques le composant.
Definition at line 126 of file TYElementGraphic.cpp.
void TYElementGraphic::setElement | ( | TYElement * | pElt | ) |
Definit l'element associe a cet objet.
Definition at line 63 of file TYElementGraphic.cpp.
|
inline |
Set/Get du flag indiquant si l'element associe a ete modifie.
Definition at line 113 of file TYElementGraphic.h.
void TYElementGraphic::setRecursiveVisible | ( | bool | visible = true | ) |
Set/Get du flag indiquant si l'element est visible recursivement.
Definition at line 370 of file TYElementGraphic.cpp.
|
inline |
Set/Get du flag indiquant si l'element est texture.
Definition at line 135 of file TYElementGraphic.h.
|
inline |
Set/Get du flag indiquant si l'element est visible.
Definition at line 122 of file TYElementGraphic.h.
|
virtual |
Mets a jour l'objet 3D associe a cet objet graphique metier. Remarque : Lorsque cette methode est surchargee, un appel de l'implementation parent (TYElementGraphic::update()) doit etre fait a la fin.
force | Outrepasse l'etat du flag 'modified' et effectue la mise a jour. |
Reimplemented in TYBoundaryNoiseMapGraphic, TYSiteNodeGraphic, TYPolyLineGraphic, TYSourcePonctuelleGraphic, TYRectangularMaillageGraphic, TYSourceLineicGraphic, TYAltimetrieGraphic, TYSegmentGraphic, TYTerrainGraphic, TYAcousticLineGraphic, TYFaceSetGraphic, TYGeometryNodeGraphic, TYProjetGraphic, TYResultatGraphic, TYAcousticCircleGraphic, TYAcousticCylinderGraphic, TYAcousticFaceSetGraphic, TYAcousticPolygonGraphic, TYAcousticRectangleGraphic, TYAcousticRectangleNodeGraphic, TYAcousticSemiCircleGraphic, TYAcousticSemiCylinderGraphic, TYAcousticSurfaceNodeGraphic, TYAcousticVolumeNodeGraphic, TYCalculGraphic, TYCourbeNiveauGraphic, TYEtageGraphic, TYInfrastructureGraphic, TYLinearMaillageGraphic, TYPaletteGraphic, TYPlanEauGraphic, TYPointControlGraphic, TYSourceSurfacicGraphic, TYTopographieGraphic, TYPointGraphic, TYRectangleGraphic, TYPolygonGraphic, TYAcousticBoxGraphic, TYPanelGraphic, and TYRayGraphic.
Definition at line 86 of file TYElementGraphic.cpp.
void TYElementGraphic::updateTree | ( | ) |
Mets a jour le graph de scene. Si l'element a un parent l'update est propage dans le graph.
Definition at line 68 of file TYElementGraphic.cpp.
void TYElementGraphic::viewOnlyHighlight | ( | bool | state = true | ) |
Affiche uniquement la bounding box.
Definition at line 351 of file TYElementGraphic.cpp.
|
protected |
Definition at line 247 of file TYElementGraphic.h.
|
protected |
Definition at line 234 of file TYElementGraphic.h.
|
static |
Indique si les normals doivent etre visible.
Definition at line 222 of file TYElementGraphic.h.
|
static |
Indique si les plafonds doivent etre visible.
Definition at line 225 of file TYElementGraphic.h.
|
static |
Definition at line 185 of file TYElementGraphic.h.
|
protected |
Indique si le highlight est active pour cet element.
Definition at line 239 of file TYElementGraphic.h.
|
private |
Indique si l'element associe a ete modifie.
Definition at line 229 of file TYElementGraphic.h.
|
protected |
L'element metier auquel cet element graphique metier est associe.
Definition at line 236 of file TYElementGraphic.h.
|
protected |
Indique si le texturing est active pour cet element.
Definition at line 242 of file TYElementGraphic.h.
|
private |
Inique si on affiche la bounding box seule.
Definition at line 232 of file TYElementGraphic.h.
|
protected |
Inique si l'element est visible.
Definition at line 245 of file TYElementGraphic.h.