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

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

#include <UndoCommands.h>

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

List of all members.

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
GraphicsScenegraphicsScene
 graphics scene to which control points were added
QList< int > listK1
 the poisition(s) at which the control points were added
QList< int > listK2

Detailed Description

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

Definition at line 757 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::RemoveControlPointCommand::RemoveControlPointCommand ( 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 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

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

Definition at line 4129 of file UndoCommands.cpp.


Member Function Documentation

void Tinkercell::RemoveControlPointCommand::redo ( )

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

Parameters:
void
Returns:
void

Definition at line 4154 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::RemoveControlPointCommand::undo ( )

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

Parameters:
void
Returns:
void

Definition at line 4138 of file UndoCommands.cpp.

Here is the call graph for this function:


Member Data Documentation

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.


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