![]() |
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 | |
RemoveCurveSegmentCommand (const QString &name, GraphicsScene *scene, ConnectionGraphicsItem::ControlPoint *item) | |
constructor that makes the command. If added to history stack, also does redo | |
RemoveCurveSegmentCommand (const QString &name, GraphicsScene *scene, ConnectionGraphicsItem *connection, 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::CurveSegment > | curveSegments |
vector of control points that were added | |
GraphicsScene * | graphicsScene |
graphics scene from which control points were removed | |
ConnectionGraphicsItem * | connectionItem |
graphics item from which control points were removed | |
QList< QGraphicsItem * > | parentsAtStart |
the nodes belonging with the control point vectors | |
QList< QGraphicsItem * > | parentsAtEnd |
A command that removed control points. Allows undo and redo.
Definition at line 834 of file UndoCommands.h.
Tinkercell::RemoveCurveSegmentCommand::RemoveCurveSegmentCommand | ( | 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 3632 of file UndoCommands.cpp.
Tinkercell::RemoveCurveSegmentCommand::RemoveCurveSegmentCommand | ( | const QString & | name, |
GraphicsScene * | scene, | ||
ConnectionGraphicsItem * | connection, | ||
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 3695 of file UndoCommands.cpp.
void Tinkercell::RemoveCurveSegmentCommand::redo | ( | ) |
Remove new control points. Control points were set in the constructor.
void |
Definition at line 3767 of file UndoCommands.cpp.
void Tinkercell::RemoveCurveSegmentCommand::undo | ( | ) |
Add new control points. Control points were set in the constructor.
void |
Definition at line 3734 of file UndoCommands.cpp.
graphics item from which control points were removed
Definition at line 865 of file UndoCommands.h.
vector of control points that were added
Definition at line 861 of file UndoCommands.h.
graphics scene from which control points were removed
Definition at line 863 of file UndoCommands.h.
QList<QGraphicsItem*> Tinkercell::RemoveCurveSegmentCommand::parentsAtEnd |
Definition at line 867 of file UndoCommands.h.
QList<QGraphicsItem*> Tinkercell::RemoveCurveSegmentCommand::parentsAtStart |
the nodes belonging with the control point vectors
Definition at line 867 of file UndoCommands.h.