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

Action de deplacement d'un point de controle. More...

#include <TYActions.h>

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

Public Member Functions

 TYMovePointControlAction (LPTYPointControl pPointControl, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName)
 
virtual ~TYMovePointControlAction ()
 
void setNewPos (const TYPoint &newPos)
 
virtual void undo ()
 
virtual void redo ()
 
- 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

LPTYPointControl _pPointControl
 
TYPoint _oldPos
 
TYPoint _newPos
 
- Protected Attributes inherited from TYModelerAction
TYRenderWindowInteractor_pInteractor
 
TYModelerFrame_pModeler
 

Detailed Description

Action de deplacement d'un point de controle.

Author
Projet_Tympan

Definition at line 734 of file TYActions.h.

Constructor & Destructor Documentation

◆ TYMovePointControlAction()

TYMovePointControlAction::TYMovePointControlAction ( LPTYPointControl  pPointControl,
const TYPoint oldPos,
const TYPoint newPos,
TYModelerFrame pModeler,
const QString &  actionName 
)

Constructeur.

Definition at line 1089 of file TYActions.cpp.

◆ ~TYMovePointControlAction()

TYMovePointControlAction::~TYMovePointControlAction ( )
virtual

Destructeur.

Definition at line 1096 of file TYActions.cpp.

Member Function Documentation

◆ redo()

void TYMovePointControlAction::redo ( )
virtual

Effectue a nouveau la derniere action annulee.

Implements TYModelerAction.

Definition at line 1107 of file TYActions.cpp.

Here is the call graph for this function:

◆ setNewPos()

void TYMovePointControlAction::setNewPos ( const TYPoint newPos)
inline

Definition at line 747 of file TYActions.h.

◆ undo()

void TYMovePointControlAction::undo ( )
virtual

Annule la derniere action.

Implements TYModelerAction.

Definition at line 1098 of file TYActions.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _newPos

TYPoint TYMovePointControlAction::_newPos
protected

Definition at line 758 of file TYActions.h.

◆ _oldPos

TYPoint TYMovePointControlAction::_oldPos
protected

Definition at line 757 of file TYActions.h.

◆ _pPointControl

LPTYPointControl TYMovePointControlAction::_pPointControl
protected

Definition at line 756 of file TYActions.h.


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