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

gestion de l'edition d'une polyligne More...

#include <TYPolyLineEditor.h>

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

Public Slots

virtual void connect ()
 
virtual void disconnect ()
 
virtual void init ()
 
virtual void cancel ()
 
virtual void close ()
 
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 slotKeyPressed (int key)
 
virtual void slotKeyReleased (int key)
 
virtual void slotViewTypeChanged (int view)
 
- 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...
 

Signals

void endedSavingPoints ()
 

Public Member Functions

 TYPolyLineEditor (TYModelerFrame *pModeler)
 
 ~TYPolyLineEditor ()
 
TYTabPointgetSavedPoints ()
 
void setDispDist (bool state)
 
bool getDispDist ()
 
void setPointSize (float size)
 
float getPointSize ()
 
- 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

void addPoint (int x, int y)
 
bool removeLastPoint ()
 
bool updateMovingLine (int x, int y)
 
void validatePoint (TYPoint &pt)
 

Protected Attributes

bool _active
 Indique si cet editor est actif. More...
 
bool _dispDist
 Indique si l'information de distance doit etre affichee ou non. More...
 
TYCameraEditor_pCamEditor
 Un CameraEditor associe a cet editor. More...
 
TYTabPoint _savedPoints
 Tableau pour la sauvegarde des points du mode Save points. More...
 
QList< OGLLineElement * > _OGLLineElementList
 Lignes dans la vue 3D. More...
 
QList< OGLSphereElement * > _OGLSphereElementList
 Table de points openGL. More...
 
OGLLineElement_pOGLLineElement
 La ligne courante. More...
 
float _pointSize
 Taille pour la representation des points. More...
 
bool _shiftOn
 Indique si le bouton Shift est enfonce. More...
 
- 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...
 

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'edition d'une polyligne

Definition at line 40 of file TYPolyLineEditor.h.

Constructor & Destructor Documentation

◆ TYPolyLineEditor()

TYPolyLineEditor::TYPolyLineEditor ( TYModelerFrame pModeler)

Definition at line 37 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

◆ ~TYPolyLineEditor()

TYPolyLineEditor::~TYPolyLineEditor ( )

Definition at line 72 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addPoint

void TYPolyLineEditor::addPoint ( int  x,
int  y 
)
protectedslot

Ajoute un nouveau point a la liste.

Definition at line 286 of file TYPolyLineEditor.cpp.

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

◆ cancel

void TYPolyLineEditor::cancel ( )
virtualslot

Definition at line 150 of file TYPolyLineEditor.cpp.

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

◆ close

void TYPolyLineEditor::close ( )
virtualslot

Definition at line 155 of file TYPolyLineEditor.cpp.

Here is the caller graph for this function:

◆ connect

void TYPolyLineEditor::connect ( )
virtualslot

Definition at line 108 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

◆ disconnect

void TYPolyLineEditor::disconnect ( )
virtualslot

Definition at line 113 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

◆ endedSavingPoints

void TYPolyLineEditor::endedSavingPoints ( )
signal
Here is the caller graph for this function:

◆ getDispDist()

bool TYPolyLineEditor::getDispDist ( )
inline

Set/Get de l'indicateur d'affichage de la distance.

Definition at line 67 of file TYPolyLineEditor.h.

◆ getPointSize()

float TYPolyLineEditor::getPointSize ( )
inline

Set/Get de la taille pour la representation des points.

Definition at line 82 of file TYPolyLineEditor.h.

◆ getSavedPoints()

TYTabPoint& TYPolyLineEditor::getSavedPoints ( )
inline

Retourne le tableau de points cree dans le mode SavePoints.

Definition at line 52 of file TYPolyLineEditor.h.

Here is the caller graph for this function:

◆ init

void TYPolyLineEditor::init ( )
virtualslot

Definition at line 119 of file TYPolyLineEditor.cpp.

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

◆ removeLastPoint

bool TYPolyLineEditor::removeLastPoint ( )
protectedslot

Supprime le dernier point ajoute, s'il existe.

Definition at line 324 of file TYPolyLineEditor.cpp.

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

◆ setDispDist()

void TYPolyLineEditor::setDispDist ( bool  state)
inline

Set/Get de l'indicateur d'affichage de la distance.

Definition at line 60 of file TYPolyLineEditor.h.

◆ setPointSize()

void TYPolyLineEditor::setPointSize ( float  size)
inline

Set/Get de la taille pour la representation des points.

Definition at line 75 of file TYPolyLineEditor.h.

◆ slotKeyPressed

void TYPolyLineEditor::slotKeyPressed ( int  key)
virtualslot

Definition at line 160 of file TYPolyLineEditor.cpp.

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

◆ slotKeyReleased

void TYPolyLineEditor::slotKeyReleased ( int  key)
virtualslot

Definition at line 234 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

◆ slotMouseMoved

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

Definition at line 266 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

◆ slotMouseReleased

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

Definition at line 271 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

◆ slotViewTypeChanged

void TYPolyLineEditor::slotViewTypeChanged ( int  view)
virtualslot

Definition at line 246 of file TYPolyLineEditor.cpp.

Here is the call graph for this function:

◆ updateMovingLine

bool TYPolyLineEditor::updateMovingLine ( int  x,
int  y 
)
protectedslot

Mets a jour la ligne courante.

Definition at line 365 of file TYPolyLineEditor.cpp.

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

◆ validatePoint

void TYPolyLineEditor::validatePoint ( TYPoint pt)
protectedslot

Modifie les coordonnees du point passe si necessaire en fonction des options (grille magnetique, angle pleins).

Definition at line 444 of file TYPolyLineEditor.cpp.

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

Member Data Documentation

◆ _active

bool TYPolyLineEditor::_active
protected

Indique si cet editor est actif.

Definition at line 126 of file TYPolyLineEditor.h.

◆ _dispDist

bool TYPolyLineEditor::_dispDist
protected

Indique si l'information de distance doit etre affichee ou non.

Definition at line 129 of file TYPolyLineEditor.h.

◆ _OGLLineElementList

QList<OGLLineElement*> TYPolyLineEditor::_OGLLineElementList
protected

Lignes dans la vue 3D.

Definition at line 138 of file TYPolyLineEditor.h.

◆ _OGLSphereElementList

QList<OGLSphereElement*> TYPolyLineEditor::_OGLSphereElementList
protected

Table de points openGL.

Definition at line 141 of file TYPolyLineEditor.h.

◆ _pCamEditor

TYCameraEditor* TYPolyLineEditor::_pCamEditor
protected

Un CameraEditor associe a cet editor.

Definition at line 132 of file TYPolyLineEditor.h.

◆ _pOGLLineElement

OGLLineElement* TYPolyLineEditor::_pOGLLineElement
protected

La ligne courante.

Definition at line 144 of file TYPolyLineEditor.h.

◆ _pointSize

float TYPolyLineEditor::_pointSize
protected

Taille pour la representation des points.

Definition at line 147 of file TYPolyLineEditor.h.

◆ _savedPoints

TYTabPoint TYPolyLineEditor::_savedPoints
protected

Tableau pour la sauvegarde des points du mode Save points.

Definition at line 135 of file TYPolyLineEditor.h.

◆ _shiftOn

bool TYPolyLineEditor::_shiftOn
protected

Indique si le bouton Shift est enfonce.

Definition at line 150 of file TYPolyLineEditor.h.


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