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

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

#include <TYActions.h>

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

Public Member Functions

 TYInsertPointPolyLineAction (LPTYElement pElt, TYTabPoint &polyLine, int ptId, const TYPoint &pt, TYModelerFrame *pModeler, const QString &actionName)
 Constructor. More...
 
virtual ~TYInsertPointPolyLineAction ()
 
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 _pt
 The new inserted point. More...
 
- Protected Attributes inherited from TYModelerAction
TYRenderWindowInteractor_pInteractor
 
TYModelerFrame_pModeler
 

Detailed Description

Action editing for a polyline (when inserting point)

Action editing for a polyline (when deleting point)

Author
Projet_Tympan

Definition at line 1107 of file TYActions.h.

Constructor & Destructor Documentation

◆ TYInsertPointPolyLineAction()

TYInsertPointPolyLineAction::TYInsertPointPolyLineAction ( LPTYElement  pElt,
TYTabPoint polyLine,
int  ptId,
const TYPoint pt,
TYModelerFrame pModeler,
const QString &  actionName 
)

Constructor.

Parameters
pEltThe element which owns the edited polyline
polyLineThe edited polyline
ptIdThe index of the new inserted point
ptThe new inserted point
pModelerThe modeler
actionNameThe action name

Definition at line 1491 of file TYActions.cpp.

◆ ~TYInsertPointPolyLineAction()

TYInsertPointPolyLineAction::~TYInsertPointPolyLineAction ( )
virtual

Destructor.

Definition at line 1498 of file TYActions.cpp.

Member Function Documentation

◆ redo()

void TYInsertPointPolyLineAction::redo ( )
virtual

The redo action.

Implements TYModelerAction.

Definition at line 1509 of file TYActions.cpp.

Here is the call graph for this function:

◆ undo()

void TYInsertPointPolyLineAction::undo ( )
virtual

The undo action.

Implements TYModelerAction.

Definition at line 1500 of file TYActions.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _pElt

LPTYElement TYInsertPointPolyLineAction::_pElt
protected

The element which owns the edited polyline.

Definition at line 1138 of file TYActions.h.

◆ _polyLine

TYTabPoint& TYInsertPointPolyLineAction::_polyLine
protected

The edited polyline.

Definition at line 1140 of file TYActions.h.

◆ _pt

TYPoint TYInsertPointPolyLineAction::_pt
protected

The new inserted point.

Definition at line 1144 of file TYActions.h.

◆ _ptId

int TYInsertPointPolyLineAction::_ptId
protected

Id of the point.

Definition at line 1142 of file TYActions.h.


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