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

Action editing for a polyline (when moving point) More...

#include <TYActions.h>

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

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
 

Detailed Description

Action editing for a polyline (when moving point)

Author
Projet_Tympan

Definition at line 1050 of file TYActions.h.

Constructor & Destructor Documentation

◆ TYMovePointPolyLineAction()

TYMovePointPolyLineAction::TYMovePointPolyLineAction ( LPTYElement  pElt,
TYTabPoint polyLine,
int  ptId,
const TYPoint oldPos,
const TYPoint newPos,
TYModelerFrame pModeler,
const QString &  actionName 
)

Constructor.

Parameters
pEltThe element which owns the edited polyline
polyLineThe edited polyline
ptIdThe index of the edited point
oldPosThe old position (undo)
newPosThe new position (redo)
pModelerThe modeler
actionNameThe action name

Definition at line 1459 of file TYActions.cpp.

◆ ~TYMovePointPolyLineAction()

TYMovePointPolyLineAction::~TYMovePointPolyLineAction ( )
virtual

Destructor.

Definition at line 1467 of file TYActions.cpp.

Member Function Documentation

◆ redo()

void TYMovePointPolyLineAction::redo ( )
virtual

The redo action.

Implements TYModelerAction.

Definition at line 1479 of file TYActions.cpp.

Here is the call graph for this function:

◆ setNewPos()

void TYMovePointPolyLineAction::setNewPos ( const TYPoint newPos)
inline

Function to be called to update the new position of the edited point.

Parameters
newPosThe new position of the edited point

Definition at line 1074 of file TYActions.h.

◆ undo()

void TYMovePointPolyLineAction::undo ( )
virtual

The undo action.

Implements TYModelerAction.

Definition at line 1469 of file TYActions.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _newPos

TYPoint TYMovePointPolyLineAction::_newPos
protected

The new position of the point (redo)

Definition at line 1099 of file TYActions.h.

◆ _oldPos

TYPoint TYMovePointPolyLineAction::_oldPos
protected

The old position of the point (undo)

Definition at line 1097 of file TYActions.h.

◆ _pElt

LPTYElement TYMovePointPolyLineAction::_pElt
protected

The element which owns the edited polyline.

Definition at line 1091 of file TYActions.h.

◆ _polyLine

TYTabPoint& TYMovePointPolyLineAction::_polyLine
protected

The edited polyline.

Definition at line 1093 of file TYActions.h.

◆ _ptId

int TYMovePointPolyLineAction::_ptId
protected

Id of the point.

Definition at line 1095 of file TYActions.h.


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