Open 3D Engine GraphCanvas Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GraphCanvas::DataConnectionGraphicsItem Class Reference

Inherits GraphCanvas::ConnectionGraphicsItem, RootGraphicsItemNotificationBus::Handler, and DataSlotNotificationBus::MultiHandler.

Public Member Functions

 AZ_CLASS_ALLOCATOR (DataConnectionGraphicsItem, AZ::SystemAllocator)
 
 DataConnectionGraphicsItem (const AZ::EntityId &connectionEntityId)
 
void OnStyleChanged () override
 
void OnSourceSlotIdChanged (const AZ::EntityId &oldSlotId, const AZ::EntityId &newSlotId) override
 
void OnTargetSlotIdChanged (const AZ::EntityId &oldSlotId, const AZ::EntityId &newSlotId) override
 
void OnDisplayTypeChanged (const AZ::Uuid &dataTypeId, const AZStd::vector< AZ::Uuid > &typeIds) override
 
void UpdateDataColors ()
 
void OnDisplayStateChanged (RootGraphicsItemDisplayState oldState, RootGraphicsItemDisplayState newState) override
 
- Public Member Functions inherited from GraphCanvas::ConnectionGraphicsItem
 AZ_CLASS_ALLOCATOR (ConnectionGraphicsItem, AZ::SystemAllocator)
 
 ConnectionGraphicsItem (const AZ::EntityId &connectionEntityId)
 
void Activate ()
 
void Deactivate ()
 
void RefreshStyle ()
 
const Styling::StyleHelperGetStyle () const
 
void UpdateOffset ()
 
QRectF GetBoundingRect () const override
 
void OnSourceSlotIdChanged (const AZ::EntityId &oldSlotId, const AZ::EntityId &newSlotId) override
 
void OnTargetSlotIdChanged (const AZ::EntityId &oldSlotId, const AZ::EntityId &newSlotId) override
 
void OnTooltipChanged (const AZStd::string &tooltip) override
 
void OnStyleChanged () override
 
void OnSystemTick () override
 
void OnItemChange (const AZ::EntityId &entityId, QGraphicsItem::GraphicsItemChange change, const QVariant &value) override
 
void UpdateConnectionPath () override
 
void SetAltDeletionEnabled (bool enabled) override
 
void SetGraphicsItemFlags (QGraphicsItem::GraphicsItemFlags flags) override
 
void OnSceneMemberHidden () override
 
void OnSceneMemberShown () override
 
void OnSceneSet (const GraphId &graphId) override
 
void OnSettingsChanged () override
 
- Public Member Functions inherited from GraphCanvas::RootGraphicsItem< QGraphicsPathItem >
 RootGraphicsItem (AZ::EntityId itemId)
 
AZ::EntityId GetEntityId () const
 
bool IsSnappedToGrid () const
 
bool IsResizedToGrid () const
 
int GetGridXStep () const
 
int GetGridYStep () const
 
void SetSnapToGridEnabled (bool enabled)
 
void SetResizeToGridEnabled (bool enabled)
 
void SetGridSize (const AZ::Vector2 &gridSize)
 
void SetAnchorPoint (const AZ::Vector2 &anchorPoint)
 
void OnStateChanged ([[maybe_unused]] const RootGraphicsItemDisplayState &displayState) override
 
void OnTick (float delta, AZ::ScriptTimePoint) override
 
void AnimatePositionTo (const QPointF &scenePoint, const AZStd::chrono::milliseconds &duration) override
 
void CancelAnimation () override
 
void OffsetBy (const AZ::Vector2 &delta) override
 
void SignalGroupAnimationStart (AZ::EntityId groupId) override
 
void SignalGroupAnimationEnd (AZ::EntityId groupId) override
 
StateController< RootGraphicsItemDisplayState > * GetDisplayStateStateController () override
 
RootGraphicsItemDisplayState GetDisplayState () const override
 
void SetEnabledState (RootGraphicsItemEnabledState state) override
 
RootGraphicsItemEnabledState GetEnabledState () const override
 

Protected Member Functions

Styling::ConnectionCurveType GetCurveStyle () const override
 
void UpdatePen () override
 
void OnPathChanged () override
 
- Protected Member Functions inherited from GraphCanvas::ConnectionGraphicsItem
const AZ::EntityId & GetConnectionEntityId () const
 
AZ::EntityId GetSourceSlotEntityId () const
 
AZ::EntityId GetTargetSlotEntityId () const
 
EditorId GetEditorId () const
 
void UpdateCurveStyle ()
 
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 
QPainterPath shape () const override
 
void mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent) override
 
void focusOutEvent (QFocusEvent *focusEvent) override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
- Protected Member Functions inherited from GraphCanvas::RootGraphicsItem< QGraphicsPathItem >
 RootGraphicsItem (const RootGraphicsItem &)=delete
 
void SetDisplayState (RootGraphicsItemDisplayState displayState)
 
void OnAltModifier (bool enabled) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *hoverEvent) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *hoverEvent) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *mouseEvent) override
 
QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override
 
int type () const override
 
virtual void OnDeleteItem ()
 
virtual void OnEnabledStateChanged (RootGraphicsItemEnabledState enabledState)
 
void SetAllowQuickDeletion (bool enabled)
 

Additional Inherited Members

- Public Types inherited from GraphCanvas::RootGraphicsItem< QGraphicsPathItem >
enum  
 
- Static Public Member Functions inherited from GraphCanvas::ConnectionGraphicsItem
static qreal VectorLength (QPointF vectorPoint)
 

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