libs/flake

KoPathPointInsertCommand Class Reference

The undo / redo command for inserting path points. More...

#include <KoPathPointInsertCommand.h>

Inheritance diagram for KoPathPointInsertCommand:

List of all members.

Public Member Functions

 KoPathPointInsertCommand (const QList< KoPathPointData > &pointDataList, qreal insertPosition, QUndoCommand *parent=0)
virtual ~KoPathPointInsertCommand ()
QList< KoPathPoint * > insertedPoints () const
void redo ()
void undo ()

Detailed Description

The undo / redo command for inserting path points.

Definition at line 32 of file KoPathPointInsertCommand.h.


Constructor & Destructor Documentation

KoPathPointInsertCommand::KoPathPointInsertCommand ( const QList< KoPathPointData > &  pointDataList,
qreal  insertPosition,
QUndoCommand parent = 0 
)

Command to insert path points.

This splits the segments at the given position by inserting new points. The De Casteljau algorithm is used for calculating the position of the new points.

Parameters:
pointDataList describing the segments to split
insertPosition the position to insert at [0..1]
parent the parent command used for macro commands

Definition at line 24 of file KoPathPointInsertCommand.cpp.

KoPathPointInsertCommand::~KoPathPointInsertCommand (  )  [virtual]

Definition at line 64 of file KoPathPointInsertCommand.cpp.


Member Function Documentation

QList< KoPathPoint * > KoPathPointInsertCommand::insertedPoints (  )  const

Returns list of inserted points.

Definition at line 135 of file KoPathPointInsertCommand.cpp.

void KoPathPointInsertCommand::redo (  ) 

redo the command

Reimplemented from QUndoCommand.

Definition at line 71 of file KoPathPointInsertCommand.cpp.

void KoPathPointInsertCommand::undo (  ) 

revert the actions done in redo

Reimplemented from QUndoCommand.

Definition at line 100 of file KoPathPointInsertCommand.cpp.


The documentation for this class was generated from the following files: