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

Inherits EMStudio::AnimGraphVisualNode.

Public Types

enum  { TYPE_ID = 0x00000002 }
 
- Public Types inherited from EMStudio::GraphNode
enum  { TYPE_ID = 0x00000001 }
 

Public Member Functions

 BlendTreeVisualNode (const QModelIndex &modelIndex, AnimGraphPlugin *plugin, EMotionFX::AnimGraphNode *node)
 
void Sync () override
 
uint32 GetType () const override
 
void Render (QPainter &painter, QPen *pen, bool renderShadow) override
 
int32 CalcRequiredHeight () const override
 
- Public Member Functions inherited from EMStudio::AnimGraphVisualNode
 AnimGraphVisualNode (const QModelIndex &modelIndex, AnimGraphPlugin *plugin, EMotionFX::AnimGraphNode *node)
 
void Sync () override
 
MCORE_INLINE void SetEMFXNode (EMotionFX::AnimGraphNode *emfxNode)
 
MCORE_INLINE EMotionFX::AnimGraphNodeGetEMFXNode ()
 
MCORE_INLINE AnimGraphPluginGetAnimGraphPlugin () const
 
EMotionFX::AnimGraphInstanceExtractAnimGraphInstance () const
 
void RenderTracks (QPainter &painter, const QColor bgColor, const QColor bgColor2, int32 heightOffset=0)
 
void RenderDebugInfo (QPainter &painter)
 
bool GetAlwaysColor () const override
 
bool GetHasError () const override
 
- Public Member Functions inherited from EMStudio::GraphNode
 GraphNode (const QModelIndex &modelIndex, const char *name, AZ::u16 numInputs=0, AZ::u16 numOutputs=0)
 
const QModelIndex & GetModelIndex () const
 
MCORE_INLINE void UpdateNameAndPorts ()
 
MCORE_INLINE AZStd::vector< NodeConnection * > & GetConnections ()
 
MCORE_INLINE size_t GetNumConnections ()
 
MCORE_INLINE NodeConnectionGetConnection (size_t index)
 
MCORE_INLINE NodeConnectionAddConnection (NodeConnection *con)
 
MCORE_INLINE void SetParentGraph (NodeGraph *graph)
 
MCORE_INLINE NodeGraphGetParentGraph ()
 
MCORE_INLINE NodePortGetInputPort (AZ::u16 index)
 
MCORE_INLINE NodePortGetOutputPort (AZ::u16 index)
 
MCORE_INLINE const QRect & GetRect () const
 
MCORE_INLINE const QRect & GetFinalRect () const
 
MCORE_INLINE const QRect & GetVizRect () const
 
MCORE_INLINE void SetBaseColor (const QColor &color)
 
MCORE_INLINE QColor GetBaseColor () const
 
MCORE_INLINE bool GetIsVisible () const
 
MCORE_INLINE const char * GetName () const
 
MCORE_INLINE const AZStd::string & GetNameString () const
 
MCORE_INLINE bool GetCreateConFromOutputOnly () const
 
MCORE_INLINE void SetCreateConFromOutputOnly (bool enable)
 
MCORE_INLINE bool GetIsDeletable () const
 
MCORE_INLINE bool GetIsCollapsed () const
 
void SetIsCollapsed (bool collapsed)
 
MCORE_INLINE void SetDeletable (bool deletable)
 
void SetSubTitle (const char *subTitle, bool updatePixmap=true)
 
MCORE_INLINE const char * GetSubTitle () const
 
MCORE_INLINE bool GetIsInsideArrowRect (const QPoint &point) const
 
MCORE_INLINE void SetVisualizeColor (const QColor &color)
 
MCORE_INLINE const QColor & GetVisualizeColor () const
 
MCORE_INLINE void SetHasChildIndicatorColor (const QColor &color)
 
MCORE_INLINE const QColor & GetHasChildIndicatorColor () const
 
MCORE_INLINE bool GetIsHighlighted () const
 
MCORE_INLINE bool GetIsVisualizedHighlighted () const
 
MCORE_INLINE bool GetIsInsideVisualizeRect (const QPoint &point) const
 
MCORE_INLINE void SetIsVisualized (bool enabled)
 
MCORE_INLINE bool GetIsVisualized () const
 
MCORE_INLINE void SetIsEnabled (bool enabled)
 
MCORE_INLINE bool GetIsEnabled () const
 
MCORE_INLINE void SetCanVisualize (bool canViz)
 
MCORE_INLINE bool GetCanVisualize () const
 
MCORE_INLINE float GetOpacity () const
 
MCORE_INLINE void SetOpacity (float opacity)
 
AZ::u16 GetNumInputPorts () const
 
AZ::u16 GetNumOutputPorts () const
 
NodePortAddInputPort (bool updateTextPixMap)
 
NodePortAddOutputPort (bool updateTextPixMap)
 
void RemoveAllInputPorts ()
 
void RemoveAllOutputPorts ()
 
void RemoveAllConnections ()
 
bool RemoveConnection (const QModelIndex &modelIndex, bool removeFromMemory=true)
 
bool RemoveConnection (const void *connection, bool removeFromMemory=true)
 
virtual int32 CalcRequiredHeight () const
 
virtual int32 CalcRequiredWidth ()
 
virtual int CalcMaxInputPortWidth () const
 
virtual int CalcMaxOutputPortWidth () const
 
bool GetIsInside (const QPoint &globalPoint) const
 
bool GetIsSelected () const
 
void MoveRelative (const QPoint &deltaMove)
 
void MoveAbsolute (const QPoint &newUpperLeft)
 
virtual void Update (const QRect &visibleRect, const QPoint &mousePos)
 
void UpdateRects ()
 
void RenderConnections (const QItemSelectionModel &selectionModel, QPainter &painter, QPen *pen, QBrush *brush, const QRect &invMappedVisibleRect, int32 stepSize)
 
virtual void SetName (const char *name, bool updatePixmap=true)
 
void SetNodeInfo (const AZStd::string &info)
 
virtual uint32 GetType () const
 
virtual void Render (QPainter &painter, QPen *pen, bool renderShadow)
 
virtual void RenderHasChildsIndicator (QPainter &painter, QPen *pen, QColor borderColor, QColor bgColor)
 
virtual void RenderVisualizeRect (QPainter &painter, const QColor &bgColor, const QColor &bgColor2)
 
virtual QRect CalcInputPortRect (AZ::u16 portNr)
 
virtual QRect CalcOutputPortRect (AZ::u16 portNr)
 
virtual NodePortFindPort (int32 x, int32 y, AZ::u16 *outPortNr, bool *outIsInputPort, bool includeInputPorts)
 
virtual bool GetAlwaysColor () const
 
virtual bool GetHasError () const
 
MCORE_INLINE bool GetIsProcessed () const
 
MCORE_INLINE void SetIsProcessed (bool processed)
 
MCORE_INLINE bool GetIsUpdated () const
 
MCORE_INLINE void SetIsUpdated (bool updated)
 
virtual void Sync ()
 
void CalcOutputPortTextRect (AZ::u16 portNr, QRect &outRect, bool local=false)
 
void CalcInputPortTextRect (AZ::u16 portNr, QRect &outRect, bool local=false)
 
void CalcInfoTextRect (QRect &outRect, bool local=false)
 
MCORE_INLINE void SetHasVisualOutputPorts (bool hasVisualOutputPorts)
 
MCORE_INLINE bool GetHasVisualOutputPorts () const
 
const QColor & GetBorderColor () const
 
void SetBorderColor (const QColor &color)
 
void ResetBorderColor ()
 
virtual void UpdateTextPixmap ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EMStudio::GraphNode
static void RenderText (QPainter &painter, const QString &text, const QColor &textColor, const QFont &font, const QFontMetrics &fontMetrics, Qt::Alignment textAlignment, const QRect &rect)
 
- Protected Member Functions inherited from EMStudio::GraphNode
void RenderShadow (QPainter &painter)
 
void GetNodePortColors (NodePort *nodePort, const QColor &borderColor, const QColor &headerBgColor, QColor *outBrushColor, QColor *outPenColor)
 
- Protected Attributes inherited from EMStudio::AnimGraphVisualNode
EMotionFX::AnimGraphNodem_emfxNode
 
EMotionFX::AnimGraphPose m_pose
 
AnimGraphPluginm_plugin
 
- Protected Attributes inherited from EMStudio::GraphNode
QPersistentModelIndex m_modelIndex
 
AZStd::string m_name
 
QString m_elidedName
 
QPainter m_textPainter
 
AZStd::string m_subTitle
 
QString m_elidedSubTitle
 
AZStd::string m_nodeInfo
 
QString m_elidedNodeInfo
 
QBrush m_brush
 
QColor m_baseColor
 
QRect m_rect
 
QRect m_finalRect
 
QRect m_arrowRect
 
QRect m_visualizeRect
 
QColor m_borderColor
 
QColor m_visualizeColor
 
QColor m_hasChildIndicatorColor
 
AZStd::vector< NodeConnection * > m_connections
 
float m_opacity
 
bool m_isVisible
 
QFont m_headerFont
 
QFont m_portNameFont
 
QFont m_subTitleFont
 
QFont m_infoTextFont
 
QFontMetrics * m_portFontMetrics
 
QFontMetrics * m_headerFontMetrics
 
QFontMetrics * m_infoFontMetrics
 
QFontMetrics * m_subTitleFontMetrics
 
QTextOption m_textOptionsCenter
 
QTextOption m_textOptionsAlignLeft
 
QTextOption m_textOptionsAlignRight
 
QTextOption m_textOptionsCenterHv
 
QStaticText m_titleText
 
QStaticText m_subTitleText
 
QStaticText m_infoText
 
AZStd::vector< QStaticText > m_inputPortText
 
AZStd::vector< QStaticText > m_outputPortText
 
int32 m_requiredWidth
 
bool m_nameAndPortsUpdated
 
NodeGraphm_parentGraph
 
AZStd::vector< NodePortm_inputPorts
 
AZStd::vector< NodePortm_outputPorts
 
bool m_conFromOutputOnly
 
bool m_isDeletable
 
bool m_isCollapsed
 
bool m_isProcessed
 
bool m_isUpdated
 
bool m_visualize
 
bool m_canVisualize
 
bool m_visualizeHighlighted
 
bool m_isEnabled
 
bool m_isHighlighted
 
bool m_canHaveChildren
 
bool m_hasVisualGraph
 
bool m_hasVisualOutputPorts
 
int m_maxInputWidth
 
int m_maxOutputWidth
 
QPolygonF m_substPoly
 
- Static Protected Attributes inherited from EMStudio::GraphNode
static QColor s_portHighlightColo
 
static QColor s_portHighlightBGColor
 

Member Function Documentation

◆ CalcRequiredHeight()

int32 EMStudio::BlendTreeVisualNode::CalcRequiredHeight ( ) const
overridevirtual

Reimplemented from EMStudio::GraphNode.

◆ GetType()

uint32 EMStudio::BlendTreeVisualNode::GetType ( ) const
inlineoverridevirtual

Reimplemented from EMStudio::GraphNode.

◆ Render()

void EMStudio::BlendTreeVisualNode::Render ( QPainter &  painter,
QPen *  pen,
bool  renderShadow 
)
overridevirtual

Reimplemented from EMStudio::GraphNode.

◆ Sync()

void EMStudio::BlendTreeVisualNode::Sync ( )
overridevirtual

Reimplemented from EMStudio::AnimGraphVisualNode.


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