Workspace 6.21.5
Public Member Functions | List of all members
RotateAnchor Class Reference

Command class for rotating a connection anchor.

#include <Workspace/Presentation/UndoCommands/rotateanchor.h>

Inheritance diagram for RotateAnchor:
[legend]

Public Member Functions

 RotateAnchor (DataExecution::Workspace &workspace, const QUuid &anchorId, int angleDelta, bool mergeable=true)
 
int id () const override
 
bool mergeWith (const QUndoCommand *other) override
 
void redo () override
 
void undo () override
 

Constructor & Destructor Documentation

◆ RotateAnchor()

RotateAnchor ( DataExecution::Workspace workspace,
const QUuid &  anchorId,
int  angleDelta,
bool  mergeable = true 
)
Parameters
workspaceThe workspace in which the anchor to be rotated resides.
anchorIdThe ID of the anchor to be rotated.
angleDeltaThe relative amount to rotate the anchor by in degrees.
mergeableIf true, this rotation can be merged with a previous rotation.

Member Function Documentation

◆ id()

int id ( ) const
override

◆ mergeWith()

bool mergeWith ( const QUndoCommand other)
override

◆ redo()

void redo ( )
override

◆ undo()

void undo ( )
override