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

classe de l'objet IHM pour un spectre More...

#include <TYSpectreWidget.h>

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

Public Types

using TYSpectreFormProvider = TYSpectreForm(*)()
 
using TYSpectrePondProvider = QString(*)()
 

Public Slots

virtual void updateContent ()
 
virtual void apply ()
 
void exportCsv ()
 
void importCsv ()
 
void tabValueChanged (int row, int col)
 
void changeOctave ()
 
void changePonderation ()
 
void changeType ()
 
void setContentEnabled (bool state)
 
- Public Slots inherited from TYWidget
virtual void updateContent ()=0
 
virtual void apply ()=0
 
virtual void reject ()
 

Public Member Functions

 TYSpectreWidget (TYSpectre *pElement, QWidget *_pParent=NULL)
 
virtual ~TYSpectreWidget ()
 
void setPrecision (const int &prec)
 
int getPrecision ()
 
const int getPrecision () const
 
void resetTab ()
 Initialisation du tableau. More...
 
void spectreToTableau (TYSpectre *pSpectre)
 Mise a jour du tableau depuis un spectre. More...
 
void tableauToSpectre (TYSpectre *pSpectre)
 Mise a jour d'un spectre depuis le tableau. More...
 
void spectre (TYSpectre *pSpectre)
 Construit un spectre a partir du contenu du widget. More...
 
- Public Member Functions inherited from TYWidget
 TYWidget (TYElement *pElement, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
 
virtual ~TYWidget ()
 
void setElement (TYElement *pElement)
 

Static Public Member Functions

static void setSpectreFormProvider (TYSpectreFormProvider p)
 
static TYSpectreFormProvider spectreFormProvider ()
 
static void setSpectrePondProvider (TYSpectrePondProvider p)
 
static TYSpectrePondProvider spectrePondProvider ()
 
- Static Public Member Functions inherited from TYWidget
static int edit (TYElement *pElement, QWidget *pParent=NULL)
 
static QString getDisplayName (TYElement *pElt)
 

Public Attributes

TYSpectre_pTmpSpectre
 

Protected Attributes

QGroupBox * _groupBox
 
QTreeWidget * _listViewTabSp
 
QLineEdit * _lineEditRq
 
QLabel * _labeRq
 
QComboBox * _comboBoxType
 
QLabel * _labelType
 
QTabWidget * _tabWidget
 
QTableWidget * _tableau
 
QPushButton * _pushButtonExport
 
QPushButton * _pushButtonImport
 
QRadioButton * _radioButtonTiers
 
QRadioButton * _radioButtonOctave
 
QRadioButton * _radioButtonPondZ
 
QRadioButton * _radioButtonPondA
 
QButtonGroup * _formButtonGroup
 
QButtonGroup * _pondButtonGroup
 
TYHistoWidget_histoWidget
 
TYCourbeWidget_courbeWidget
 
QGridLayout * _spectreLayout
 
QGridLayout * _groupBoxLayout
 
TYElementWidget_elmW
 
int _nbFreq
 
QPrinter * _printer
 
bool _isModified
 
int _precision
 Precision d'affichage des spectres. More...
 
- Protected Attributes inherited from TYWidget
TYElement_pElement
 
bool _locked
 

Private Member Functions

void applyInitialFormFromProvider ()
 Applique la forme initiale du spectre fournie par le provider. More...
 
void applyInitialPondFromProvider ()
 Applique la pondération initiale du spectre fournie par le provider. More...
 

Private Attributes

bool _isDrawing
 
QString _etatSpectre
 
QString _pondSpectre
 

Static Private Attributes

static TYSpectreFormProvider s_formProvider = nullptr
 
static TYSpectrePondProvider s_pondProvider = nullptr
 
static bool _warningConvertingTOtoOctShown = false
 

Additional Inherited Members

- Signals inherited from TYWidget
void modified ()
 

Detailed Description

classe de l'objet IHM pour un spectre

Definition at line 57 of file TYSpectreWidget.h.

Member Typedef Documentation

◆ TYSpectreFormProvider

Fournisseur global de la d’affichage de la forme du spectre au démarrage

Definition at line 121 of file TYSpectreWidget.h.

◆ TYSpectrePondProvider

Fournisseur global de la d’affichage de la pondération du spectre au démarrage

Definition at line 128 of file TYSpectreWidget.h.

Constructor & Destructor Documentation

◆ TYSpectreWidget()

TYSpectreWidget::TYSpectreWidget ( TYSpectre pElement,
QWidget *  _pParent = NULL 
)

Constructeur.

Definition at line 88 of file TYSpectreWidget.cpp.

Here is the call graph for this function:

◆ ~TYSpectreWidget()

TYSpectreWidget::~TYSpectreWidget ( )
virtual

Destructeur.

Definition at line 235 of file TYSpectreWidget.cpp.

Member Function Documentation

◆ apply

void TYSpectreWidget::apply ( )
virtualslot

Definition at line 288 of file TYSpectreWidget.cpp.

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

◆ applyInitialFormFromProvider()

void TYSpectreWidget::applyInitialFormFromProvider ( )
private

Applique la forme initiale du spectre fournie par le provider.

Definition at line 810 of file TYSpectreWidget.cpp.

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

◆ applyInitialPondFromProvider()

void TYSpectreWidget::applyInitialPondFromProvider ( )
private

Applique la pondération initiale du spectre fournie par le provider.

Definition at line 836 of file TYSpectreWidget.cpp.

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

◆ changeOctave

void TYSpectreWidget::changeOctave ( )
slot

Gere le passage de tiers d'octave a octave et inversement.

Definition at line 572 of file TYSpectreWidget.cpp.

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

◆ changePonderation

void TYSpectreWidget::changePonderation ( )
slot

Gere le passage de pondération Z à pondération A et inversement.

Definition at line 640 of file TYSpectreWidget.cpp.

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

◆ changeType

void TYSpectreWidget::changeType ( )
slot

Gere le changement de type.

Definition at line 691 of file TYSpectreWidget.cpp.

Here is the call graph for this function:

◆ exportCsv

void TYSpectreWidget::exportCsv ( )
slot

Fonction d'export vers un fichier csv.

Definition at line 520 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ getPrecision() [1/2]

int TYSpectreWidget::getPrecision ( )
inline

Definition at line 81 of file TYSpectreWidget.h.

◆ getPrecision() [2/2]

const int TYSpectreWidget::getPrecision ( ) const
inline

Definition at line 85 of file TYSpectreWidget.h.

◆ importCsv

void TYSpectreWidget::importCsv ( )
slot

Fonction d'import depuis un fichier csv.

Definition at line 361 of file TYSpectreWidget.cpp.

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

◆ resetTab()

void TYSpectreWidget::resetTab ( )

Initialisation du tableau.

Definition at line 705 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ setContentEnabled

void TYSpectreWidget::setContentEnabled ( bool  state)
slot

Permet ou non de modifier le contenu de la widget.

Definition at line 344 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ setPrecision()

void TYSpectreWidget::setPrecision ( const int &  prec)
inline

Get/Set de la precision d'affichage

Definition at line 77 of file TYSpectreWidget.h.

◆ setSpectreFormProvider()

void TYSpectreWidget::setSpectreFormProvider ( TYSpectreFormProvider  p)
static

Definition at line 62 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ setSpectrePondProvider()

void TYSpectreWidget::setSpectrePondProvider ( TYSpectrePondProvider  p)
static

Definition at line 77 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ spectre()

void TYSpectreWidget::spectre ( TYSpectre pSpectre)

Construit un spectre a partir du contenu du widget.

A la difference difference de la methode tableauToSpectre, cette methode cree un spectre pleinement fonctionnel

Parameters
pSpectrePointeur sur un TYSpectre

Definition at line 795 of file TYSpectreWidget.cpp.

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

◆ spectreFormProvider()

TYSpectreWidget::TYSpectreFormProvider TYSpectreWidget::spectreFormProvider ( )
static

Definition at line 67 of file TYSpectreWidget.cpp.

◆ spectrePondProvider()

TYSpectreWidget::TYSpectrePondProvider TYSpectreWidget::spectrePondProvider ( )
static

Definition at line 81 of file TYSpectreWidget.cpp.

◆ spectreToTableau()

void TYSpectreWidget::spectreToTableau ( TYSpectre pSpectre)

Mise a jour du tableau depuis un spectre.

Parameters
pSpectrePointeur sur un TYSpectre

Definition at line 717 of file TYSpectreWidget.cpp.

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

◆ tableauToSpectre()

void TYSpectreWidget::tableauToSpectre ( TYSpectre pSpectre)

Mise a jour d'un spectre depuis le tableau.

Parameters
pSpectrePointeur sur un TYSpectre

Definition at line 757 of file TYSpectreWidget.cpp.

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

◆ tabValueChanged

void TYSpectreWidget::tabValueChanged ( int  row,
int  col 
)
slot

Modification du tableau de valeurs.

Definition at line 308 of file TYSpectreWidget.cpp.

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

◆ updateContent

void TYSpectreWidget::updateContent ( )
virtualslot

Definition at line 240 of file TYSpectreWidget.cpp.

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

Member Data Documentation

◆ _comboBoxType

QComboBox* TYSpectreWidget::_comboBoxType
protected

Definition at line 177 of file TYSpectreWidget.h.

◆ _courbeWidget

TYCourbeWidget* TYSpectreWidget::_courbeWidget
protected

Definition at line 190 of file TYSpectreWidget.h.

◆ _elmW

TYElementWidget* TYSpectreWidget::_elmW
protected

Definition at line 196 of file TYSpectreWidget.h.

◆ _etatSpectre

QString TYSpectreWidget::_etatSpectre
private

Definition at line 211 of file TYSpectreWidget.h.

◆ _formButtonGroup

QButtonGroup* TYSpectreWidget::_formButtonGroup
protected

Definition at line 187 of file TYSpectreWidget.h.

◆ _groupBox

QGroupBox* TYSpectreWidget::_groupBox
protected

Definition at line 173 of file TYSpectreWidget.h.

◆ _groupBoxLayout

QGridLayout* TYSpectreWidget::_groupBoxLayout
protected

Definition at line 194 of file TYSpectreWidget.h.

◆ _histoWidget

TYHistoWidget* TYSpectreWidget::_histoWidget
protected

Definition at line 189 of file TYSpectreWidget.h.

◆ _isDrawing

bool TYSpectreWidget::_isDrawing
private

Definition at line 210 of file TYSpectreWidget.h.

◆ _isModified

bool TYSpectreWidget::_isModified
protected

Definition at line 204 of file TYSpectreWidget.h.

◆ _labelType

QLabel* TYSpectreWidget::_labelType
protected

Definition at line 178 of file TYSpectreWidget.h.

◆ _labeRq

QLabel* TYSpectreWidget::_labeRq
protected

Definition at line 176 of file TYSpectreWidget.h.

◆ _lineEditRq

QLineEdit* TYSpectreWidget::_lineEditRq
protected

Definition at line 175 of file TYSpectreWidget.h.

◆ _listViewTabSp

QTreeWidget* TYSpectreWidget::_listViewTabSp
protected

Definition at line 174 of file TYSpectreWidget.h.

◆ _nbFreq

int TYSpectreWidget::_nbFreq
protected

Definition at line 197 of file TYSpectreWidget.h.

◆ _pondButtonGroup

QButtonGroup* TYSpectreWidget::_pondButtonGroup
protected

Definition at line 188 of file TYSpectreWidget.h.

◆ _pondSpectre

QString TYSpectreWidget::_pondSpectre
private

Definition at line 212 of file TYSpectreWidget.h.

◆ _precision

int TYSpectreWidget::_precision
protected

Precision d'affichage des spectres.

Definition at line 207 of file TYSpectreWidget.h.

◆ _printer

QPrinter* TYSpectreWidget::_printer
protected

Definition at line 198 of file TYSpectreWidget.h.

◆ _pTmpSpectre

TYSpectre* TYSpectreWidget::_pTmpSpectre

Definition at line 201 of file TYSpectreWidget.h.

◆ _pushButtonExport

QPushButton* TYSpectreWidget::_pushButtonExport
protected

Definition at line 181 of file TYSpectreWidget.h.

◆ _pushButtonImport

QPushButton* TYSpectreWidget::_pushButtonImport
protected

Definition at line 182 of file TYSpectreWidget.h.

◆ _radioButtonOctave

QRadioButton* TYSpectreWidget::_radioButtonOctave
protected

Definition at line 184 of file TYSpectreWidget.h.

◆ _radioButtonPondA

QRadioButton* TYSpectreWidget::_radioButtonPondA
protected

Definition at line 186 of file TYSpectreWidget.h.

◆ _radioButtonPondZ

QRadioButton* TYSpectreWidget::_radioButtonPondZ
protected

Definition at line 185 of file TYSpectreWidget.h.

◆ _radioButtonTiers

QRadioButton* TYSpectreWidget::_radioButtonTiers
protected

Definition at line 183 of file TYSpectreWidget.h.

◆ _spectreLayout

QGridLayout* TYSpectreWidget::_spectreLayout
protected

Definition at line 193 of file TYSpectreWidget.h.

◆ _tableau

QTableWidget* TYSpectreWidget::_tableau
protected

Definition at line 180 of file TYSpectreWidget.h.

◆ _tabWidget

QTabWidget* TYSpectreWidget::_tabWidget
protected

Definition at line 179 of file TYSpectreWidget.h.

◆ _warningConvertingTOtoOctShown

bool TYSpectreWidget::_warningConvertingTOtoOctShown = false
staticprivate

Attribut de classe permettant d'afficher le warning de conversion de TO en Octave une seule fois par session

Definition at line 228 of file TYSpectreWidget.h.

◆ s_formProvider

TYSpectreWidget::TYSpectreFormProvider TYSpectreWidget::s_formProvider = nullptr
staticprivate

Stockage du fournisseur de forme du spectre

Definition at line 217 of file TYSpectreWidget.h.

◆ s_pondProvider

TYSpectreWidget::TYSpectrePondProvider TYSpectreWidget::s_pondProvider = nullptr
staticprivate

Stockage du fournisseur de pondération du spectre

Definition at line 222 of file TYSpectreWidget.h.


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