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

gestion de l'element actionne par picking More...

#include <TYPickEditor.h>

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

Public Slots

virtual void slotMousePressed (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 
virtual void slotMouseReleased (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 
virtual void slotMouseMoved (int x, int y, Qt::MouseButtons button, Qt::KeyboardModifiers state)
 
virtual void slotWheeled (int x, int y, int delta, Qt::KeyboardModifiers state)
 
virtual void slotKeyPressed (int key)
 
virtual void slotMouseLeave ()
 
void useHighlight (bool state)
 
void usePopup (bool state)
 
void resetPicker ()
 
- Public Slots inherited from TYAbstractSceneEditor
virtual void connect ()
 Connecte cet editor a l'interactor associe. More...
 
virtual void disconnect ()
 Deconnecte cet editor a l'interactor associe. More...
 
virtual void init ()
 Appeler avant l'utilisation de l'editor. More...
 
virtual void cancel ()
 Annule l'action courante de l'editor. More...
 
virtual void close ()
 Appeler apres l'utilisation de l'editor. More...
 
virtual void slotMousePressed (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 Une touche de la souris a ete enfoncee. More...
 
virtual void slotMouseReleased (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 Une touche de la souris a ete relachee. More...
 
virtual void slotMouseDoubleClicked (int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
 Une touche de la souris a ete double clickee. More...
 
virtual void slotMouseMoved (int x, int y, Qt::MouseButtons button, Qt::KeyboardModifiers state)
 La souris a ete deplacee. More...
 
virtual void slotWheeled (int x, int y, int delta, Qt::KeyboardModifiers state)
 La molette de la souris a ete utilisee. More...
 
virtual void slotKeyPressed (int key)
 Une touche a ete relachee. More...
 
virtual void slotKeyReleased (int key)
 Une touche a ete relachee. More...
 
virtual void slotViewTypeChanged (int view)
 La vue courante du modeler a change. More...
 
virtual void slotMouseEnter ()
 Le curseur de souris est entree dans la widget. More...
 
virtual void slotMouseLeave ()
 Le curseur de souris est sortie dans la widget. More...
 

Public Member Functions

 TYPickEditor (TYModelerFrame *pModeler)
 
 ~TYPickEditor ()
 
TYElementPickergetPicker ()
 Methode qui retourne le picker. More...
 
void setPickTolerance (float tolerance)
 
float getPickTolerance ()
 
void setRolloverTolerance (float tolerance)
 
float getRolloverTolerance ()
 
- Public Member Functions inherited from TYAbstractSceneEditor
virtual ~TYAbstractSceneEditor ()
 Destructeur. More...
 
void updateText (QString msg="", int posX=0, int posY=0, bool show=true)
 Mets a jour le texte informatif sur la vue 3D. More...
 
void showText (bool show=true)
 Affiche ou pas le texte informatif sur la vue 3D. More...
 
void setGridMagnStep (float gridMagnStep=1.0)
 Met à jour le pas de la grille magnétique. More...
 

Protected Slots

virtual void showPopupMenu (std::shared_ptr< LPTYElementArray > pElts)
 
void showPositionDialog (TYGeometryNode *pGeoNode, bool activeHeight)
 
void showRotationDialog (TYGeometryNode *pGeoNode)
 
void showDimensionsDialog (TYAcousticVolume *pAccVol)
 
void showPanel (TYElement *pElt)
 
void hidePanel ()
 

Protected Attributes

TYElementPicker_pPicker
 Le picker du modeler. More...
 
QPoint _lastPressedCurPos
 Derniere position de la souris. More...
 
QPoint _lastMovedCurPos
 
TYElement_pLastRolloverElt
 
bool _useHighlight
 Flag pour l'activation du highlight. More...
 
bool _usePopup
 Flag pour l'activation du popup menu. More...
 
float _pickTolerance
 Tolerance du picking. More...
 
float _rolloverTolerance
 
- Protected Attributes inherited from TYAbstractSceneEditor
TYModelerFrame_pModeler
 Le modeler associe a cet editor. More...
 
double _gridMagnStep
 Pas de la grille magnétique de positionnement. More...
 
TYRenderWindowInteractor_pInteractor
 La vue graphique associee a cet editor. More...
 
OGLTextElement_pOGLTextElement
 Affichage du texte 2D sur la vue 3D. More...
 

Private Member Functions

void siteModelerPopupMenu (std::shared_ptr< LPTYElementArray > pElts)
 
void machineModelerPopupMenu (std::shared_ptr< LPTYElementArray > pElts)
 
void batimentModelerPopupMenu (std::shared_ptr< LPTYElementArray > pElts)
 
void manageProperties (TYElement *pElement)
 
void copySite (TYElement *pElement)
 
void remSite (TYElement *pElement)
 
void splitCurve (TYElement *pElement)
 
void copyMaillage (TYElement *pElement)
 
void remMaillage (TYElement *pElement)
 
void copyPtCtrl (TYElement *pElement)
 
void remPtCtrl (TYElement *pElement)
 
void remTopoElmt (TYElement *pElement)
 
void copyTopoElmt (TYElement *pElement)
 
void remInfraElmt (TYElement *pElement)
 
void copyInfraElmt (TYElement *pElement)
 
void setVolumeSize (TYElement *pElement)
 
void removeVolume (TYElement *pElement)
 
void copyVolume (TYElement *pElement)
 
void openFaceModeler (TYElement *pElement)
 
void inverseNormal (TYElement *pElement)
 
void floorHeight (TYElement *pElement)
 
void screenHeight (TYElement *pElement)
 
void screenThick (TYElement *pElement)
 
bool realWorldPosition (OPoint3D &pt)
 
void updateCopyPosition (LPTYGeometryNode &pNode)
 

Additional Inherited Members

- Static Public Member Functions inherited from TYAbstractSceneEditor
static void snapToGrid (float &x, float &y, float &z, float &gridMagnStep)
 Methode utilitaire qui adapte les coordonnees d'un point pour que celui-ci soit aligne avec la grille imaginaire de positionnement. More...
 
static void snapToGrid (double &x, double &y, double &z, double &gridMagnStep)
 Methode utilitaire qui adapte les coordonnees d'un point pour que celui-ci soit aligne avec la grille imaginaire de positionnement. More...
 
- Protected Member Functions inherited from TYAbstractSceneEditor
 TYAbstractSceneEditor (TYModelerFrame *pModeler)
 Constructeur par defaut. More...
 
void displayToWorld (double x, double y, double z, double *worldPoint)
 Methode utilitaire pour convertir un point en coordonnees ecran en coordonnees globale. More...
 
void worldToDisplay (double x, double y, double z, double *displayPoint)
 Methode utilitaire pour convertir un point en coordonnees globale en coordonnees ecran. More...
 
void refreshSiteFrame ()
 Rafraichit l'arborescence du TYSiteFrame. More...
 
void refreshProjectFrame ()
 Rafraichit l'arborescence du TYProjectFrame. More...
 
void updateSiteFrame ()
 Reconstruit l'arborescence du TYSiteFrame. More...
 

Detailed Description

gestion de l'element actionne par picking

Definition at line 39 of file TYPickEditor.h.

Constructor & Destructor Documentation

◆ TYPickEditor()

TYPickEditor::TYPickEditor ( TYModelerFrame pModeler)

Definition at line 71 of file TYPickEditor.cpp.

Here is the call graph for this function:

◆ ~TYPickEditor()

TYPickEditor::~TYPickEditor ( )

Definition at line 85 of file TYPickEditor.cpp.

Member Function Documentation

◆ batimentModelerPopupMenu()

void TYPickEditor::batimentModelerPopupMenu ( std::shared_ptr< LPTYElementArray pElts)
private

Definition at line 707 of file TYPickEditor.cpp.

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

◆ copyInfraElmt()

void TYPickEditor::copyInfraElmt ( TYElement pElement)
private

Definition at line 1779 of file TYPickEditor.cpp.

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

◆ copyMaillage()

void TYPickEditor::copyMaillage ( TYElement pElement)
private

Definition at line 1436 of file TYPickEditor.cpp.

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

◆ copyPtCtrl()

void TYPickEditor::copyPtCtrl ( TYElement pElement)
private

Definition at line 1530 of file TYPickEditor.cpp.

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

◆ copySite()

void TYPickEditor::copySite ( TYElement pElement)
private

Definition at line 1311 of file TYPickEditor.cpp.

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

◆ copyTopoElmt()

void TYPickEditor::copyTopoElmt ( TYElement pElement)
private

Definition at line 1636 of file TYPickEditor.cpp.

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

◆ copyVolume()

void TYPickEditor::copyVolume ( TYElement pElement)
private

Definition at line 2004 of file TYPickEditor.cpp.

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

◆ floorHeight()

void TYPickEditor::floorHeight ( TYElement pElement)
private

Definition at line 2094 of file TYPickEditor.cpp.

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

◆ getPicker()

TYElementPicker * TYPickEditor::getPicker ( )
inline

Methode qui retourne le picker.

Definition at line 51 of file TYPickEditor.h.

Here is the caller graph for this function:

◆ getPickTolerance()

float TYPickEditor::getPickTolerance ( )
inline

Set/Get de la tolerance du picking.

Definition at line 66 of file TYPickEditor.h.

◆ getRolloverTolerance()

float TYPickEditor::getRolloverTolerance ( )
inline

Set/Get de la tolerance du rollover.

Definition at line 81 of file TYPickEditor.h.

◆ hidePanel

void TYPickEditor::hidePanel ( )
protectedslot

Definition at line 1248 of file TYPickEditor.cpp.

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

◆ inverseNormal()

void TYPickEditor::inverseNormal ( TYElement pElement)
private

Definition at line 2080 of file TYPickEditor.cpp.

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

◆ machineModelerPopupMenu()

void TYPickEditor::machineModelerPopupMenu ( std::shared_ptr< LPTYElementArray pElts)
private

Definition at line 578 of file TYPickEditor.cpp.

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

◆ manageProperties()

void TYPickEditor::manageProperties ( TYElement pElement)
private

Definition at line 1291 of file TYPickEditor.cpp.

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

◆ openFaceModeler()

void TYPickEditor::openFaceModeler ( TYElement pElement)
private

Definition at line 2060 of file TYPickEditor.cpp.

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

◆ realWorldPosition()

bool TYPickEditor::realWorldPosition ( OPoint3D pt)
private

Definition at line 1266 of file TYPickEditor.cpp.

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

◆ remInfraElmt()

void TYPickEditor::remInfraElmt ( TYElement pElement)
private

Definition at line 1736 of file TYPickEditor.cpp.

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

◆ remMaillage()

void TYPickEditor::remMaillage ( TYElement pElement)
private

Definition at line 1499 of file TYPickEditor.cpp.

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

◆ removeVolume()

void TYPickEditor::removeVolume ( TYElement pElement)
private

Definition at line 1977 of file TYPickEditor.cpp.

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

◆ remPtCtrl()

void TYPickEditor::remPtCtrl ( TYElement pElement)
private

Definition at line 1573 of file TYPickEditor.cpp.

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

◆ remSite()

void TYPickEditor::remSite ( TYElement pElement)
private

Definition at line 1371 of file TYPickEditor.cpp.

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

◆ remTopoElmt()

void TYPickEditor::remTopoElmt ( TYElement pElement)
private

Definition at line 1598 of file TYPickEditor.cpp.

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

◆ resetPicker

void TYPickEditor::resetPicker ( )
inlineslot

Reinitialise le picker.

Definition at line 112 of file TYPickEditor.h.

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

◆ screenHeight()

void TYPickEditor::screenHeight ( TYElement pElement)
private

Definition at line 2119 of file TYPickEditor.cpp.

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

◆ screenThick()

void TYPickEditor::screenThick ( TYElement pElement)
private

Definition at line 2137 of file TYPickEditor.cpp.

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

◆ setPickTolerance()

void TYPickEditor::setPickTolerance ( float  tolerance)
inline

Set/Get de la tolerance du picking.

Definition at line 59 of file TYPickEditor.h.

Here is the caller graph for this function:

◆ setRolloverTolerance()

void TYPickEditor::setRolloverTolerance ( float  tolerance)
inline

Set/Get de la tolerance du rollover.

Definition at line 74 of file TYPickEditor.h.

Here is the caller graph for this function:

◆ setVolumeSize()

void TYPickEditor::setVolumeSize ( TYElement pElement)
private

Definition at line 1910 of file TYPickEditor.cpp.

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

◆ showDimensionsDialog

void TYPickEditor::showDimensionsDialog ( TYAcousticVolume pAccVol)
protectedslot

Definition at line 1078 of file TYPickEditor.cpp.

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

◆ showPanel

void TYPickEditor::showPanel ( TYElement pElt)
protectedslot

Definition at line 1115 of file TYPickEditor.cpp.

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

◆ showPopupMenu

void TYPickEditor::showPopupMenu ( std::shared_ptr< LPTYElementArray pElts)
protectedvirtualslot

Definition at line 241 of file TYPickEditor.cpp.

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

◆ showPositionDialog

void TYPickEditor::showPositionDialog ( TYGeometryNode pGeoNode,
bool  activeHeight 
)
protectedslot

Definition at line 871 of file TYPickEditor.cpp.

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

◆ showRotationDialog

void TYPickEditor::showRotationDialog ( TYGeometryNode pGeoNode)
protectedslot

Definition at line 965 of file TYPickEditor.cpp.

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

◆ siteModelerPopupMenu()

void TYPickEditor::siteModelerPopupMenu ( std::shared_ptr< LPTYElementArray pElts)
private

Definition at line 273 of file TYPickEditor.cpp.

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

◆ slotKeyPressed

void TYPickEditor::slotKeyPressed ( int  key)
virtualslot

Definition at line 219 of file TYPickEditor.cpp.

Here is the call graph for this function:

◆ slotMouseLeave

void TYPickEditor::slotMouseLeave ( )
virtualslot

Definition at line 228 of file TYPickEditor.cpp.

Here is the call graph for this function:

◆ slotMouseMoved

void TYPickEditor::slotMouseMoved ( int  x,
int  y,
Qt::MouseButtons  button,
Qt::KeyboardModifiers  state 
)
virtualslot

Definition at line 145 of file TYPickEditor.cpp.

Here is the call graph for this function:

◆ slotMousePressed

void TYPickEditor::slotMousePressed ( int  x,
int  y,
Qt::MouseButton  button,
Qt::KeyboardModifiers  state 
)
virtualslot

Definition at line 87 of file TYPickEditor.cpp.

Here is the call graph for this function:

◆ slotMouseReleased

void TYPickEditor::slotMouseReleased ( int  x,
int  y,
Qt::MouseButton  button,
Qt::KeyboardModifiers  state 
)
virtualslot

Definition at line 102 of file TYPickEditor.cpp.

Here is the call graph for this function:

◆ slotWheeled

void TYPickEditor::slotWheeled ( int  x,
int  y,
int  delta,
Qt::KeyboardModifiers  state 
)
virtualslot

Definition at line 207 of file TYPickEditor.cpp.

Here is the call graph for this function:

◆ splitCurve()

void TYPickEditor::splitCurve ( TYElement pElement)
private

Definition at line 1399 of file TYPickEditor.cpp.

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

◆ updateCopyPosition()

void TYPickEditor::updateCopyPosition ( LPTYGeometryNode pNode)
private

Definition at line 2156 of file TYPickEditor.cpp.

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

◆ useHighlight

void TYPickEditor::useHighlight ( bool  state)
inlineslot

Utilise ou pas le highlight lors d'un clic gauche.

Definition at line 97 of file TYPickEditor.h.

Here is the caller graph for this function:

◆ usePopup

void TYPickEditor::usePopup ( bool  state)
inlineslot

Utilise ou pas le popup lors d'un clic droit.

Definition at line 104 of file TYPickEditor.h.

Here is the caller graph for this function:

Member Data Documentation

◆ _lastMovedCurPos

QPoint TYPickEditor::_lastMovedCurPos
protected

Definition at line 158 of file TYPickEditor.h.

◆ _lastPressedCurPos

QPoint TYPickEditor::_lastPressedCurPos
protected

Derniere position de la souris.

Definition at line 157 of file TYPickEditor.h.

◆ _pickTolerance

float TYPickEditor::_pickTolerance
protected

Tolerance du picking.

Definition at line 169 of file TYPickEditor.h.

◆ _pLastRolloverElt

TYElement* TYPickEditor::_pLastRolloverElt
protected

Definition at line 161 of file TYPickEditor.h.

◆ _pPicker

TYElementPicker* TYPickEditor::_pPicker
protected

Le picker du modeler.

Definition at line 154 of file TYPickEditor.h.

◆ _rolloverTolerance

float TYPickEditor::_rolloverTolerance
protected

Definition at line 170 of file TYPickEditor.h.

◆ _useHighlight

bool TYPickEditor::_useHighlight
protected

Flag pour l'activation du highlight.

Definition at line 164 of file TYPickEditor.h.

◆ _usePopup

bool TYPickEditor::_usePopup
protected

Flag pour l'activation du popup menu.

Definition at line 166 of file TYPickEditor.h.


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