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

Inherits GraphCanvas::ConstructContextMenuAction.

Inherited by GraphCanvas::AddCommentPresetMenuAction, and GraphCanvas::AddNodeGroupPresetMenuAction.

Public Member Functions

 AZ_CLASS_ALLOCATOR (AddPresetMenuAction, AZ::SystemAllocator)
 
bool IsInSubMenu () const override
 
AZStd::string GetSubMenuPath () const override
 
SceneReaction TriggerAction (const AZ::Vector2 &scenePos) override
 
- Public Member Functions inherited from GraphCanvas::ConstructContextMenuAction
ActionGroupId GetActionGroupId () const override
 
- Public Member Functions inherited from GraphCanvas::ContextMenuAction
virtual ActionGroupId GetActionGroupId () const =0
 
void SetTarget (const GraphId &graphId, const AZ::EntityId &targetId)
 
virtual bool IsInSubMenu () const
 
virtual AZStd::string GetSubMenuPath () const
 
virtual SceneReaction TriggerAction (const AZ::Vector2 &scenePos)
 
virtual SceneReaction TriggerAction (const GraphId &graphId, const AZ::Vector2 &scenePos)
 

Protected Member Functions

 AddPresetMenuAction (EditorContextMenu *contextMenu, AZStd::shared_ptr< ConstructPreset > preset, AZStd::string_view subMenuPath)
 
- Protected Member Functions inherited from GraphCanvas::ConstructContextMenuAction
 ConstructContextMenuAction (AZStd::string_view actionName, QObject *parent)
 
- Protected Member Functions inherited from GraphCanvas::ContextMenuAction
 ContextMenuAction (AZStd::string_view actionName, QObject *parent)
 
const AZ::EntityId & GetTargetId () const
 
const GraphId & GetGraphId () const
 
EditorId GetEditorId () const
 
virtual void RefreshAction ()
 
virtual void RefreshAction (const GraphId &graphId, const AZ::EntityId &targetId)
 

Additional Inherited Members

- Public Types inherited from GraphCanvas::ContextMenuAction
enum class  SceneReaction { Unknown , PostUndo , Nothing }
 
- Static Public Member Functions inherited from GraphCanvas::ConstructContextMenuAction
static ActionGroupId GetConstructContextMenuActionGroupId ()
 

Member Function Documentation

◆ GetSubMenuPath()

AZStd::string GraphCanvas::AddPresetMenuAction::GetSubMenuPath ( ) const
overridevirtual

Reimplemented from GraphCanvas::ContextMenuAction.

◆ IsInSubMenu()

bool GraphCanvas::AddPresetMenuAction::IsInSubMenu ( ) const
overridevirtual

Reimplemented from GraphCanvas::ContextMenuAction.

◆ TriggerAction()

SceneReaction GraphCanvas::AddPresetMenuAction::TriggerAction ( const AZ::Vector2 &  scenePos)
overridevirtual

Reimplemented from GraphCanvas::ContextMenuAction.


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