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

Frame pour la gestion de site. More...

#include <TYSiteFrame.h>

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

Public Slots

void setSiteNodeRoot (LPTYSiteNode pSiteNode)
 
void updateList ()
 
void setCurrentCalcul (LPTYCalcul pCalcul)
 
TYElementListItemaddToList (LPTYSiteNode pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYInfrastructure pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYTopographie pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYMateriauConstruction pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYSpectre pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYSourcePonctuelle pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYMachine pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYBatiment pElement, TYElementListItem *parent=NULL)
 
bool remInInfra (LPTYSiteNode _siteNode, TYElementListItem *item, const char *className)
 
bool remInTopo (LPTYSiteNode _siteNode, TYElementListItem *item, const char *className)
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 
bool remFromList (TYElementListItem *item)
 
void apply (QTreeWidgetItem *item, int col)
 
void openModeler (QTreeWidgetItem *item, int column)
 

Public Member Functions

 TYSiteFrame (QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
 
virtual ~TYSiteFrame ()
 
TYSiteNodegetSiteNodeRoot ()
 
void clear ()
 
void exportEXCEL (TYElement *pElement)
 
void changePos (TYElement *pElement)
 
void changeRotation (TYElement *pElement)
 
void localise (TYElement *pElement, TYElementGraphic *pGraphicObject)
 
bool supprime (TYElementListItem *eltItem)
 
void importFromLib (const unsigned int &filter, TYElement *pElement)
 
void addEltXML (const char *className, TYElement *pElement)
 
void newElt (const char *className, TYElement *pElement)
 
void addElt (TYElement *pElement, TYElement *pElt)
 
TYRepere getDefaultRepere (TYInfrastructure *pInfra)
 Returns default repere with z coordinate corresponding to site altitude This method is used when adding element from site frame. More...
 
void selectOrUnselectAll (TYElementListItem *item, const bool &bSelect)
 
void setDMaxDefault (TYElementListItem *item)
 

Protected Member Functions

TYElementListItemaddEltToList (LPTYElement pElement, TYElementListItem *parent=NULL, const bool &chekable=false)
 

Protected Attributes

QMenuBar * _pMenuBar
 
QTreeWidget * _pListView
 
LPTYSiteNode _pSiteNodeRoot
 Le site node root. More...
 
LPTYCalcul _pCurrentCalcul
 L'Id du calcul courant. More...
 

Private Member Functions

bool remFromSite (TYElement *pElement)
 
void setBatimentParentEmissive (const TYEtage *pEtage)
 Rend émissif, dans l'état du calcul courant, le bâtiment parent de l'étage passé en paramètre. More...
 

Detailed Description

Frame pour la gestion de site.

Definition at line 39 of file TYSiteFrame.h.

Constructor & Destructor Documentation

◆ TYSiteFrame()

TYSiteFrame::TYSiteFrame ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WindowFlags  f = QFlag(0) 
)

Constructeur par defaut.

Definition at line 60 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ ~TYSiteFrame()

TYSiteFrame::~TYSiteFrame ( )
virtual

Destructeur.

Definition at line 86 of file TYSiteFrame.cpp.

Member Function Documentation

◆ addElt()

void TYSiteFrame::addElt ( TYElement pElement,
TYElement pElt 
)

Ajout d'un element (cree depuis un fichier ou nouveau)

Definition at line 1532 of file TYSiteFrame.cpp.

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

◆ addEltToList()

TYElementListItem * TYSiteFrame::addEltToList ( LPTYElement  pElement,
TYElementListItem parent = NULL,
const bool &  chekable = false 
)
protected

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 876 of file TYSiteFrame.cpp.

Here is the caller graph for this function:

◆ addEltXML()

void TYSiteFrame::addEltXML ( const char *  className,
TYElement pElement 
)

Import d'un element depuis un fichier XML

Definition at line 1506 of file TYSiteFrame.cpp.

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

◆ addToList [1/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYBatiment  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 333 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ addToList [2/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYInfrastructure  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 223 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ addToList [3/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYMachine  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 309 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ addToList [4/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYMateriauConstruction  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 285 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ addToList [5/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYSiteNode  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 136 of file TYSiteFrame.cpp.

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

◆ addToList [6/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYSourcePonctuelle  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 302 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ addToList [7/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYSpectre  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 295 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ addToList [8/8]

TYElementListItem * TYSiteFrame::addToList ( LPTYTopographie  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 167 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ apply

void TYSiteFrame::apply ( QTreeWidgetItem *  item,
int  col 
)
slot

Mise a jour d'un l'element.

Parameters
itemItem de la liste correspondant a l'element.
colcolonne.

Definition at line 1139 of file TYSiteFrame.cpp.

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

◆ changePos()

void TYSiteFrame::changePos ( TYElement pElement)

Boite de dialogue position

Definition at line 1233 of file TYSiteFrame.cpp.

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

◆ changeRotation()

void TYSiteFrame::changeRotation ( TYElement pElement)

Boite de dialogue de rotation

Definition at line 1275 of file TYSiteFrame.cpp.

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

◆ clear()

void TYSiteFrame::clear ( )
inline

Vide la list view.

Definition at line 64 of file TYSiteFrame.h.

Here is the caller graph for this function:

◆ contextMenuEvent

void TYSiteFrame::contextMenuEvent ( QContextMenuEvent *  e)
virtualslot

Affiche un menu contextuel.

Definition at line 381 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ exportEXCEL()

void TYSiteFrame::exportEXCEL ( TYElement pElement)

Sauvegarde au format CSV

Definition at line 1175 of file TYSiteFrame.cpp.

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

◆ getDefaultRepere()

TYRepere TYSiteFrame::getDefaultRepere ( TYInfrastructure pInfra)

Returns default repere with z coordinate corresponding to site altitude This method is used when adding element from site frame.

Parameters
pInfraThe site infrastructure
Returns
The default repere

Definition at line 1687 of file TYSiteFrame.cpp.

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

◆ getSiteNodeRoot()

TYSiteNode* TYSiteFrame::getSiteNodeRoot ( )
inline

Set/get le site node root.

Definition at line 56 of file TYSiteFrame.h.

Here is the caller graph for this function:

◆ importFromLib()

void TYSiteFrame::importFromLib ( const unsigned int &  filter,
TYElement pElement 
)

Import d'un element depuis la librairie

Definition at line 1488 of file TYSiteFrame.cpp.

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

◆ localise()

void TYSiteFrame::localise ( TYElement pElement,
TYElementGraphic pGraphicObject 
)

Mise en evidence d'un element (highlight)

Definition at line 1356 of file TYSiteFrame.cpp.

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

◆ newElt()

void TYSiteFrame::newElt ( const char *  className,
TYElement pElement 
)

Ajout d'un nouvel element

Definition at line 1698 of file TYSiteFrame.cpp.

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

◆ openModeler

void TYSiteFrame::openModeler ( QTreeWidgetItem *  item,
int  column 
)
slot

Ouverture d'un modeleur (sur double clic)

Parameters
itemItem de la liste correspondant a l'element.
columncolonne.

Definition at line 1148 of file TYSiteFrame.cpp.

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

◆ remFromList

bool TYSiteFrame::remFromList ( TYElementListItem item)
slot

Supprime un element du site.

Parameters
itemItem de la liste correspondant a l'element a supprimer.
Returns
Vrai si l'element a bien ete supprime.

Definition at line 985 of file TYSiteFrame.cpp.

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

◆ remFromSite()

bool TYSiteFrame::remFromSite ( TYElement pElement)
private

Effectue la suppression effective de l'element en fonction du contexte Est appelee par remFromList(...)

Definition at line 996 of file TYSiteFrame.cpp.

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

◆ remInInfra

bool TYSiteFrame::remInInfra ( LPTYSiteNode  _siteNode,
TYElementListItem item,
const char *  className 
)
slot

Supprime un element dans l'infrastructure.

Definition at line 893 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ remInTopo

bool TYSiteFrame::remInTopo ( LPTYSiteNode  _siteNode,
TYElementListItem item,
const char *  className 
)
slot

Supprime un element dans la topographie.

Definition at line 942 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ selectOrUnselectAll()

void TYSiteFrame::selectOrUnselectAll ( TYElementListItem item,
const bool &  bSelect 
)

Selection ou deselection de tous les elements "cochables" du meme type

Definition at line 1776 of file TYSiteFrame.cpp.

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

◆ setBatimentParentEmissive()

void TYSiteFrame::setBatimentParentEmissive ( const TYEtage pEtage)
private

Rend émissif, dans l'état du calcul courant, le bâtiment parent de l'étage passé en paramètre.

Parameters
pEtageEtage dont le bâtiment parent doit devenir émissif

Definition at line 1819 of file TYSiteFrame.cpp.

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

◆ setCurrentCalcul

void TYSiteFrame::setCurrentCalcul ( LPTYCalcul  pCalcul)
inlineslot

Mets a jour le calcul courant.

Definition at line 148 of file TYSiteFrame.h.

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

◆ setDMaxDefault()

void TYSiteFrame::setDMaxDefault ( TYElementListItem item)

Remet le parametre distance max entre deux points d'une courbe (niveau ou plan d'eau) a la valeur par defaut

Definition at line 1792 of file TYSiteFrame.cpp.

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

◆ setSiteNodeRoot

void TYSiteFrame::setSiteNodeRoot ( LPTYSiteNode  pSiteNode)
slot

Set/get le site node root.

Definition at line 91 of file TYSiteFrame.cpp.

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

◆ supprime()

bool TYSiteFrame::supprime ( TYElementListItem eltItem)

Effacement d'un element de l'arborescence

Definition at line 1443 of file TYSiteFrame.cpp.

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

◆ updateList

void TYSiteFrame::updateList ( )
slot

Mets a jour la liste a partir du site node root.

Definition at line 115 of file TYSiteFrame.cpp.

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

Member Data Documentation

◆ _pCurrentCalcul

LPTYCalcul TYSiteFrame::_pCurrentCalcul
protected

L'Id du calcul courant.

Definition at line 266 of file TYSiteFrame.h.

◆ _pListView

QTreeWidget* TYSiteFrame::_pListView
protected

Definition at line 260 of file TYSiteFrame.h.

◆ _pMenuBar

QMenuBar* TYSiteFrame::_pMenuBar
protected

Definition at line 259 of file TYSiteFrame.h.

◆ _pSiteNodeRoot

LPTYSiteNode TYSiteFrame::_pSiteNodeRoot
protected

Le site node root.

Definition at line 263 of file TYSiteFrame.h.


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