cherish
|
QUndoCommand that performs push operation of a set of strokes. More...
#include <EditEntityCommand.h>
Public Member Functions | |
EditStrokesPushCommand (entity::UserScene *scene, const std::vector< entity::Entity2D *> &entities, entity::Canvas *current, entity::Canvas *target, const osg::Vec3f &eye, QUndoCommand *parent=0) | |
void | undo () Q_DECL_OVERRIDE |
void | redo () Q_DECL_OVERRIDE |
Protected Member Functions | |
void | doPushStrokes (entity::Canvas &source, entity::Canvas &target) |
Protected Attributes | |
osg::observer_ptr< entity::UserScene > | m_scene |
const std::vector< entity::Entity2D * > | m_entities |
osg::observer_ptr< entity::Canvas > | m_canvasCurrent |
osg::observer_ptr< entity::Canvas > | m_canvasTarget |
osg::Vec3f | m_eye |
QUndoCommand that performs push operation of a set of strokes.
fur::EditStrokesPushCommand::EditStrokesPushCommand | ( | entity::UserScene * | scene, |
const std::vector< entity::Entity2D *> & | entities, | ||
entity::Canvas * | current, | ||
entity::Canvas * | target, | ||
const osg::Vec3f & | eye, | ||
QUndoCommand * | parent = 0 |
||
) |
scene | is the scene graph to edit, |
entities | is the vector of pointers on strokes to edit, |
current | is the source canvas which contains the strokes, |
target | is the destination canvas where strokes will be pushed to, |
eye | is the camera eye position when the push strokes is performed, |
parent | is normally 0. |