Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TYElementPicker Class Reference

gestion des elements selectionnes par picking More...

#include <TYElementPicker.h>

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

Public Slots

bool pick (int x, int y)
 Effectue un picking en (x, y). More...
 
void updateParents (TYElement *pElt)
 Parcours les parents depuis le dernier element picke et emets les signaux correcpondants. More...
 
void highlightElement (TYElement *pElt)
 Dessine la boite englobante de l'element passe. More...
 
void reset ()
 Retourne dans son etat initial. More...
 

Signals

void elementPicked (TYElement *pElt)
 Indique qu'un element a ete picke, sans connaitre son type. Celui-ci sera de type "bas niveau". More...
 
void highestParentPicked (TYElement *pElt)
 Indique qu'un element parent a ete picke, ce sera le dernier parent de l'element de base picke. Celui-ci sera de type "haut niveau". More...
 
void elementCollectionPicked (std::shared_ptr< LPTYElementArray > pElts)
 Indique qu'un element a ete picke, sans connaitre son type. La collection d'elements pickes est composee d'au minimum l'elemenet picke puis de sa famille (parent, parent du parent...). More...
 
void pointPicked (TYElement *pElt)
 
void pointCalculPicked (TYElement *pElt)
 
void pointControlPicked (TYElement *pElt)
 
void terrainPicked (TYElement *pElt)
 
void planEauPicked (TYElement *pElt)
 
void courbeNiveauPicked (TYElement *pElt)
 
void sourcePonctuellePicked (TYElement *pElt)
 
void acousticLinePicked (TYElement *pElt)
 
void reseauTransportPicked (TYElement *pElt)
 
void routePicked (TYElement *pElt)
 
void coursEauPicked (TYElement *pElt)
 
void acousticRectanglePicked (TYElement *pElt)
 
void murElementPicked (TYElement *pElt)
 
void dallePicked (TYElement *pElt)
 
void acousticCirclePicked (TYElement *pElt)
 
void acousticSemiCirclePicked (TYElement *pElt)
 
void acousticCylinderPicked (TYElement *pElt)
 
void acousticSemiCylinderPicked (TYElement *pElt)
 
void maillagePicked (TYElement *pElt)
 
void rectangularMaillagePicked (TYElement *pElt)
 
void linearMaillagePicked (TYElement *pElt)
 
void acousticRectangleNodePicked (TYElement *pElt)
 
void murPicked (TYElement *pElt)
 
void acousticBoxPicked (TYElement *pElt)
 
void acousticVolumeNodePicked (TYElement *pElt)
 
void etagePicked (TYElement *pElt)
 
void machinePicked (TYElement *pElt)
 
void batimentPicked (TYElement *pElt)
 
void topographiePicked (TYElement *pElt)
 
void sitePicked (TYElement *pElt)
 
void siteNodePicked (TYElement *pElt)
 
void acousticFaceSetPicked (TYElement *pElt)
 
void ecranPicked (TYElement *pElt)
 

Public Member Functions

 TYElementPicker (TYModelerFrame *pModeler)
 
 ~TYElementPicker ()
 
TYElementgetLastPickedElement ()
 Retourne le dernier element picke. More...
 

Protected Member Functions

bool checkType (TYElement *pElt)
 Teste le type de l'element passe et emet le signal correspondant au type, avec en parametre l'element et sa position dans la collection du picking courant. More...
 
TYPointCalculfindPointCalculOnMaillage (TYMaillage *pMaillage)
 Effectue un picking sur un maillage. More...
 

Protected Attributes

TYModelerFrame_pModeler
 Le modeler dans lequel on effectue le picking. More...
 
TYElement_pLastPickedElt
 Le dernier element picke. More...
 
LPTYElementGraphic _pHighlightedGraphicObject
 Pointeur sur le dernier objet graphique highlighte. More...
 
int _x
 Position courante en x. More...
 
int _y
 Position courante en y. More...
 

Detailed Description

gestion des elements selectionnes par picking

Definition at line 44 of file TYElementPicker.h.

Constructor & Destructor Documentation

◆ TYElementPicker()

TYElementPicker::TYElementPicker ( TYModelerFrame pModeler)

Definition at line 43 of file TYElementPicker.cpp.

◆ ~TYElementPicker()

TYElementPicker::~TYElementPicker ( )

Definition at line 56 of file TYElementPicker.cpp.

Member Function Documentation

◆ acousticBoxPicked

void TYElementPicker::acousticBoxPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticCirclePicked

void TYElementPicker::acousticCirclePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticCylinderPicked

void TYElementPicker::acousticCylinderPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticFaceSetPicked

void TYElementPicker::acousticFaceSetPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticLinePicked

void TYElementPicker::acousticLinePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticRectangleNodePicked

void TYElementPicker::acousticRectangleNodePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticRectanglePicked

void TYElementPicker::acousticRectanglePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticSemiCirclePicked

void TYElementPicker::acousticSemiCirclePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticSemiCylinderPicked

void TYElementPicker::acousticSemiCylinderPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ acousticVolumeNodePicked

void TYElementPicker::acousticVolumeNodePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ batimentPicked

void TYElementPicker::batimentPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ checkType()

bool TYElementPicker::checkType ( TYElement pElt)
protected

Teste le type de l'element passe et emet le signal correspondant au type, avec en parametre l'element et sa position dans la collection du picking courant.

Parameters
pEltUn element a tester.
Returns
true si le type de l'element a ete trouve; false sinon.

Definition at line 258 of file TYElementPicker.cpp.

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

◆ courbeNiveauPicked

void TYElementPicker::courbeNiveauPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ coursEauPicked

void TYElementPicker::coursEauPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ dallePicked

void TYElementPicker::dallePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ ecranPicked

void TYElementPicker::ecranPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ elementCollectionPicked

void TYElementPicker::elementCollectionPicked ( std::shared_ptr< LPTYElementArray pElts)
signal

Indique qu'un element a ete picke, sans connaitre son type. La collection d'elements pickes est composee d'au minimum l'elemenet picke puis de sa famille (parent, parent du parent...).

Parameters
pEltsL'element picke et ses parents.
Here is the caller graph for this function:

◆ elementPicked

TYElementPicker::elementPicked ( TYElement pElt)
signal

Indique qu'un element a ete picke, sans connaitre son type. Celui-ci sera de type "bas niveau".

Parameters
pEltL'element picke.
Here is the caller graph for this function:

◆ etagePicked

void TYElementPicker::etagePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ findPointCalculOnMaillage()

TYPointCalcul * TYElementPicker::findPointCalculOnMaillage ( TYMaillage pMaillage)
protected

Effectue un picking sur un maillage.

Parameters
pMaillageUn maillage a tester.
Returns
Le point de calcul picke ou NULL.

Definition at line 409 of file TYElementPicker.cpp.

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

◆ getLastPickedElement()

TYElement * TYElementPicker::getLastPickedElement ( )
inline

Retourne le dernier element picke.

Definition at line 56 of file TYElementPicker.h.

Here is the call graph for this function:

◆ highestParentPicked

void TYElementPicker::highestParentPicked ( TYElement pElt)
signal

Indique qu'un element parent a ete picke, ce sera le dernier parent de l'element de base picke. Celui-ci sera de type "haut niveau".

Parameters
pEltL'element picke.
Here is the caller graph for this function:

◆ highlightElement

void TYElementPicker::highlightElement ( TYElement pElt)
slot

Dessine la boite englobante de l'element passe.

Definition at line 165 of file TYElementPicker.cpp.

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

◆ linearMaillagePicked

void TYElementPicker::linearMaillagePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ machinePicked

void TYElementPicker::machinePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ maillagePicked

void TYElementPicker::maillagePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ murElementPicked

void TYElementPicker::murElementPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ murPicked

void TYElementPicker::murPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ pick

bool TYElementPicker::pick ( int  x,
int  y 
)
slot

Effectue un picking en (x, y).

Definition at line 60 of file TYElementPicker.cpp.

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

◆ planEauPicked

void TYElementPicker::planEauPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ pointCalculPicked

void TYElementPicker::pointCalculPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ pointControlPicked

void TYElementPicker::pointControlPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ pointPicked

void TYElementPicker::pointPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ rectangularMaillagePicked

void TYElementPicker::rectangularMaillagePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ reseauTransportPicked

void TYElementPicker::reseauTransportPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ reset

void TYElementPicker::reset ( )
slot

Retourne dans son etat initial.

Definition at line 197 of file TYElementPicker.cpp.

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

◆ routePicked

void TYElementPicker::routePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ siteNodePicked

void TYElementPicker::siteNodePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ sitePicked

void TYElementPicker::sitePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ sourcePonctuellePicked

void TYElementPicker::sourcePonctuellePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ terrainPicked

void TYElementPicker::terrainPicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ topographiePicked

void TYElementPicker::topographiePicked ( TYElement pElt)
signal
Here is the caller graph for this function:

◆ updateParents

void TYElementPicker::updateParents ( TYElement pElt)
slot

Parcours les parents depuis le dernier element picke et emets les signaux correcpondants.

Definition at line 211 of file TYElementPicker.cpp.

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

Member Data Documentation

◆ _pHighlightedGraphicObject

LPTYElementGraphic TYElementPicker::_pHighlightedGraphicObject
protected

Pointeur sur le dernier objet graphique highlighte.

Definition at line 181 of file TYElementPicker.h.

◆ _pLastPickedElt

TYElement* TYElementPicker::_pLastPickedElt
protected

Le dernier element picke.

Definition at line 178 of file TYElementPicker.h.

◆ _pModeler

TYModelerFrame* TYElementPicker::_pModeler
protected

Le modeler dans lequel on effectue le picking.

Definition at line 175 of file TYElementPicker.h.

◆ _x

int TYElementPicker::_x
protected

Position courante en x.

Definition at line 184 of file TYElementPicker.h.

◆ _y

int TYElementPicker::_y
protected

Position courante en y.

Definition at line 186 of file TYElementPicker.h.


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