|
Open 3D Engine ScriptCanvas Gem API Reference
23.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Graph is the execution model of a ScriptCanvas graph. More...
#include <Graph.h>
Inherits Component, Handler, Handler, Handler, and Handler.
Inherited by ScriptCanvasEditor::EditorGraph.
Public Member Functions | |
| AZ_COMPONENT (Graph,"{C3267D77-EEDC-490E-9E42-F1D1F473E184}") | |
| Graph (const ScriptCanvasId &executionId=AZ::Entity::MakeId()) | |
| void | Init () override |
| void | Activate () override |
| void | Deactivate () override |
| const AZStd::vector< AZ::EntityId > | GetNodesConst () const |
|
AZStd::unordered_set < AZ::Entity * > & | GetNodeEntities () |
|
const AZStd::unordered_set < AZ::Entity * > & | GetNodeEntities () const |
|
const ScriptCanvas::ScriptCanvasId & | GetScriptCanvasId () const |
| void | MarkVersion () |
| const VersionData & | GetVersion () const |
| bool | HasDeprecatedNode () const |
| void | Parse (ValidationResults &validationResults) |
| bool | AddNode (const AZ::EntityId &) override |
| bool | RemoveNode (const AZ::EntityId &nodeId) override |
| Node * | FindNode (AZ::EntityId nodeID) const override |
| AZStd::vector< AZ::EntityId > | GetNodes () const override |
| Slot * | FindSlot (const Endpoint &endpoint) const override |
| bool | AddConnection (const AZ::EntityId &) override |
| void | RemoveAllConnections () |
| bool | RemoveConnection (const AZ::EntityId &connectionId) override |
| AZStd::vector< AZ::EntityId > | GetConnections () const override |
| AZStd::vector< Endpoint > | GetConnectedEndpoints (const Endpoint &firstEndpoint) const override |
|
AZStd::pair < EndpointMapConstIterator, EndpointMapConstIterator > | GetConnectedEndpointIterators (const Endpoint &endpoint) const override |
| bool | IsEndpointConnected (const Endpoint &endpoint) const override |
| bool | FindConnection (AZ::Entity *&connectionEntity, const Endpoint &firstEndpoint, const Endpoint &otherEndpoint) const override |
| bool | Connect (const AZ::EntityId &sourceNodeId, const SlotId &sourceSlotId, const AZ::EntityId &targetNodeId, const SlotId &targetSlotId) override |
| bool | Disconnect (const AZ::EntityId &sourceNodeId, const SlotId &sourceSlotId, const AZ::EntityId &targetNodeId, const SlotId &targetSlotId) override |
| bool | ConnectByEndpoint (const Endpoint &sourceEndpoint, const Endpoint &targetEndpoint) override |
| AZ::Outcome< void, AZStd::string > | CanCreateConnectionBetween (const Endpoint &sourceEndpoint, const Endpoint &targetEndpoint) const override |
| AZ::Outcome< void, AZStd::string > | CanConnectionExistBetween (const Endpoint &sourceEndpoint, const Endpoint &targetEndpoint) const override |
| bool | DisconnectByEndpoint (const Endpoint &sourceEndpoint, const Endpoint &targetEndpoint) override |
| bool | DisconnectById (const AZ::EntityId &connectionId) override |
| bool | AddDependentAsset (AZ::EntityId nodeId, const AZ::TypeId assetType, const AZ::Data::AssetId assetId) override |
| bool | RemoveDependentAsset (AZ::EntityId nodeId) override |
| AZ::Entity * | GetGraphEntity () const override |
| Graph * | GetGraph () override |
| GraphData * | GetGraphData () override |
| const GraphData * | GetGraphDataConst () const override |
| VariableData * | GetVariableData () override |
| const VariableData * | GetVariableDataConst () const override |
| bool | AddGraphData (const GraphData &) override |
| void | RemoveGraphData (const GraphData &) override |
| bool | IsBatchAddingGraphData () const override |
|
AZStd::unordered_set < AZ::Entity * > | CopyItems (const AZStd::unordered_set< AZ::Entity * > &entities) override |
| void | AddItems (const AZStd::unordered_set< AZ::Entity * > &graphField) override |
| void | RemoveItems (const AZStd::unordered_set< AZ::Entity * > &graphField) override |
| void | RemoveItems (const AZStd::vector< AZ::Entity * > &graphField) |
|
AZStd::unordered_set < AZ::Entity * > | GetItems () const override |
| bool | AddItem (AZ::Entity *itemRef) override |
| bool | RemoveItem (AZ::Entity *itemRef) override |
| void | ValidateGraph (ValidationResults &validationEvents) override |
| void | ReportValidationResults (ValidationResults &) override |
|
AZStd::pair < ScriptCanvas::ScriptCanvasId, ValidationResults > | GetValidationResults () override |
| virtual void | ReportError (const Node &node, const AZStd::string &errorSource, const AZStd::string &errorMessage) |
| template<typename NodeType > | |
| AZStd::vector< const NodeType * > | GetNodesOfType () const |
| void | MarkOwnership (ScriptCanvas::ScriptCanvasData &owner) |
| ScriptCanvas::DataPtr | GetOwnership () const |
| void | ClearScriptEventExtension () |
| bool | IsScriptEventExtension () const |
| void | MarkScriptEventExtension () |
Static Public Member Functions | |
| static void | Reflect (AZ::ReflectContext *context) |
Public Attributes | |
| friend | Node |
Protected Member Functions | |
| void | PostActivate () |
| void | ValidateVariables (ValidationResults &validationResults) |
| void | ValidateScriptEvents (ValidationResults &validationResults) |
| bool | ValidateConnectionEndpoints (const AZ::EntityId &connectionRef, const AZStd::unordered_set< AZ::EntityId > &nodeRefs) |
|
AZ::Outcome< void, AZStd::vector < ValidationStruct > > | ValidateNode (AZ::Entity *nodeEntity, ValidationResults &validationEvents) const |
|
AZ::Outcome< void, ValidationStruct > | ValidateConnection (AZ::Entity *connection) const |
| bool | IsInDataFlowPath (const Node *sourceNode, const Node *targetNode) const |
| void | RefreshConnectionValidity (bool warnOnRemoval=false) |
| AZ::Data::AssetId | GetAssetId () const override |
| GraphIdentifier | GetGraphIdentifier () const override |
| AZStd::string | GetAssetName () const override |
| AZ::EntityId | GetRuntimeEntityId () const override |
| VariableId | FindAssetVariableIdByRuntimeVariableId (VariableId runtimeId) const override |
| AZ::EntityId | FindAssetNodeIdByRuntimeNodeId (AZ::EntityId editorNode) const override |
| AZ::EntityId | FindRuntimeNodeIdByAssetNodeId (AZ::EntityId runtimeNode) const override |
| void | RefreshVariableReferences (const VariableId &) override |
| const GraphVariableMapping * | GetVariables () const override |
| GraphVariable * | FindVariable (AZStd::string_view propName) override |
| GraphVariable * | FindVariableById (const VariableId &variableId) override |
| Data::Type | GetVariableType (const VariableId &variableId) const |
| AZStd::string_view | GetVariableName (const VariableId &variableId) const |
| bool | IsGraphObserved () const override |
| void | SetIsGraphObserved (bool isObserved) override |
|
const AZStd::unordered_map < AZ::EntityId, Node * > & | GetNodeMapping () const |
| void | VersioningRemoveSlot (ScriptCanvas::Node &scriptCanvasNode, const SlotId &slotId) |
Protected Attributes | |
| GraphData | m_graphData |
| AZ::Data::AssetType | m_assetType |
| ScriptCanvas::ScriptCanvasData * | m_owner |
Graph is the execution model of a ScriptCanvas graph.
|
inlineoverride |