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

An command that adds a new control point to a connection item; it has undo and redo functionality. More...

#include <UndoCommands.h>

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

List of all members.

Public Member Functions

 AddControlPointCommand (const QString &name, GraphicsScene *scene, ConnectionGraphicsItem::ControlPoint *item)
 constructor that makes the command. If added to history stack, also does redo
 AddControlPointCommand (const QString &name, GraphicsScene *scene, QList< ConnectionGraphicsItem::ControlPoint * > items)
 constructor that makes the command. If added to history stack, also does redo
virtual ~AddControlPointCommand ()
 destructor. deletes all control points that do not belong a scene
void redo ()
 Adds a new control point. Control points were set in the constructor.
void undo ()
 Remove new control points. Control points were set in the constructor.

Public Attributes

GraphicsScenegraphicsScene
 graphics scene to which control points were added
QList
< ConnectionGraphicsItem::ControlPoint * > 
graphicsItems
 control points that were added
QList< int > listK1
 the poisition(s) at which the control points were added
QList< int > listK2

Detailed Description

An command that adds a new control point to a connection item; it has undo and redo functionality.

Definition at line 719 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::AddControlPointCommand::AddControlPointCommand ( 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 3897 of file UndoCommands.cpp.

Tinkercell::AddControlPointCommand::AddControlPointCommand ( 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 3908 of file UndoCommands.cpp.

Tinkercell::AddControlPointCommand::~AddControlPointCommand ( ) [virtual]

destructor. deletes all control points that do not belong a scene

Definition at line 4105 of file UndoCommands.cpp.


Member Function Documentation

void Tinkercell::AddControlPointCommand::redo ( )

Adds a new control point. Control points were set in the constructor.

Parameters:
void
Returns:
void

Definition at line 3918 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::AddControlPointCommand::undo ( )

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

Parameters:
void
Returns:
void

Definition at line 4073 of file UndoCommands.cpp.

Here is the call graph for this function:


Member Data Documentation

control points that were added

Definition at line 747 of file UndoCommands.h.

graphics scene to which control points were added

Definition at line 745 of file UndoCommands.h.

the poisition(s) at which the control points were added

Definition at line 749 of file UndoCommands.h.

Definition at line 749 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