![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
A command that removed control points. Allows undo and redo. More...
#include <UndoCommands.h>
Public Member Functions | |
RemoveControlPointCommand (const QString &name, GraphicsScene *scene, ConnectionGraphicsItem::ControlPoint *item) | |
constructor that makes the command. If added to history stack, also does redo | |
RemoveControlPointCommand (const QString &name, GraphicsScene *scene, QList< ConnectionGraphicsItem::ControlPoint * > items) | |
constructor that makes the command. If added to history stack, also does redo | |
void | redo () |
Remove new control points. Control points were set in the constructor. | |
void | undo () |
Add new control points. Control points were set in the constructor. | |
Public Attributes | |
QList < ConnectionGraphicsItem::ControlPoint * > | graphicsItems |
control points that were added | |
GraphicsScene * | graphicsScene |
graphics scene to which control points were added | |
QList< int > | listK1 |
the poisition(s) at which the control points were added | |
QList< int > | listK2 |
A command that removed control points. Allows undo and redo.
Definition at line 757 of file UndoCommands.h.
Tinkercell::RemoveControlPointCommand::RemoveControlPointCommand | ( | const QString & | name, |
GraphicsScene * | scene, | ||
ConnectionGraphicsItem::ControlPoint * | item | ||
) |
constructor that makes the command. If added to history stack, also does redo
name | |
graphics | scene |
control | point(s) that have been added |
Definition at line 4119 of file UndoCommands.cpp.
Tinkercell::RemoveControlPointCommand::RemoveControlPointCommand | ( | const QString & | name, |
GraphicsScene * | scene, | ||
QList< ConnectionGraphicsItem::ControlPoint * > | items | ||
) |
constructor that makes the command. If added to history stack, also does redo
name | |
graphics | scene |
control | point(s) that have been added |
Definition at line 4129 of file UndoCommands.cpp.
void Tinkercell::RemoveControlPointCommand::redo | ( | ) |
Remove new control points. Control points were set in the constructor.
void |
Definition at line 4154 of file UndoCommands.cpp.
void Tinkercell::RemoveControlPointCommand::undo | ( | ) |
Add new control points. Control points were set in the constructor.
void |
Definition at line 4138 of file UndoCommands.cpp.
control points that were added
Definition at line 783 of file UndoCommands.h.
graphics scene to which control points were added
Definition at line 785 of file UndoCommands.h.
the poisition(s) at which the control points were added
Definition at line 787 of file UndoCommands.h.
Definition at line 787 of file UndoCommands.h.