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

Inherits GraphCanvas::RootGraphicsItem< QGraphicsItem >, and StyleNotificationBus::Handler.

Public Member Functions

 AZ_TYPE_INFO (GridGraphicsItem, "{D483E19C-8046-472B-801D-A6B1A9F2FF33}")
 
 AZ_CLASS_ALLOCATOR (GridGraphicsItem, AZ::SystemAllocator)
 
 GridGraphicsItem (GridVisualComponent &gridVisual)
 
void Init ()
 
void Activate ()
 
void Deactivate ()
 
QRectF GetBoundingRect () const override
 
void OnStyleChanged () override
 
QRectF boundingRect (void) const override
 
- Public Member Functions inherited from GraphCanvas::RootGraphicsItem< QGraphicsItem >
 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 *context)=delete
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
- Protected Member Functions inherited from GraphCanvas::RootGraphicsItem< QGraphicsItem >
 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< QGraphicsItem >
enum  
 

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