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

Classe Modeler specialisee pour l'edition des batiments. More...

#include <TYBatimentModelerFrame.h>

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

Public Types

enum  MachineModelerMode {
  EtageMode = NbOfModelerMode , SilosMode , MachineMode , SourceMode ,
  NbOfBatimentModelerMode
}
 Les differents modes d'edition d'un Batiment. More...
 
- Public Types inherited from TYModelerFrame
enum  ModelerViewType {
  TopView , LeftView , FrontView , PerspView ,
  FreeView , NbOfViews
}
 
enum  RenderMode {
  Points , Wireframe , Surface , Flat ,
  Gouraud , Phong , NbOfRenderMode
}
 
enum  ModelerMode {
  NoMode = -1 , CameraMode , CameraZoneMode , DistanceMode ,
  MovingMode , RotationMode , EditionMode , NbOfModelerMode
}
 

Public Slots

virtual void setEditorMode (int mode)
 
virtual void updatePreferences ()
 
virtual bool close ()
 
void calculDistribution ()
 
virtual void closeEvent (QCloseEvent *pEvent)
 
- Public Slots inherited from TYModelerFrame
virtual void setViewType (int view)
 
virtual void setRenderModeSlot (int mode)
 
virtual void setRenderMode (int mode, bool bUpdateGL)
 
virtual void setEditorMode (int mode)
 
void setEditorModeToCamera ()
 
void showGrid (bool show)
 
void showNormals (bool show)
 
void showPlafond (bool show)
 
void showSources ()
 
void showRays (bool show)
 
void setSnapGridActive (bool state)
 
void setCameraCoordinates ()
 
void screenShot ()
 
virtual void updateView (bool clipping=true, bool axesAndGrid=true)
 
void updateAxes ()
 
void updateCurPosInfo ()
 
void updateGrid ()
 
void updateElementGraphic (bool force=false)
 
void print ()
 
void copy ()
 
void editElement ()
 
void fit ()
 
virtual void updatePreferences ()
 
void resizeGrid ()
 
virtual bool close ()
 
void setWireframeOnMovingCamera (bool state)
 
void startMovingRenderMode ()
 
void stopMovingRenderMode ()
 
void updateScale ()
 
void showScale (bool show)
 
static double getDouble (const QString &title, const QString &txt, double min, double max, double val, bool &ok, int dec=2)
 

Public Member Functions

 TYBatimentModelerFrame (LPTYBatiment pBatiment=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
 Constructeur par defaut. More...
 
virtual ~TYBatimentModelerFrame ()
 Destructeur. More...
 
void setBatiment (LPTYBatiment pBatiment)
 Set/Get du bâtiment a editer. More...
 
LPTYBatiment getBatiment ()
 
- Public Member Functions inherited from TYModelerFrame
 TYModelerFrame (QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::SubWindow)
 
virtual ~TYModelerFrame ()
 
TYRenderWindowInteractorgetView ()
 
TYOpenGLRenderergetRenderer ()
 
int getCurrentView ()
 
int getRenderMode ()
 
TYElementPickergetElementPicker ()
 
TYPickEditorgetPickEditor ()
 
TYAbstractSceneEditorgetCurrentEditor ()
 
TYCameraEditorgetCameraEditor ()
 
QStatusBar * statusBar ()
 
bool getSnapGridActive ()
 
TYActionManagergetActionManager ()
 
bool getShowSources ()
 
bool getShowGrid ()
 
bool getWireframeOnMovingCamera ()
 
void setElement (LPTYElement pElement)
 
LPTYElement getElement ()
 
bool isElementInCurrentCalcul ()
 
bool isElementInCurrentProjet ()
 
bool askForResetResultat ()
 
virtual bool computeCurPos (int x, int y, float *pos)
 

Protected Attributes

LPTYBatiment _pBatiment
 Un pointeur sur le bâtiment a editer. More...
 
TYEtageEditor_pEtageEditor
 Editor pour la construction d'etage. More...
 
TYSilosEditor_pSilosEditor
 Editor pour la construction de silos. More...
 
TYSourceEditor_pSourceEditor
 Editor pour l'ajout d'une source ponctuelle. More...
 
- Protected Attributes inherited from TYModelerFrame
QBoxLayout * _pCtrlLayout
 Le layout ou se trouvent les boutons, etc. More...
 
QComboBox * _pViewTypeBox
 Combo box pour la selection de la camera courante. More...
 
TYRenderWindowInteractor_pView
 La fenetre graphique. More...
 
int _curViewType
 Le type de la vue courante. More...
 
bool _editorModeAccepted
 Indique si le mode d'edition a ete traite. More...
 
TYAbstractSceneEditor_pCurrentEditor
 L'editor courant. More...
 
TYPickEditor_pPickEditor
 Gere le menu contextuel. More...
 
OGLCamera_pOGLCameras [NbOfViews]
 Les cameras pour chaque type de vue. More...
 
float _gridStep
 Pas de la grille. More...
 
float _gridMagnStep
 Pas de la grille magnetique. More...
 
float _gridDimX
 Dimension de la grille en X. More...
 
float _gridDimY
 Dimension de la grille en Y. More...
 
QToolButton * _pSetCameraCoordinatesBtn
 Bouton de specification des coordonnees de la camera. More...
 
LPTYElement _pElement
 Un pointeur sur l'element a editer. More...
 

Static Protected Attributes

static int _nbInstance = 0
 Nombre d'instance de type TYBatimentModelerFrame. More...
 

Additional Inherited Members

- Signals inherited from TYModelerFrame
void aboutToClose ()
 
void viewTypeChanged (int)
 
void editorModeChanged (int mode)
 
void eltModified (LPTYElement pElt)
 
void mouseEnter ()
 
void mouseLeave ()
 
void frameResized ()
 
- Protected Member Functions inherited from TYModelerFrame
virtual void keyPressEvent (QKeyEvent *pEvent)
 
virtual void keyReleaseEvent (QKeyEvent *pEvent)
 
virtual void mouseMoveEvent (QMouseEvent *pEvent)
 
virtual void wheelEvent (QWheelEvent *pEvent)
 
virtual void resizeEvent (QResizeEvent *pEvent)
 
virtual void focusInEvent (QFocusEvent *pEvent)
 
virtual void showEvent (QShowEvent *pEvent)
 
virtual void closeEvent (QCloseEvent *pEvent)
 
virtual void enterEvent (QEvent *pEvent)
 
virtual void leaveEvent (QEvent *pEvent)
 
void setGridLinesActorsVisibility (bool showGridXY, bool showGridXZ, bool showGridZY)
 
OBox getGlobalBoundingBox ()
 

Detailed Description

Classe Modeler specialisee pour l'edition des batiments.

Definition at line 38 of file TYBatimentModelerFrame.h.

Member Enumeration Documentation

◆ MachineModelerMode

Les differents modes d'edition d'un Batiment.

Enumerator
EtageMode 
SilosMode 
MachineMode 
SourceMode 
NbOfBatimentModelerMode 

Definition at line 70 of file TYBatimentModelerFrame.h.

Constructor & Destructor Documentation

◆ TYBatimentModelerFrame()

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

Constructeur par defaut.

Definition at line 42 of file TYBatimentModelerFrame.cpp.

Here is the call graph for this function:

◆ ~TYBatimentModelerFrame()

TYBatimentModelerFrame::~TYBatimentModelerFrame ( )
virtual

Destructeur.

Definition at line 84 of file TYBatimentModelerFrame.cpp.

Member Function Documentation

◆ calculDistribution

void TYBatimentModelerFrame::calculDistribution ( )
slot

Definition at line 237 of file TYBatimentModelerFrame.cpp.

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

◆ close

bool TYBatimentModelerFrame::close ( )
virtualslot

Definition at line 98 of file TYBatimentModelerFrame.cpp.

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

◆ closeEvent

void TYBatimentModelerFrame::closeEvent ( QCloseEvent *  pEvent)
virtualslot

Definition at line 202 of file TYBatimentModelerFrame.cpp.

Here is the call graph for this function:

◆ getBatiment()

LPTYBatiment TYBatimentModelerFrame::getBatiment ( )
inline

Definition at line 64 of file TYBatimentModelerFrame.h.

Here is the caller graph for this function:

◆ setBatiment()

void TYBatimentModelerFrame::setBatiment ( LPTYBatiment  pBatiment)

Set/Get du bâtiment a editer.

Definition at line 109 of file TYBatimentModelerFrame.cpp.

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

◆ setEditorMode

void TYBatimentModelerFrame::setEditorMode ( int  mode)
virtualslot

Definition at line 164 of file TYBatimentModelerFrame.cpp.

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

◆ updatePreferences

void TYBatimentModelerFrame::updatePreferences ( )
virtualslot

Definition at line 245 of file TYBatimentModelerFrame.cpp.

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

Member Data Documentation

◆ _nbInstance

int TYBatimentModelerFrame::_nbInstance = 0
staticprotected

Nombre d'instance de type TYBatimentModelerFrame.

Definition at line 102 of file TYBatimentModelerFrame.h.

◆ _pBatiment

LPTYBatiment TYBatimentModelerFrame::_pBatiment
protected

Un pointeur sur le bâtiment a editer.

Definition at line 90 of file TYBatimentModelerFrame.h.

◆ _pEtageEditor

TYEtageEditor* TYBatimentModelerFrame::_pEtageEditor
protected

Editor pour la construction d'etage.

Definition at line 93 of file TYBatimentModelerFrame.h.

◆ _pSilosEditor

TYSilosEditor* TYBatimentModelerFrame::_pSilosEditor
protected

Editor pour la construction de silos.

Definition at line 96 of file TYBatimentModelerFrame.h.

◆ _pSourceEditor

TYSourceEditor* TYBatimentModelerFrame::_pSourceEditor
protected

Editor pour l'ajout d'une source ponctuelle.

Definition at line 99 of file TYBatimentModelerFrame.h.


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