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

Event emitted when a ConnectionAnchor has been moved.

#include <Workspace/Presentation/connectionanchorevents.h>

Inheritance diagram for MoveAnchorEvent:
[legend]

Public Member Functions

 MoveAnchorEvent (const QUuid &anchorId, const QPointF &delta, bool allowSnapToGrid=true)
 
bool getAllowSnapToGrid () const
 
const QUuid & getAnchorId () const
 
const QPointF & getDelta () const
 
- Public Member Functions inherited from ObservableEventType< MoveAnchorEvent >
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::AllObservableEvents > & eventID ()
 
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::ProgressEvent > & eventID ()
 
const EventIDSingleton< MoveAnchorEvent > & getEventID () const override
 
- Public Member Functions inherited from ObservableEvent
virtual ~ObservableEvent ()=default
 
virtual const EventIDgetEventID () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from ObservableEventType< MoveAnchorEvent >
static const EventIDSingleton< MoveAnchorEvent > & eventID ()
 
- Protected Member Functions inherited from ObservableEventType< MoveAnchorEvent >
 ObservableEventType ()=default
 

Constructor & Destructor Documentation

◆ MoveAnchorEvent()

MoveAnchorEvent ( const QUuid &  anchorId,
const QPointF &  delta,
bool  allowSnapToGrid = true 
)
inline
Parameters
anchorIdThe id of the anchor to move.
deltaThe amount to move the specified anchor relative to its current position.
allowSnapToGridIf true, the anchor will be forced to the nearest grid point after shifting it by delta. Set this to false in situations where the exact delta must be applied, such as when undoing a move event.

Member Function Documentation

◆ getAllowSnapToGrid()

bool getAllowSnapToGrid ( ) const
inline

◆ getAnchorId()

const QUuid & getAnchorId ( ) const
inline

◆ getDelta()

const QPointF & getDelta ( ) const
inline