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

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

#include <TYFaceModelerFrame.h>

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

Public Types

enum  FaceModelerMode { BoucheMode = NbOfModelerMode , ChemineeMode , FenetreMode , NbOfFaceModelerMode }
 Les differents modes d'edition d'une face. 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 ()
 
- 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

 TYFaceModelerFrame (LPTYAcousticRectangleNode pFace=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
 
virtual ~TYFaceModelerFrame ()
 
void setFace (LPTYAcousticRectangleNode pFace)
 
LPTYAcousticRectangleNode getFace ()
 
- 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 Slots

void done (bool ok)
 
void accept ()
 
void reject ()
 
void updateToolActivation ()
 

Protected Member Functions

void focusInEvent (QFocusEvent *pEvent)
 
- 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 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 ()
 

Protected Attributes

LPTYAcousticRectangleNode _pFace
 Un pointeur sur la face a decouper. More...
 
TYRectangleEditor_pRectangleEditor
 Rectangle editor. 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 TYFaceModelerFrame. 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 ()
 

Detailed Description

Classe Modeler specialisee pour l'edition des faces.

Definition at line 40 of file TYFaceModelerFrame.h.

Member Enumeration Documentation

◆ FaceModelerMode

Les differents modes d'edition d'une face.

Enumerator
BoucheMode 
ChemineeMode 
FenetreMode 
NbOfFaceModelerMode 

Definition at line 68 of file TYFaceModelerFrame.h.

Constructor & Destructor Documentation

◆ TYFaceModelerFrame()

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

Constructeur par defaut.

Definition at line 45 of file TYFaceModelerFrame.cpp.

Here is the call graph for this function:

◆ ~TYFaceModelerFrame()

TYFaceModelerFrame::~TYFaceModelerFrame ( )
virtual

Destructeur.

Definition at line 92 of file TYFaceModelerFrame.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ accept

void TYFaceModelerFrame::accept ( )
protectedslot

Accepte les modifications faites sur la face.

Definition at line 189 of file TYFaceModelerFrame.cpp.

Here is the call graph for this function:

◆ close

bool TYFaceModelerFrame::close ( )
virtualslot

Definition at line 105 of file TYFaceModelerFrame.cpp.

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

◆ done

void TYFaceModelerFrame::done ( bool  ok)
protectedslot

Termine l'edition de la face. Si ok est vrai les modifications sont retenues sinon elles sont annulees.

Parameters
okOk ou Annuler.

Definition at line 174 of file TYFaceModelerFrame.cpp.

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

◆ focusInEvent()

void TYFaceModelerFrame::focusInEvent ( QFocusEvent *  pEvent)
protectedvirtual

Reimplemented from TYModelerFrame.

Definition at line 278 of file TYFaceModelerFrame.cpp.

Here is the call graph for this function:

◆ getFace()

LPTYAcousticRectangleNode TYFaceModelerFrame::getFace ( )
inline

Set/Get de la face a decouper.

Definition at line 62 of file TYFaceModelerFrame.h.

◆ reject

void TYFaceModelerFrame::reject ( )
protectedslot

Rejete les modifications faites sur la face.

Definition at line 194 of file TYFaceModelerFrame.cpp.

Here is the call graph for this function:

◆ setEditorMode

void TYFaceModelerFrame::setEditorMode ( int  mode)
virtualslot

Definition at line 137 of file TYFaceModelerFrame.cpp.

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

◆ setFace()

void TYFaceModelerFrame::setFace ( LPTYAcousticRectangleNode  pFace)

Set/Get de la face a decouper.

Definition at line 110 of file TYFaceModelerFrame.cpp.

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

◆ updatePreferences

void TYFaceModelerFrame::updatePreferences ( )
virtualslot

Definition at line 199 of file TYFaceModelerFrame.cpp.

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

◆ updateToolActivation

void TYFaceModelerFrame::updateToolActivation ( )
protectedslot

Mets a jour les outils en fonction du type de la face.

Definition at line 251 of file TYFaceModelerFrame.cpp.

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

Member Data Documentation

◆ _nbInstance

int TYFaceModelerFrame::_nbInstance = 0
staticprotected

Nombre d'instance de type TYFaceModelerFrame.

Definition at line 117 of file TYFaceModelerFrame.h.

◆ _pFace

LPTYAcousticRectangleNode TYFaceModelerFrame::_pFace
protected

Un pointeur sur la face a decouper.

Definition at line 111 of file TYFaceModelerFrame.h.

◆ _pRectangleEditor

TYRectangleEditor* TYFaceModelerFrame::_pRectangleEditor
protected

Rectangle editor.

Definition at line 114 of file TYFaceModelerFrame.h.


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