|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Action editing for a polyline (when moving point) More...
#include <TYActions.h>


Public Member Functions | |
| TYMovePointPolyLineAction (LPTYElement pElt, TYTabPoint &polyLine, int ptId, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName) | |
| Constructor. More... | |
| virtual | ~TYMovePointPolyLineAction () |
| void | setNewPos (const TYPoint &newPos) |
| Function to be called to update the new position of the edited point. More... | |
| virtual void | undo () |
| The undo action. More... | |
| virtual void | redo () |
| The redo action. More... | |
Public Member Functions inherited from TYModelerAction | |
| TYModelerAction (TYModelerFrame *pModeler, const QString &actionName) | |
| Constructeur. More... | |
| virtual | ~TYModelerAction () |
| Destructeur. More... | |
Public Member Functions inherited from TYAction | |
| TYAction (const QString &actionName) | |
| virtual | ~TYAction () |
| QString | getName () const |
Protected Attributes | |
| LPTYElement | _pElt |
| The element which owns the edited polyline. More... | |
| TYTabPoint & | _polyLine |
| The edited polyline. More... | |
| int | _ptId |
| Id of the point. More... | |
| TYPoint | _oldPos |
| The old position of the point (undo) More... | |
| TYPoint | _newPos |
| The new position of the point (redo) More... | |
Protected Attributes inherited from TYModelerAction | |
| TYRenderWindowInteractor * | _pInteractor |
| TYModelerFrame * | _pModeler |
Action editing for a polyline (when moving point)
Definition at line 1050 of file TYActions.h.
| TYMovePointPolyLineAction::TYMovePointPolyLineAction | ( | LPTYElement | pElt, |
| TYTabPoint & | polyLine, | ||
| int | ptId, | ||
| const TYPoint & | oldPos, | ||
| const TYPoint & | newPos, | ||
| TYModelerFrame * | pModeler, | ||
| const QString & | actionName | ||
| ) |
Constructor.
| pElt | The element which owns the edited polyline |
| polyLine | The edited polyline |
| ptId | The index of the edited point |
| oldPos | The old position (undo) |
| newPos | The new position (redo) |
| pModeler | The modeler |
| actionName | The action name |
Definition at line 1459 of file TYActions.cpp.
|
virtual |
Destructor.
Definition at line 1467 of file TYActions.cpp.
|
virtual |
The redo action.
Implements TYModelerAction.
Definition at line 1479 of file TYActions.cpp.

|
inline |
Function to be called to update the new position of the edited point.
| newPos | The new position of the edited point |
Definition at line 1074 of file TYActions.h.
|
virtual |
The undo action.
Implements TYModelerAction.
Definition at line 1469 of file TYActions.cpp.

|
protected |
The new position of the point (redo)
Definition at line 1099 of file TYActions.h.
|
protected |
The old position of the point (undo)
Definition at line 1097 of file TYActions.h.
|
protected |
The element which owns the edited polyline.
Definition at line 1091 of file TYActions.h.
|
protected |
The edited polyline.
Definition at line 1093 of file TYActions.h.
|
protected |
Id of the point.
Definition at line 1095 of file TYActions.h.