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.
|
#include <ConnectionVisualComponent.h>
Inherits GraphCanvas::RootGraphicsItem< QGraphicsPathItem >, ConnectionNotificationBus::Handler, ConnectionUIRequestBus::Handler, VisualNotificationBus::MultiHandler, StyleNotificationBus::Handler, AZ::SystemTickBus::Handler, SceneMemberNotificationBus::Handler, and AssetEditorSettingsNotificationBus::Handler.
Inherited by GraphCanvas::DataConnectionGraphicsItem.
Public Member Functions | |
AZ_CLASS_ALLOCATOR (ConnectionGraphicsItem, AZ::SystemAllocator) | |
ConnectionGraphicsItem (const AZ::EntityId &connectionEntityId) | |
void | Activate () |
void | Deactivate () |
void | RefreshStyle () |
const Styling::StyleHelper & | GetStyle () 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 |
Static Public Member Functions | |
static qreal | VectorLength (QPointF vectorPoint) |
Protected Member Functions | |
const AZ::EntityId & | GetConnectionEntityId () const |
AZ::EntityId | GetSourceSlotEntityId () const |
AZ::EntityId | GetTargetSlotEntityId () const |
EditorId | GetEditorId () const |
void | UpdateCurveStyle () |
virtual Styling::ConnectionCurveType | GetCurveStyle () const |
virtual void | UpdatePen () |
virtual void | OnActivate () |
virtual void | OnDeactivate () |
virtual void | OnPathChanged () |
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 | |
The NodeVisual is the QGraphicsItem for a given node, any components that are created on a Node will all be children QGraphicsItem of this one.