Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TYElementGraphic Class Reference

classe graphique pour un element de base More...

#include <TYElementGraphic.h>

Inheritance diagram for TYElementGraphic:
Inheritance graph
[legend]
Collaboration diagram for TYElementGraphic:
Collaboration graph
[legend]

Public Member Functions

virtual ~TYElementGraphic ()
 
void setElement (TYElement *pElt)
 
TYElementgetTYElement ()
 
const TYElementgetTYElement () const
 
void updateTree ()
 
virtual void update (bool force=false)
 
virtual void display (TYRenderContext &renderContext)
 
void setModified (bool modified=true)
 
bool getModified () const
 
void setVisible (bool visible=true)
 
bool getVisible () const
 
void setTexture (bool state=true)
 
bool getTexture ()
 
OBox boundingBox () const
 
virtual OBox computeBoundingBox () const
 
virtual void getChilds (TYListPtrTYElementGraphic &childs, bool recursif=true)
 
void getChilds (TYListPtrConstTYElementGraphic &childs, bool recursif=true) const
 
void setBoundingBoxVisible (bool state=true)
 
bool isBoundingBoxVisible () const
 
void setOnlyBoundingBox (bool state=true)
 
bool getOnlyBoundingBox () const
 
virtual void collectMeshInstances (std::vector< OGLMeshInstance > &meshInstances, TYRenderContext *renderContext) const
 
const TYGeometryNodeGraphicnearestGeoNode () const
 
QMatrix4x4 globalMatrix () const
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Static Public Attributes

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 drawName (TYRenderContext &renderContext)
 
void invalidateBoundingBox ()
 

Protected Attributes

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...
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Private Attributes

bool _boundingBoxDirty
 
bool _modified
 Indique si l'element associe a ete modifie. More...
 
bool _viewOnlyHighlight
 Inique si on affiche la bounding box seule. More...
 
OBox _boundingBox
 

Detailed Description

classe graphique pour un element de base

Definition at line 65 of file TYElementGraphic.h.

Constructor & Destructor Documentation

◆ ~TYElementGraphic()

TYElementGraphic::~TYElementGraphic ( )
virtual

Destructeur.

Definition at line 60 of file TYElementGraphic.cpp.

◆ TYElementGraphic()

TYElementGraphic::TYElementGraphic ( TYElement pElt)
protected

Constructeur.

Definition at line 46 of file TYElementGraphic.cpp.

Member Function Documentation

◆ boundingBox()

OBox TYElementGraphic::boundingBox ( ) const

Get des extremites de la boite englobante de l'objet.

Definition at line 219 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ collectMeshInstances()

void TYElementGraphic::collectMeshInstances ( std::vector< OGLMeshInstance > &  meshInstances,
TYRenderContext renderContext 
) const
virtual

Collect mesh instances

Reimplemented in TYTopographieGraphic, TYSiteNodeGraphic, TYCourbeNiveauGraphic, TYAltimetrieGraphic, TYAcousticRectangleGraphic, and TYPlanEauGraphic.

Definition at line 289 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ computeBoundingBox()

OBox TYElementGraphic::computeBoundingBox ( ) const
virtual

◆ display()

void TYElementGraphic::display ( TYRenderContext renderContext)
virtual

◆ displayNormal()

void TYElementGraphic::displayNormal ( OVector3D  normal,
OPoint3D  p1 
)
protected

Definition at line 120 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ drawName()

void TYElementGraphic::drawName ( TYRenderContext renderContext)
protected

Definition at line 137 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChilds() [1/2]

void TYElementGraphic::getChilds ( TYListPtrConstTYElementGraphic childs,
bool  recursif = true 
) const
inline

Store each child of the box in childs. If recursif is true, also store the children of each child.

Definition at line 179 of file TYElementGraphic.h.

Here is the call graph for this function:

◆ getChilds() [2/2]

virtual void TYElementGraphic::getChilds ( TYListPtrTYElementGraphic childs,
bool  recursif = true 
)
inlinevirtual

◆ getModified()

bool TYElementGraphic::getModified ( ) const

Set/Get du flag indiquant si l'element associe a ete modifie.

Definition at line 109 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ getOnlyBoundingBox()

bool TYElementGraphic::getOnlyBoundingBox ( ) const

Should we only show the bounding box

Definition at line 197 of file TYElementGraphic.cpp.

◆ getTexture()

bool TYElementGraphic::getTexture ( )
inline

Set/Get du flag indiquant si l'element est texture.

Definition at line 154 of file TYElementGraphic.h.

◆ getTYElement() [1/2]

TYElement* TYElementGraphic::getTYElement ( )
inline

Renvoie l'element associe a cet objet (la methode getElement n'est pas membre de la classe de base TYElementGraphic!).

Definition at line 82 of file TYElementGraphic.h.

Here is the caller graph for this function:

◆ getTYElement() [2/2]

const TYElement* TYElementGraphic::getTYElement ( ) const
inline

Renvoie l'element associe a cet objet (la methode getElement n'est pas membre de la classe de base TYElementGraphic!).

Definition at line 91 of file TYElementGraphic.h.

◆ getVisible()

bool TYElementGraphic::getVisible ( ) const
inline

Set/Get du flag indiquant si l'element est visible.

Definition at line 139 of file TYElementGraphic.h.

Here is the caller graph for this function:

◆ globalMatrix()

QMatrix4x4 TYElementGraphic::globalMatrix ( ) const

Get the global (relative to project root) matrix of this element

Definition at line 312 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ invalidateBoundingBox()

void TYElementGraphic::invalidateBoundingBox ( )
protected

Definition at line 261 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBoundingBoxVisible()

bool TYElementGraphic::isBoundingBoxVisible ( ) const

Retourne true si la bounding box doit etre affiche

Definition at line 192 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ nearestGeoNode()

const TYGeometryNodeGraphic * TYElementGraphic::nearestGeoNode ( ) const

Get the global the neareset geometry node parent up in the tree

Definition at line 292 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setBoundingBoxVisible()

void TYElementGraphic::setBoundingBoxVisible ( bool  state = true)

Afficher ou non la bounding box de l'objet graphique de l'element metier ou de l'ensemble des objets graphiques le composant.

Definition at line 114 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ setElement()

void TYElementGraphic::setElement ( TYElement pElt)

Definit l'element associe a cet objet.

Definition at line 62 of file TYElementGraphic.cpp.

Here is the caller graph for this function:

◆ setModified()

void TYElementGraphic::setModified ( bool  modified = true)

Set/Get du flag indiquant si l'element associe a ete modifie.

Definition at line 321 of file TYElementGraphic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOnlyBoundingBox()

void TYElementGraphic::setOnlyBoundingBox ( bool  state = true)

Affiche uniquement la bounding box.

Definition at line 202 of file TYElementGraphic.cpp.

Here is the call graph for this function:

◆ setTexture()

void TYElementGraphic::setTexture ( bool  state = true)
inline

Set/Get du flag indiquant si l'element est texture.

Definition at line 147 of file TYElementGraphic.h.

◆ setVisible()

void TYElementGraphic::setVisible ( bool  visible = true)
inline

Set/Get du flag indiquant si l'element est visible.

Definition at line 132 of file TYElementGraphic.h.

Here is the caller graph for this function:

◆ update()

void TYElementGraphic::update ( bool  force = false)
virtual

◆ updateTree()

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 67 of file TYElementGraphic.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _boundingBox

OBox TYElementGraphic::_boundingBox
mutableprivate

Definition at line 270 of file TYElementGraphic.h.

◆ _boundingBoxDirty

bool TYElementGraphic::_boundingBoxDirty
mutableprivate

Definition at line 261 of file TYElementGraphic.h.

◆ _gDrawNormals

bool TYElementGraphic::_gDrawNormals = false
static

Indique si les normals doivent etre visible.

Definition at line 254 of file TYElementGraphic.h.

◆ _gDrawPlafond

bool TYElementGraphic::_gDrawPlafond = true
static

Indique si les plafonds doivent etre visible.

Definition at line 257 of file TYElementGraphic.h.

◆ _highlight

bool TYElementGraphic::_highlight
protected

Indique si le highlight est active pour cet element.

Definition at line 277 of file TYElementGraphic.h.

◆ _modified

bool TYElementGraphic::_modified
private

Indique si l'element associe a ete modifie.

Definition at line 264 of file TYElementGraphic.h.

◆ _pElement

TYElement* TYElementGraphic::_pElement
protected

L'element metier auquel cet element graphique metier est associe.

Definition at line 274 of file TYElementGraphic.h.

◆ _texture

bool TYElementGraphic::_texture
protected

Indique si le texturing est active pour cet element.

Definition at line 280 of file TYElementGraphic.h.

◆ _viewOnlyHighlight

bool TYElementGraphic::_viewOnlyHighlight
private

Inique si on affiche la bounding box seule.

Definition at line 267 of file TYElementGraphic.h.

◆ _visible

bool TYElementGraphic::_visible
protected

Inique si l'element est visible.

Definition at line 283 of file TYElementGraphic.h.


The documentation for this class was generated from the following files: