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
TYMachineModelerFrame Class Reference

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

#include <TYMachineModelerFrame.h>

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

Public Types

enum  MachineModelerMode { AddBoxMode = NbOfModelerMode , AddCylMode , AddSemiCylMode , NbOfMachineModelerMode }
 Les differents modes d'edition d'une Machine. More...
 
- Public Types inherited from TYModelerFrame
enum  ModelerViewType {
  TopView , BottomView , LeftView , RightView ,
  FrontView , RearView , PerspView , FreeView ,
  NbOfViews
}
 
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 (TYOpenGLRenderer::RenderMode 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 setKeepRays (bool keepRays)
 
void setSnapGridActive (bool state)
 
void setCameraCoordinates ()
 
void screenShot ()
 
virtual void updateView (bool clipping=true, bool axesAndGrid=true)
 
void updateAxes ()
 
void updateCurPosInfo (int x, int y)
 
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

 TYMachineModelerFrame (LPTYMachine pMachine=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::SubWindow)
 
virtual ~TYMachineModelerFrame ()
 
void setMachine (LPTYMachine pMachine)
 
LPTYMachine getMachine ()
 
- 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 ()
 
TYOpenGLRenderer::RenderMode 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)
 
virtual float getDefaultZCoord ()
 Returns default Z coordinate for editors This value will depend on the type of modeler and of the fixed altitude (or not) of the underlying site. More...
 
void setDefaultZCoord (float fDefaultZCoord)
 sets default Z coordinate for editors More...
 

Protected Attributes

LPTYMachine _pMachine
 Un pointeur sur la machine a editer. More...
 
TYBoxEditor_pBoxEditor
 Box editor. More...
 
TYCylinderEditor_pCylinderEditor
 Cylinder editor. More...
 
TYSemiCylinderEditor_pSemiCylinderEditor
 Semi cylinder editor. More...
 
- Protected Attributes inherited from TYModelerFrame
TYCameraEditor_pCameraEditor
 Manages the camera. More...
 
QBoxLayout * _pCtrlLayout
 The layout where buttons, etc., are located. More...
 
QComboBox * _pViewTypeBox
 Combo box for selecting the current camera. More...
 
TYRenderWindowInteractor_pView
 The graphics window. More...
 
int _curViewType
 The type of the current view. More...
 
bool _editorModeAccepted
 Indicates if the editing mode has been processed. More...
 
TYAbstractSceneEditor_pCurrentEditor
 The current editor. More...
 
TYPickEditor_pPickEditor
 Manages the context menu. More...
 
OGLCamera_pOGLCameras [NbOfViews]
 Cameras for each type of view. More...
 
float _gridStep
 Grid step. More...
 
float _gridMagnStep
 Magnetic grid step. More...
 
float _gridDimX
 Grid dimension in X. More...
 
float _gridDimY
 Grid dimension in Y. More...
 
QToolButton * _pSetCameraCoordinatesBtn
 Button to specify camera coordinates. More...
 
QToolButton * _pScreenShotBtn
 Button for saving a screenshot. More...
 
QToolButton * _pCopyBtn
 Button for taking a screenshot. More...
 
LPTYElement _pElement
 A pointer to the element to edit. More...
 
float _defaultZCoord
 Default Z coordinate for editors. More...
 

Static Protected Attributes

static int _nbInstance = 0
 Nombre d'instance de type TYMachineModelerFrame. 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 ()
 
void addScreenShotBtn ()
 

Detailed Description

Classe Modeler specialisee pour l'edition des machines.

Definition at line 38 of file TYMachineModelerFrame.h.

Member Enumeration Documentation

◆ MachineModelerMode

Les differents modes d'edition d'une Machine.

Enumerator
AddBoxMode 
AddCylMode 
AddSemiCylMode 
NbOfMachineModelerMode 

Definition at line 66 of file TYMachineModelerFrame.h.

Constructor & Destructor Documentation

◆ TYMachineModelerFrame()

TYMachineModelerFrame::TYMachineModelerFrame ( LPTYMachine  pMachine = 0,
QWidget *  parent = 0,
const char *  name = 0,
Qt::WindowFlags  f = Qt::SubWindow 
)

Constructeur par defaut.

Definition at line 41 of file TYMachineModelerFrame.cpp.

Here is the call graph for this function:

◆ ~TYMachineModelerFrame()

TYMachineModelerFrame::~TYMachineModelerFrame ( )
virtual

Destructeur.

Definition at line 76 of file TYMachineModelerFrame.cpp.

Member Function Documentation

◆ calculDistribution

void TYMachineModelerFrame::calculDistribution ( )
slot

Definition at line 167 of file TYMachineModelerFrame.cpp.

Here is the call graph for this function:

◆ close

bool TYMachineModelerFrame::close ( )
virtualslot

Definition at line 90 of file TYMachineModelerFrame.cpp.

Here is the call graph for this function:

◆ closeEvent

void TYMachineModelerFrame::closeEvent ( QCloseEvent *  pEvent)
virtualslot

Definition at line 175 of file TYMachineModelerFrame.cpp.

Here is the call graph for this function:

◆ getMachine()

LPTYMachine TYMachineModelerFrame::getMachine ( )
inline

Set/Get de la machine a editer.

Definition at line 60 of file TYMachineModelerFrame.h.

Here is the caller graph for this function:

◆ setEditorMode

void TYMachineModelerFrame::setEditorMode ( int  mode)
virtualslot

Definition at line 133 of file TYMachineModelerFrame.cpp.

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

◆ setMachine()

void TYMachineModelerFrame::setMachine ( LPTYMachine  pMachine)

Set/Get de la machine a editer.

Definition at line 102 of file TYMachineModelerFrame.cpp.

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

◆ updatePreferences

void TYMachineModelerFrame::updatePreferences ( )
virtualslot

Definition at line 210 of file TYMachineModelerFrame.cpp.

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

Member Data Documentation

◆ _nbInstance

int TYMachineModelerFrame::_nbInstance = 0
staticprotected

Nombre d'instance de type TYMachineModelerFrame.

Definition at line 94 of file TYMachineModelerFrame.h.

◆ _pBoxEditor

TYBoxEditor* TYMachineModelerFrame::_pBoxEditor
protected

Box editor.

Definition at line 87 of file TYMachineModelerFrame.h.

◆ _pCylinderEditor

TYCylinderEditor* TYMachineModelerFrame::_pCylinderEditor
protected

Cylinder editor.

Definition at line 89 of file TYMachineModelerFrame.h.

◆ _pMachine

LPTYMachine TYMachineModelerFrame::_pMachine
protected

Un pointeur sur la machine a editer.

Definition at line 84 of file TYMachineModelerFrame.h.

◆ _pSemiCylinderEditor

TYSemiCylinderEditor* TYMachineModelerFrame::_pSemiCylinderEditor
protected

Semi cylinder editor.

Definition at line 91 of file TYMachineModelerFrame.h.


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