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

this command changes the pen of an item More...

#include <UndoCommands.h>

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

List of all members.

Public Member Functions

 ChangeZCommand (const QString &name, QGraphicsScene *scene, QGraphicsItem *item, qreal to)
 constructor
 ChangeZCommand (const QString &name, QGraphicsScene *scene, const QList< QGraphicsItem * > &items, const QList< qreal > &to)
 constructor
void redo ()
void undo ()

Detailed Description

this command changes the pen of an item

Definition at line 332 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ChangeZCommand::ChangeZCommand ( const QString &  name,
QGraphicsScene *  scene,
QGraphicsItem *  item,
qreal  to 
)

constructor

Parameters:
QStringname of command
GraphicsScene*scene where change happened
QGraphicsItem*item that is affected
doublenew Z value
Tinkercell::ChangeZCommand::ChangeZCommand ( const QString &  name,
QGraphicsScene *  scene,
const QList< QGraphicsItem * > &  items,
const QList< qreal > &  to 
)

constructor

Parameters:
QStringname of command
GraphicsScene*scene where change happened
QList<QGraphicsItem*>&item that is affected
QList<qreal>&new Z (one for each item)

Member Function Documentation

void Tinkercell::ChangeZCommand::redo ( )

Definition at line 1884 of file UndoCommands.cpp.

void Tinkercell::ChangeZCommand::undo ( )

Definition at line 1895 of file UndoCommands.cpp.


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