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)
 
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)
 

Detailed Description

Frame pour la gestion de site.

Definition at line 42 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 58 of file TYSiteFrame.cpp.

Here is the call graph for this function:

◆ ~TYSiteFrame()

TYSiteFrame::~TYSiteFrame ( )
virtual

Destructeur.

Definition at line 84 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 1510 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 857 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 1484 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 316 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 212 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 292 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 268 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 129 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 285 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 278 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 160 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 1120 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 1214 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 1256 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 67 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 363 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 1156 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 59 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 1466 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 1337 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 1653 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 1129 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 966 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 977 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 874 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 923 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 1731 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 142 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 1747 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 89 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 1421 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 113 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 252 of file TYSiteFrame.h.

◆ _pListView

QTreeWidget* TYSiteFrame::_pListView
protected

Definition at line 246 of file TYSiteFrame.h.

◆ _pMenuBar

QMenuBar* TYSiteFrame::_pMenuBar
protected

Definition at line 245 of file TYSiteFrame.h.

◆ _pSiteNodeRoot

LPTYSiteNode TYSiteFrame::_pSiteNodeRoot
protected

Le site node root.

Definition at line 249 of file TYSiteFrame.h.


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