TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions | Public Attributes
Tinkercell::RemoveCurveSegmentCommand Class Reference

A command that removed control points. Allows undo and redo. More...

#include <UndoCommands.h>

Inheritance diagram for Tinkercell::RemoveCurveSegmentCommand:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::RemoveCurveSegmentCommand:
Collaboration graph
[legend]

List of all members.

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
GraphicsScenegraphicsScene
 graphics scene from which control points were removed
ConnectionGraphicsItemconnectionItem
 graphics item from which control points were removed
QList< QGraphicsItem * > parentsAtStart
 the nodes belonging with the control point vectors
QList< QGraphicsItem * > parentsAtEnd

Detailed Description

A command that removed control points. Allows undo and redo.

Definition at line 834 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::RemoveCurveSegmentCommand::RemoveCurveSegmentCommand ( const QString &  name,
GraphicsScene scene,
ConnectionGraphicsItem::ControlPoint item 
)

constructor that makes the command. If added to history stack, also does redo

Parameters:
name
graphicsscene
controlpoint(s) that have been added
Returns:
void

Definition at line 3632 of file UndoCommands.cpp.

Here is the call graph for this function:

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

Parameters:
name
graphicsscene
controlpoint(s) that have been added
Returns:
void

Definition at line 3695 of file UndoCommands.cpp.


Member Function Documentation

void Tinkercell::RemoveCurveSegmentCommand::redo ( )

Remove new control points. Control points were set in the constructor.

Parameters:
void
Returns:
void

Definition at line 3767 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::RemoveCurveSegmentCommand::undo ( )

Add new control points. Control points were set in the constructor.

Parameters:
void
Returns:
void

Definition at line 3734 of file UndoCommands.cpp.

Here is the call graph for this function:


Member Data Documentation

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.

Definition at line 867 of file UndoCommands.h.

the nodes belonging with the control point vectors

Definition at line 867 of file UndoCommands.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines