Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Slots | Public Member Functions | Protected Attributes | List of all members
TYBoundaryNoiseMapEditor Class Reference

Creation of a TYBoundaryNoiseMap. More...

#include <TYBoundaryNoiseMapEditor.h>

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

Public Slots

void endBoundaryNoiseMap ()
 Build a BoundaryNoiseMap from an array of points. More...
 
void updateMinimumDensity (double thickness)
 Update the minimum value of the density thanks to the new thickness value. More...
 
bool checkValidity (bool &forceOpened)
 Return true if the polyline is valid and can be built. It also tells if the polyline should be opened. More...
 
void createPropertiesDlg (bool forceOpened)
 Create the properties dialog that will pop up once the user finishes the polyline creation. More...
 
void dialogConfirmed (double height, double thickness, bool closed, double density, bool forceOpened)
 When the user confirms the boundary noise map creation after the properties dialog pop up. More...
 
virtual void slotMousePressed (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 
- Public Slots inherited from TYPolyLineEditor
virtual void connect ()
 
virtual void disconnect ()
 
virtual void init ()
 
virtual void cancel ()
 
virtual void close ()
 
virtual void slotMouseReleased (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 
virtual void slotMouseMoved (int x, int y, Qt::MouseButtons button, Qt::KeyboardModifiers state)
 
virtual void slotKeyPressed (int key)
 
virtual void slotKeyReleased (int key)
 
virtual void slotViewTypeChanged (int view)
 
- Public Slots inherited from TYAbstractSceneEditor
virtual void connect ()
 Connecte cet editor a l'interactor associe. More...
 
virtual void disconnect ()
 Deconnecte cet editor a l'interactor associe. More...
 
virtual void init ()
 Appeler avant l'utilisation de l'editor. More...
 
virtual void cancel ()
 Annule l'action courante de l'editor. More...
 
virtual void close ()
 Appeler apres l'utilisation de l'editor. More...
 
virtual void slotMousePressed (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 Une touche de la souris a ete enfoncee. More...
 
virtual void slotMouseReleased (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 Une touche de la souris a ete relachee. More...
 
virtual void slotMouseDoubleClicked (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 Une touche de la souris a ete double clickee. More...
 
virtual void slotMouseMoved (int x, int y, Qt::MouseButtons button, Qt::KeyboardModifiers state)
 La souris a ete deplacee. More...
 
virtual void slotWheeled (int x, int y, int delta, Qt::KeyboardModifiers state)
 La molette de la souris a ete utilisee. More...
 
virtual void slotKeyPressed (int key)
 Une touche a ete relachee. More...
 
virtual void slotKeyReleased (int key)
 Une touche a ete relachee. More...
 
virtual void slotViewTypeChanged (int view)
 La vue courante du modeler a change. More...
 
virtual void slotMouseEnter ()
 Le curseur de souris est entree dans la widget. More...
 
virtual void slotMouseLeave ()
 Le curseur de souris est sortie dans la widget. More...
 

Public Member Functions

 TYBoundaryNoiseMapEditor (TYSiteModelerFrame *pModeler)
 
 ~TYBoundaryNoiseMapEditor ()
 
- Public Member Functions inherited from TYPolyLineEditor
 TYPolyLineEditor (TYModelerFrame *pModeler)
 
 ~TYPolyLineEditor ()
 
TYTabPointgetSavedPoints ()
 
void setDispDist (bool state)
 
bool getDispDist ()
 
void setPointSize (float size)
 
float getPointSize ()
 
- Public Member Functions inherited from TYAbstractSceneEditor
virtual ~TYAbstractSceneEditor ()
 Destructeur. More...
 
void updateText (QString msg="", int posX=0, int posY=0, bool show=true)
 Mets a jour le texte informatif sur la vue 3D. More...
 
void showText (bool show=true)
 Affiche ou pas le texte informatif sur la vue 3D. More...
 
void setGridMagnStep (float gridMagnStep=1.0)
 Met à jour le pas de la grille magnétique. More...
 

Protected Attributes

QDoubleSpinBox * _pDensitySpinBox
 Density spin box. More...
 
QDoubleSpinBox * _pThicknessSpinBox
 Thickness spin box. More...
 
TabPointsWidget_tabPtsW
 Geometry description. More...
 
- Protected Attributes inherited from TYPolyLineEditor
bool _active
 Indique si cet editor est actif. More...
 
bool _dispDist
 Indique si l'information de distance doit etre affichee ou non. More...
 
TYCameraEditor_pCamEditor
 Un CameraEditor associe a cet editor. More...
 
TYTabPoint _savedPoints
 Tableau pour la sauvegarde des points du mode Save points. More...
 
QList< OGLLineElement * > _OGLLineElementList
 Lignes dans la vue 3D. More...
 
QList< OGLSphereElement * > _OGLSphereElementList
 Table de points openGL. More...
 
OGLLineElement_pOGLLineElement
 La ligne courante. More...
 
float _pointSize
 Taille pour la representation des points. More...
 
bool _shiftOn
 Indique si le bouton Shift est enfonce. More...
 
- Protected Attributes inherited from TYAbstractSceneEditor
TYModelerFrame_pModeler
 Le modeler associe a cet editor. More...
 
double _gridMagnStep
 Pas de la grille magnétique de positionnement. More...
 
TYRenderWindowInteractor_pInteractor
 La vue graphique associee a cet editor. More...
 
OGLTextElement_pOGLTextElement
 Affichage du texte 2D sur la vue 3D. More...
 

Additional Inherited Members

- Signals inherited from TYPolyLineEditor
void endedSavingPoints ()
 
- Static Public Member Functions inherited from TYAbstractSceneEditor
static void snapToGrid (float &x, float &y, float &z, float &gridMagnStep)
 Methode utilitaire qui adapte les coordonnees d'un point pour que celui-ci soit aligne avec la grille imaginaire de positionnement. More...
 
static void snapToGrid (double &x, double &y, double &z, double &gridMagnStep)
 Methode utilitaire qui adapte les coordonnees d'un point pour que celui-ci soit aligne avec la grille imaginaire de positionnement. More...
 
- Protected Slots inherited from TYPolyLineEditor
void addPoint (int x, int y)
 
bool removeLastPoint ()
 
bool updateMovingLine (int x, int y)
 
void validatePoint (TYPoint &pt)
 
- Protected Member Functions inherited from TYAbstractSceneEditor
 TYAbstractSceneEditor (TYModelerFrame *pModeler)
 Constructeur par defaut. More...
 
void displayToWorld (double x, double y, double z, double *worldPoint)
 Methode utilitaire pour convertir un point en coordonnees ecran en coordonnees globale. More...
 
void worldToDisplay (double x, double y, double z, double *displayPoint)
 Methode utilitaire pour convertir un point en coordonnees globale en coordonnees ecran. More...
 
void refreshSiteFrame ()
 Rafraichit l'arborescence du TYSiteFrame. More...
 
void refreshProjectFrame ()
 Rafraichit l'arborescence du TYProjectFrame. More...
 
void updateSiteFrame ()
 Reconstruit l'arborescence du TYSiteFrame. More...
 

Detailed Description

Creation of a TYBoundaryNoiseMap.

Definition at line 45 of file TYBoundaryNoiseMapEditor.h.

Constructor & Destructor Documentation

◆ TYBoundaryNoiseMapEditor()

TYBoundaryNoiseMapEditor::TYBoundaryNoiseMapEditor ( TYSiteModelerFrame pModeler)

Definition at line 58 of file TYBoundaryNoiseMapEditor.cpp.

Here is the call graph for this function:

◆ ~TYBoundaryNoiseMapEditor()

TYBoundaryNoiseMapEditor::~TYBoundaryNoiseMapEditor ( )

Definition at line 65 of file TYBoundaryNoiseMapEditor.cpp.

Member Function Documentation

◆ checkValidity

bool TYBoundaryNoiseMapEditor::checkValidity ( bool &  forceOpened)
slot

Return true if the polyline is valid and can be built. It also tells if the polyline should be opened.

Parameters
forceOpenedIf the user will have the choice between a closed/opened polyline.
Returns
True if the polyline can be created.

Definition at line 78 of file TYBoundaryNoiseMapEditor.cpp.

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

◆ createPropertiesDlg

void TYBoundaryNoiseMapEditor::createPropertiesDlg ( bool  forceOpened)
slot

Create the properties dialog that will pop up once the user finishes the polyline creation.

Definition at line 128 of file TYBoundaryNoiseMapEditor.cpp.

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

◆ dialogConfirmed

void TYBoundaryNoiseMapEditor::dialogConfirmed ( double  height,
double  thickness,
bool  closed,
double  density,
bool  forceOpened 
)
slot

When the user confirms the boundary noise map creation after the properties dialog pop up.

XXX Ticket #644892. Check if the polyline hasn't been deleted by the TYPolyLineEditor::close() function

Definition at line 230 of file TYBoundaryNoiseMapEditor.cpp.

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

◆ endBoundaryNoiseMap

void TYBoundaryNoiseMapEditor::endBoundaryNoiseMap ( )
slot

Build a BoundaryNoiseMap from an array of points.

Definition at line 67 of file TYBoundaryNoiseMapEditor.cpp.

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

◆ slotMousePressed

void TYBoundaryNoiseMapEditor::slotMousePressed ( int  x,
int  y,
Qt::MouseButton  button,
Qt::KeyboardModifiers  state 
)
virtualslot

Definition at line 285 of file TYBoundaryNoiseMapEditor.cpp.

Here is the call graph for this function:

◆ updateMinimumDensity

void TYBoundaryNoiseMapEditor::updateMinimumDensity ( double  thickness)
slot

Update the minimum value of the density thanks to the new thickness value.

Parameters
thicknessThe value of thickness to be tested

Definition at line 279 of file TYBoundaryNoiseMapEditor.cpp.

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

Member Data Documentation

◆ _pDensitySpinBox

QDoubleSpinBox* TYBoundaryNoiseMapEditor::_pDensitySpinBox
protected

Density spin box.

Definition at line 85 of file TYBoundaryNoiseMapEditor.h.

◆ _pThicknessSpinBox

QDoubleSpinBox* TYBoundaryNoiseMapEditor::_pThicknessSpinBox
protected

Thickness spin box.

Definition at line 88 of file TYBoundaryNoiseMapEditor.h.

◆ _tabPtsW

TabPointsWidget* TYBoundaryNoiseMapEditor::_tabPtsW
protected

Geometry description.

Definition at line 91 of file TYBoundaryNoiseMapEditor.h.


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