Open 3D Engine EMotionFX 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.
EMStudio::BlendGraphWidget Class Reference

Inherits EMStudio::NodeGraphWidget.

Public Slots

void DeleteSelectedItems ()
 
void OnContextMenuCreateNode (const BlendGraphMimeEvent *event)
 
void CreateNodeFromMimeEvent (const BlendGraphMimeEvent *event, const QPoint &location)
 
void CreateNodeGroup ()
 
void AssignSelectedNodesToGroup (EMotionFX::AnimGraphNodeGroup *nodeGroup)
 
void RenameNodeGroup (EMotionFX::AnimGraphNodeGroup *nodeGroup)
 
void ChangeNodeGroupColor (EMotionFX::AnimGraphNodeGroup *nodeGroup)
 
void DeleteNodeGroup (EMotionFX::AnimGraphNodeGroup *nodeGroup)
 
void DeleteNodeGroupAndNodes (EMotionFX::AnimGraphNodeGroup *nodeGroup)
 
void EnableSelectedTransitions ()
 
void DisableSelectedTransitions ()
 
void OnRowsInserted (const QModelIndex &parent, int first, int last)
 
void OnRowsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
 
void OnDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles)
 
void OnFocusChanged (const QModelIndex &newFocusIndex, const QModelIndex &newFocusParent, const QModelIndex &oldFocusIndex, const QModelIndex &oldFocusParent)
 
void OnSelectionModelChanged (const QItemSelection &selected, const QItemSelection &deselected)
 

Public Member Functions

 BlendGraphWidget (AnimGraphPlugin *plugin, QWidget *parent)
 
bool CheckIfIsCreateConnectionValid (AZ::u16 portNr, GraphNode *portNode, NodePort *port, bool isInputPort) override
 
bool CheckIfIsValidTransition (GraphNode *sourceState, GraphNode *targetState) override
 
bool CheckIfIsValidTransitionSource (GraphNode *sourceState) override
 
bool CreateConnectionMustBeCurved () override
 
bool CreateConnectionShowsHelpers () override
 
void OnMoveStart () override
 
void OnMoveNode (GraphNode *node, int32 x, int32 y) override
 
void OnMoveEnd () override
 
void OnNodeCollapsed (GraphNode *node, bool isCollapsed) override
 
void OnShiftClickedNode (GraphNode *node) override
 
void OnVisualizeToggle (GraphNode *node, bool visualizeEnabled) override
 
void OnEnabledToggle (GraphNode *node, bool enabled) override
 
void OnSetupVisualizeOptions (GraphNode *node) override
 
void ReplaceTransition (NodeConnection *connection, QPoint oldStartOffset, QPoint oldEndOffset, GraphNode *oldSourceNode, GraphNode *oldTargetNode, GraphNode *newSourceNode, GraphNode *newTargetNode) override
 
void OnCreateConnection (AZ::u16 sourcePortNr, GraphNode *sourceNode, bool sourceIsInputPort, AZ::u16 targetPortNr, GraphNode *targetNode, bool targetIsInputPort, const QPoint &startOffset, const QPoint &endOffset) override
 
void DeleteSelectedItems (NodeGraph *nodeGraph)
 
bool CheckIfIsStateMachine ()
 
void AddAssignNodeToGroupSubmenu (QMenu *menu, EMotionFX::AnimGraph *animGraph, EMotionFX::AnimGraphNodeGroup *currentlyAssignedGroup)
 
void AddPreviewMotionSubmenu (QMenu *menu, AnimGraphActionManager *actionManager, const EMotionFX::AnimGraphNode *selectedNode)
 
void OnContextMenuEvent (QWidget *parentWidget, QPoint localMousePos, QPoint globalMousePos, AnimGraphPlugin *plugin, const AZStd::vector< EMotionFX::AnimGraphNode * > &selectedNodes, bool graphWidgetOnlyMenusEnabled, bool selectingAnyReferenceNodeFromNavigation, const AnimGraphActionFilter &actionFilter)
 
void SetSelectedTransitionsEnabled (bool isEnabled)
 
bool PreparePainting () override
 
void ProcessFrame (bool redraw)
 
void SetVirtualFinalNode (const QModelIndex &nodeModelIndex)
 
- Public Member Functions inherited from EMStudio::NodeGraphWidget
 NodeGraphWidget (AnimGraphPlugin *plugin, NodeGraph *activeGraph=nullptr, QWidget *parent=nullptr)
 
AnimGraphPluginGetPlugin ()
 
void SetActiveGraph (NodeGraph *graph)
 
NodeGraphGetActiveGraph () const
 
MCORE_INLINE const QPoint & GetMousePos () const
 
MCORE_INLINE void SetMousePos (const QPoint &pos)
 
MCORE_INLINE void SetShowFPS (bool showFPS)
 
size_t CalcNumSelectedNodes () const
 
QPoint LocalToGlobal (const QPoint &inPoint) const
 
QPoint GlobalToLocal (const QPoint &inPoint) const
 
QPoint SnapLocalToGrid (const QPoint &inPoint) const
 
void CalcSelectRect (QRect &outRect)
 
virtual bool PreparePainting ()
 
virtual bool CheckIfIsCreateConnectionValid (AZ::u16 portNr, GraphNode *portNode, NodePort *port, bool isInputPort)
 
virtual bool CheckIfIsValidTransition (GraphNode *sourceState, GraphNode *targetState)
 
virtual bool CheckIfIsValidTransitionSource (GraphNode *sourceState)
 
virtual bool CreateConnectionMustBeCurved ()
 
virtual bool CreateConnectionShowsHelpers ()
 
virtual void OnDrawOverlay (QPainter &painter)
 
virtual void OnMoveStart ()
 
virtual void OnMoveNode (GraphNode *node, int32 x, int32 y)
 
virtual void OnMoveEnd ()
 
virtual void OnCreateConnection (AZ::u16 sourcePortNr, GraphNode *sourceNode, bool sourceIsInputPort, AZ::u16 targetPortNr, GraphNode *targetNode, bool targetIsInputPort, const QPoint &startOffset, const QPoint &endOffset)
 
virtual void OnNodeCollapsed (GraphNode *node, bool isCollapsed)
 
virtual void OnShiftClickedNode (GraphNode *node)
 
virtual void OnVisualizeToggle (GraphNode *node, bool visualizeEnabled)
 
virtual void OnEnabledToggle (GraphNode *node, bool enabled)
 
virtual void OnSetupVisualizeOptions (GraphNode *node)
 
virtual void ReplaceTransition (NodeConnection *connection, QPoint oldStartOffset, QPoint oldEndOffset, GraphNode *oldSourceNode, GraphNode *oldTargetNode, GraphNode *newSourceNode, GraphNode *newTargetNode)
 
void EnableBorderOverwrite (const QColor &borderColor, float borderWidth)
 
void DisableBorderOverwrite ()
 
const QString & GetTitleBarText () const
 
void SetTitleBarText (const QString &text)
 

Static Public Member Functions

static bool OnEnterDropEvent (QDragEnterEvent *event, EMotionFX::AnimGraphNode *currentNode)
 

Protected Member Functions

void dropEvent (QDropEvent *event) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dragLeaveEvent (QDragLeaveEvent *event) override
 
void dragMoveEvent (QDragMoveEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void OnContextMenuEvent (QPoint mousePos, QPoint globalMousePos, const AnimGraphActionFilter &actionFilter)
 
bool event (QEvent *event) override
 
- Protected Member Functions inherited from EMStudio::NodeGraphWidget
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
void focusInEvent (QFocusEvent *event) override
 
void focusOutEvent (QFocusEvent *event) override
 
void initializeGL () override
 
void paintGL () override
 
void resizeGL (int w, int h) override
 
GraphNodeUpdateMouseCursor (const QPoint &localMousePos, const QPoint &globalMousePos)
 
void SelectNodesInGroup (EMotionFX::AnimGraphNodeGroup *nodeGroup)
 

Additional Inherited Members

- Signals inherited from EMStudio::NodeGraphWidget
void ActiveGraphChanged ()
 
- Static Public Attributes inherited from EMStudio::NodeGraphWidget
static constexpr uint32 s_snapCellSize = 10
 
- Protected Attributes inherited from EMStudio::NodeGraphWidget
AnimGraphPluginm_plugin
 
bool m_showFps
 
QPoint m_mousePos
 
QPoint m_mouseLastPos
 
QPoint m_mouseLastPressPos
 
QPoint m_selectStart
 
QPoint m_selectEnd
 
int m_prevWidth
 
int m_prevHeight
 
int m_curWidth
 
int m_curHeight
 
GraphNodem_moveNode
 
NodeGraphm_activeGraph = nullptr
 
QFont m_font
 
QFontMetrics * m_fontMetrics
 
AZ::Debug::Timer m_renderTimer
 
AZStd::string m_tempString
 
AZStd::string m_fullActorName
 
AZStd::string m_actorName
 
bool m_allowContextMenu
 
bool m_leftMousePressed
 
bool m_middleMousePressed
 
bool m_rightMousePressed
 
bool m_panning
 
bool m_rectSelecting
 
bool m_shiftPressed
 
bool m_controlPressed
 
bool m_altPressed
 
bool m_borderOverwrite = false
 
QColor m_borderOverwriteColor
 
float m_borderOverwriteWidth
 
QString m_titleBarText
 

Member Function Documentation

◆ CheckIfIsCreateConnectionValid()

bool EMStudio::BlendGraphWidget::CheckIfIsCreateConnectionValid ( AZ::u16  portNr,
GraphNode portNode,
NodePort port,
bool  isInputPort 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ CheckIfIsValidTransition()

bool EMStudio::BlendGraphWidget::CheckIfIsValidTransition ( GraphNode sourceState,
GraphNode targetState 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ CheckIfIsValidTransitionSource()

bool EMStudio::BlendGraphWidget::CheckIfIsValidTransitionSource ( GraphNode sourceState)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ CreateConnectionMustBeCurved()

bool EMStudio::BlendGraphWidget::CreateConnectionMustBeCurved ( )
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ CreateConnectionShowsHelpers()

bool EMStudio::BlendGraphWidget::CreateConnectionShowsHelpers ( )
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnCreateConnection()

void EMStudio::BlendGraphWidget::OnCreateConnection ( AZ::u16  sourcePortNr,
GraphNode sourceNode,
bool  sourceIsInputPort,
AZ::u16  targetPortNr,
GraphNode targetNode,
bool  targetIsInputPort,
const QPoint &  startOffset,
const QPoint &  endOffset 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnEnabledToggle()

void EMStudio::BlendGraphWidget::OnEnabledToggle ( GraphNode node,
bool  enabled 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnMoveEnd()

void EMStudio::BlendGraphWidget::OnMoveEnd ( )
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnMoveNode()

void EMStudio::BlendGraphWidget::OnMoveNode ( GraphNode node,
int32  x,
int32  y 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnMoveStart()

void EMStudio::BlendGraphWidget::OnMoveStart ( )
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnNodeCollapsed()

void EMStudio::BlendGraphWidget::OnNodeCollapsed ( GraphNode node,
bool  isCollapsed 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnSetupVisualizeOptions()

void EMStudio::BlendGraphWidget::OnSetupVisualizeOptions ( GraphNode node)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnShiftClickedNode()

void EMStudio::BlendGraphWidget::OnShiftClickedNode ( GraphNode node)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ OnVisualizeToggle()

void EMStudio::BlendGraphWidget::OnVisualizeToggle ( GraphNode node,
bool  visualizeEnabled 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ PreparePainting()

bool EMStudio::BlendGraphWidget::PreparePainting ( )
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.

◆ ReplaceTransition()

void EMStudio::BlendGraphWidget::ReplaceTransition ( NodeConnection connection,
QPoint  oldStartOffset,
QPoint  oldEndOffset,
GraphNode oldSourceNode,
GraphNode oldTargetNode,
GraphNode newSourceNode,
GraphNode newTargetNode 
)
overridevirtual

Reimplemented from EMStudio::NodeGraphWidget.


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