cherish
|
QUndoCommand that performs rotation of a canvas. More...
#include <EditEntityCommand.h>
Public Member Functions | |
EditCanvasRotateCommand (entity::UserScene *scene, const osg::Quat &rotate, QUndoCommand *parent=0) | |
void | undo () Q_DECL_OVERRIDE |
void | redo () Q_DECL_OVERRIDE |
Protected Attributes | |
osg::observer_ptr< entity::UserScene > | m_scene |
osg::observer_ptr< entity::Canvas > | m_canvas |
osg::Quat | m_rotate |
osg::Vec3f | m_center |
QUndoCommand that performs rotation of a canvas.
fur::EditCanvasRotateCommand::EditCanvasRotateCommand | ( | entity::UserScene * | scene, |
const osg::Quat & | rotate, | ||
QUndoCommand * | parent = 0 |
||
) |
scene | is the scene graph to edit, |
rotate | is 3D rotation quad, |
parent | is normally 0. |