cherish
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
fur::EditStrokesPushCommand Class Reference

QUndoCommand that performs push operation of a set of strokes. More...

#include <EditEntityCommand.h>

Inheritance diagram for fur::EditStrokesPushCommand:

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::UserScenem_scene
 
const std::vector< entity::Entity2D * > m_entities
 
osg::observer_ptr< entity::Canvasm_canvasCurrent
 
osg::observer_ptr< entity::Canvasm_canvasTarget
 
osg::Vec3f m_eye
 

Detailed Description

QUndoCommand that performs push operation of a set of strokes.

Constructor & Destructor Documentation

§ EditStrokesPushCommand()

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 
)
Parameters
sceneis the scene graph to edit,
entitiesis the vector of pointers on strokes to edit,
currentis the source canvas which contains the strokes,
targetis the destination canvas where strokes will be pushed to,
eyeis the camera eye position when the push strokes is performed,
parentis normally 0.

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