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::NodeGroupFrameGraphicsWidget Class Reference

The QGraphicsItem for the Node Group frame. More...

#include <NodeGroupFrameComponent.h>

Inherits GraphCanvas::NodeFrameGraphicsWidget, CommentNotificationBus::Handler, and SceneMemberNotificationBus::Handler.

Public Member Functions

 AZ_TYPE_INFO (NodeGroupFrameGraphicsWidget, "{708C3817-C668-47B7-A4CB-0896425E634A}")
 
 AZ_CLASS_ALLOCATOR (NodeGroupFrameGraphicsWidget, AZ::SystemAllocator)
 
 NodeGroupFrameGraphicsWidget (const AZ::EntityId &nodeVisual, NodeGroupFrameComponent &frameComponent)
 
void RefreshStyle (const AZ::EntityId &styleEntity)
 
void SetResizableMinimum (const QSizeF &minimumSize)
 
void SetUseTitleShape (bool enable)
 
void OnActivated () override
 
QPainterPath GetOutline () const override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *hoverEvent) override
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *hoverEvent) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *hoverEvent) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *pressEvent) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *releaseEvent) override
 
bool sceneEventFilter (QGraphicsItem *, QEvent *event) override
 
void OnEditBegin () override
 
void OnEditEnd () override
 
void OnCommentSizeChanged (const QSizeF &oldSize, const QSizeF &newSize) override
 
void OnCommentFontReloadBegin () override
 
void OnCommentFontReloadEnd () override
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *mouseEvent) override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
QPainterPath shape () const override
 
QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override
 
void OnMemberSetupComplete () override
 
void ResizeToGroup (int adjustHorizontal, int adjustVertical, bool growOnly=false)
 
- Public Member Functions inherited from GraphCanvas::NodeFrameGraphicsWidget
 AZ_TYPE_INFO (NodeFrameGraphicsWidget, "{33B9DFFB-9E40-4D55-82A7-85468F7E7790}")
 
 AZ_CLASS_ALLOCATOR (NodeFrameGraphicsWidget, AZ::SystemAllocator)
 
 NodeFrameGraphicsWidget (const AZ::EntityId &nodeVisual)
 
void Activate ()
 
void Deactivate ()
 
QRectF GetBoundingRect () const override
 
QGraphicsItem * GetRootGraphicsItem () override
 
QGraphicsLayoutItem * GetRootGraphicsLayoutItem () override
 
void SetSelected (bool selected) override
 
bool IsSelected () const override
 
void SetZValue (qreal zValue) override
 
qreal GetZValue () const override
 
void OnPositionChanged (const AZ::EntityId &entityId, const AZ::Vector2 &position) override
 
void OnStyleChanged () override
 
QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const override
 
void resizeEvent (QGraphicsSceneResizeEvent *) override
 
void OnDeleteItem () override
 
QGraphicsItem * AsGraphicsItem () override
 
bool Contains (const AZ::Vector2 &position) const override
 
void SetVisible (bool visible) override
 
bool IsVisible () const override
 
void OnNodeActivated () override
 
void OnAddedToScene (const AZ::EntityId &graphId) override
 
void OnNodeWrapped (const AZ::EntityId &wrappingNode) override
 
void AdjustSize () override
 
void SetSteppedSizingEnabled (bool sizing) override
 
void SetSnapToGrid (bool snapToGrid) override
 
void SetResizeToGrid (bool resizeToGrid) override
 
void SetGrid (AZ::EntityId gridId) override
 
qreal GetCornerRadius () const override
 
qreal GetBorderWidth () const override
 
- Public Member Functions inherited from GraphCanvas::RootGraphicsItem< QGraphicsWidget >
 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 void Reflect (AZ::ReflectContext *)=delete
 
- Static Public Member Functions inherited from GraphCanvas::NodeFrameGraphicsWidget
static void Reflect (AZ::ReflectContext *)=delete
 

Protected Member Functions

void UpdateHighlightState ()
 
void SetHighlightState (bool highlightState)
 
void ResizeTo (float height, float width)
 
void OnDeactivated () override
 
- Protected Member Functions inherited from GraphCanvas::NodeFrameGraphicsWidget
void SetDisplayState (NodeFrameDisplayState displayState)
 
void UpdateDisplayState (NodeFrameDisplayState displayState, bool enabled)
 
int GrowToNextStep (int value, int step, StepAxis stepAxis=StepAxis::Unknown) const
 
int RoundToClosestStep (int value, int step) const
 
int ShrinkToPreviousStep (int value, int step) const
 
virtual void OnRefreshStyle ()
 
 NodeFrameGraphicsWidget (const NodeFrameGraphicsWidget &)=delete
 
- Protected Member Functions inherited from GraphCanvas::RootGraphicsItem< QGraphicsWidget >
 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 OnEnabledStateChanged (RootGraphicsItemEnabledState enabledState)
 
void SetAllowQuickDeletion (bool enabled)
 

Friends

class NodeGroupFrameComponent
 
class NodeGroupFrameTitleWidget
 

Additional Inherited Members

- Public Types inherited from GraphCanvas::RootGraphicsItem< QGraphicsWidget >
enum  
 
- Protected Attributes inherited from GraphCanvas::NodeFrameGraphicsWidget
Styling::StyleHelper m_style
 
NodeFrameDisplayState m_displayState
 
bool m_enabledSteppedSizing = true
 
EditorId m_editorId
 
AZ::EntityId m_wrapperNode
 
bool m_isWrapped = false
 

Detailed Description

The QGraphicsItem for the Node Group frame.


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