Inherits QObject.
|
| NodeGraph (const QModelIndex &modelIndex, NodeGraphWidget *graphWidget=nullptr) |
|
const QModelIndex & | GetModelIndex () const |
|
AZStd::vector< GraphNode * > | GetSelectedGraphNodes () const |
|
AZStd::vector< EMotionFX::AnimGraphNode * > | GetSelectedAnimGraphNodes () const |
|
AZStd::vector< NodeConnection * > | GetSelectedNodeConnections () const |
|
bool | IsInReferencedGraph () const |
|
const QTransform & | GetTransform () const |
|
float | GetScale () const |
|
void | SetScale (float scale) |
|
const QPoint & | GetScrollOffset () const |
|
void | SetScrollOffset (const QPoint &offset) |
|
void | SetScalePivot (const QPoint &pivot) |
|
float | GetLowestScale () const |
|
bool | GetIsCreatingConnection () const |
|
bool | GetIsRelinkingConnection () const |
|
void | SetCreateConnectionIsValid (bool isValid) |
|
bool | GetIsCreateConnectionValid () const |
|
void | SetTargetPort (NodePort *port) |
|
NodePort * | GetTargetPort () |
|
float | GetDashOffset () const |
|
QColor | GetErrorBlinkColor () const |
|
bool | GetIsRepositioningTransitionHead () const |
|
bool | GetIsRepositioningTransitionTail () const |
|
NodeConnection * | GetRepositionedTransitionHead () const |
|
NodeConnection * | GetRepositionedTransitionTail () const |
|
void | StartReplaceTransitionHead (NodeConnection *connection, QPoint startOffset, QPoint endOffset, GraphNode *sourceNode, GraphNode *targetNode) |
|
void | StartReplaceTransitionTail (NodeConnection *connection, QPoint startOffset, QPoint endOffset, GraphNode *sourceNode, GraphNode *targetNode) |
|
void | GetReplaceTransitionInfo (NodeConnection **outConnection, QPoint *outOldStartOffset, QPoint *outOldEndOffset, GraphNode **outOldSourceNode, GraphNode **outOldTargetNode) |
|
void | StopReplaceTransitionHead () |
|
void | StopReplaceTransitionTail () |
|
void | SetReplaceTransitionValid (bool isValid) |
|
bool | GetReplaceTransitionValid () const |
|
void | RenderReplaceTransition (QPainter &painter) |
|
GraphNode * | GetCreateConnectionNode () const |
|
NodeConnection * | GetRelinkConnection () |
|
AZ::u16 | GetCreateConnectionPortNr () const |
|
bool | GetCreateConnectionIsInputPort () const |
|
const QPoint & | GetCreateConnectionStartOffset () const |
|
const QPoint & | GetCreateConnectionEndOffset () const |
|
void | SetCreateConnectionEndOffset (const QPoint &offset) |
|
bool | CheckIfHasConnection (GraphNode *sourceNode, AZ::u16 outputPortNr, GraphNode *targetNode, AZ::u16 inputPortNr) const |
|
NodeConnection * | FindInputConnection (GraphNode *targetNode, AZ::u16 targetPortNr) const |
|
NodeConnection * | FindConnection (const QPoint &mousePos) |
|
void | SelectAllNodes () |
|
void | UnselectAllNodes () |
|
size_t | CalcNumSelectedNodes () const |
|
GraphNode * | FindNode (const QPoint &globalPoint) |
|
void | StartCreateConnection (AZ::u16 portNr, bool isInputPort, GraphNode *portNode, NodePort *port, const QPoint &startOffset) |
|
void | StartRelinkConnection (NodeConnection *connection, AZ::u16 portNr, GraphNode *node) |
|
void | StopCreateConnection () |
|
void | StopRelinkConnection () |
|
void | UpdateHighlightConnectionFlags (const QPoint &mousePos) |
|
virtual void | RenderBackground (QPainter &painter, int32 width, int32 height) |
|
virtual void | Render (const QItemSelectionModel &selectionModel, QPainter &painter, int32 width, int32 height, const QPoint &mousePos, float timePassedInSeconds) |
|
virtual void | RenderCreateConnection (QPainter &painter) |
|
void | UpdateNodesAndConnections (int32 width, int32 height, const QPoint &mousePos) |
|
void | SelectNodesInRect (const QRect &rect, bool overwriteCurSelection=true, bool toggleMode=false) |
|
void | SelectConnectionCloseTo (const QPoint &point, bool overwriteCurSelection=true, bool toggle=false) |
|
QRect | CalcRectFromSelection (bool includeConnections=true) const |
|
QRect | CalcRectFromGraph () const |
|
NodePort * | FindPort (int32 x, int32 y, GraphNode **outNode, AZ::u16 *outPortNr, bool *outIsInputPort, bool includeInputPorts=true) |
|
EMotionFX::AnimGraphNodeGroup * | FindNodeGroup (const QPoint &globalPoint) const |
|
bool | CheckInsideNodeGroupTitleRect (const EMotionFX::AnimGraphNodeGroup *nodeGroup, const QPoint &globalPoint) const |
|
void | EnableNameEditForNodeGroup (EMotionFX::AnimGraphNodeGroup *nodeGroup) |
|
void | DisableNameEditForNodeGroup () |
|
void | RemoveNodeGroup (EMotionFX::AnimGraphNodeGroup *nodeGroup) |
|
void | SetEntryNode (GraphNode *entryNode) |
|
void | FitGraphOnScreen (int32 width, int32 height, const QPoint &mousePos, bool animate=true) |
|
void | ScrollTo (const QPointF &point) |
|
void | ZoomIn () |
|
void | ZoomOut () |
|
void | ZoomTo (float scale) |
|
void | ZoomOnRect (const QRect &rect, int32 width, int32 height, bool animate=true) |
|
void | StopAnimatedZoom () |
|
void | StopAnimatedScroll () |
|
void | DrawOverlay (QPainter &painter) |
|
bool | GetUseAnimation () const |
|
void | SetUseAnimation (bool useAnim) |
|
void | OnRowsAboutToBeRemoved (const QModelIndexList &modelIndexes) |
|
void | OnRowsInserted (const QModelIndexList &modelIndexes) |
|
void | OnDataChanged (const QModelIndex &modelIndex, const QVector< int > &roles) |
|
void | Reinit () |
|
GraphNode * | FindGraphNode (const QModelIndex &modelIndex) |
|
GraphNode * | FindGraphNode (const EMotionFX::AnimGraphNode *node) |
|
const GraphNode * | FindGraphNode (const EMotionFX::AnimGraphNode *node) const |
|
StateConnection * | FindStateConnection (const QModelIndex &modelIndex) |
|
NodeConnection * | FindNodeConnection (const QModelIndex &modelIndex) |
|
void | UpdateVisualGraphFlags () |
|
void | RecursiveSetOpacity (EMotionFX::AnimGraphNode *startNode, float opacity) |
|
AnimGraphModel & | GetAnimGraphModel () const |
|
|
static void | RenderEntryPoint (QPainter &painter, GraphNode *node) |
|
static void | DrawSmoothedLineFast (QPainter &painter, int32 x1, int32 y1, int32 x2, int32 y2, int32 stepSize) |
|
static float | DistanceToLine (float x1, float y1, float x2, float y2, float px, float py) |
|
static bool | LinesIntersect (double Ax, double Ay, double Bx, double By, double Cx, double Cy, double Dx, double Dy, double *X, double *Y) |
|
static bool | LineIntersectsRect (const QRect &b, float x1, float y1, float x2, float y2, double *outX=nullptr, double *outY=nullptr) |
|
static bool | CheckIfIsRelinkConnectionValid (NodeConnection *connection, GraphNode *newTargetNode, AZ::u16 newTargetPortNr, bool isTargetInput) |
|