Open 3D Engine EMotionFX 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.
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 void OnDrawOverlay (QPainter &painter)
 
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
 

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