|
FuncDoodle
|
Rotates a selection by a fixed angle in degrees. More...
#include <Selection.h>
Public Member Functions | |
| RotateSelectionAction (unsigned long frameIndex, WeakPtr< Selection > sel, int32_t deg, const SharedPtr< ProjectFile > &proj) | |
| Constructs a rotation action. | |
| void | Undo () override |
| Undoes the rotation. | |
| void | Redo () override |
| Reapplies the rotation. | |
| int32_t | Deg () const |
| Returns rotation amount in degrees. | |
| WeakPtr< Selection > | Sel () const |
| Returns the affected selection. | |
| Public Member Functions inherited from FuncDoodle::Action | |
| virtual | ~Action ()=default |
| Virtual destructor for safe polymorphic destruction. | |
Private Attributes | |
| unsigned long | m_FrameIndex |
| Frame index where action occurred. | |
| WeakPtr< Selection > | m_Sel |
| Target selection. | |
| int32_t | m_Deg |
| Rotation in degrees. | |
| WeakPtr< ProjectFile > | m_Proj |
| Owning project. | |
Rotates a selection by a fixed angle in degrees.
|
inline |
|
inlinenodiscard |
Returns rotation amount in degrees.
|
overridevirtual |
Reapplies the rotation.
Implements FuncDoodle::Action.
Returns the affected selection.
|
overridevirtual |
Undoes the rotation.
Implements FuncDoodle::Action.
|
private |
Rotation in degrees.
|
private |
Frame index where action occurred.
|
private |
Owning project.