class MAGES::SceneGraph::Editor::ChoiceActionNode¶
Overview¶
Custom node for ChoiceActionData. More…
class ChoiceActionNode: public MAGES::SceneGraph::Editor::BaseActionNode, public MAGES::SceneGraph::Editor::IActionImplementor { public: // methods virtual override void Restore( Func<BaseActionData, GraphElement> lookup, CreateConnectionProc addEdge ); virtual override void OnConnectionCreated( Port thisPort, Port otherPort, GraphElement other ); override void Initialize( Type actionType, BaseActionData data, Action<IActionImplementor, string, string> onNameChanged, string name ); virtual override void OnConnectionRemoved( Port thisPort, Port otherPort, GraphElement other ); };
Inherited Members¶
public: // properties string Identifier; string Title; string Name; bool HasUnsavedChanges; bool Deleted; bool HasAnyIncomingConnections; bool BoundToAsset; SceneGraphView View; Port InActionPort; Port OutActionPort; VisualElement InputContainer; VisualElement OutputContainer; BaseActionData ActionData; SerializedObject SerializedData; System.ActionIActionImplementor>> OnCanonicalInputChanged; string Identifier; bool HasUnsavedChanges; SceneGraphView View; Port InActionPort; Port OutActionPort; string Title; string Name; bool Deleted; VisualElement InputContainer; SerializedObject SerializedData; VisualElement OutputContainer; BaseActionData ActionData; bool HasAnyIncomingConnections; bool BoundToAsset; Action IActionImplementor>> OnCanonicalInputChanged; override bool Deleted; override bool BoundToAsset; string ActionID; string ActionName; override string Name; override BaseActionData ActionData; override SerializedObject SerializedData; override string Identifier; override bool HasUnsavedChanges; override bool HasAnyIncomingConnections; override Action IActionImplementor>> OnCanonicalInputChanged; // methods void Initialize( System.Type actionType, BaseActionData data, System.Action<IActionImplementor, string, string> onNameChanged, string name ); void OnConnectionCreated(Port thisPort, Port otherPort, GraphElement other); void OnConnectionRemoved(Port thisPort, Port otherPort, GraphElement other); void OnRemoved(); void Save(string path); void Restore( Func<BaseActionData, GraphElement> lookup, CreateConnectionProc addEdge ); void SetRuntimeControlsEnalbed( bool enabled, Action performAction, Action undoAction ); void SetPosition(Rect newPosition); BaseNode(); override void SetPosition(Rect newPos); virtual void Initialize( System.Type actionType, BaseActionData data, Action<IActionImplementor, string, string> onNameChanged, string name ); virtual void OnConnectionCreated( Port thisPort, Port otherPort, GraphElement other ); virtual void OnConnectionRemoved( Port thisPort, Port otherPort, GraphElement other ); virtual void OnRemoved(); virtual void Restore( Func<BaseActionData, GraphElement> lookup, CreateConnectionProc addEdge ); virtual void SetRuntimeControlsEnalbed( bool enabled, Action performAction, Action undoAction ); virtual void Save(string path); BaseActionNode(); override void Initialize( Type actionType, BaseActionData data, Action<IActionImplementor, string, string> onNameChanged, string name ); void DisableRuntimeControls(); void EnableRuntimeControls(Action onNext, Action onPrev); virtual override void Save(string path); virtual override void OnConnectionCreated( Port thisPort, Port otherPort, GraphElement other ); virtual override void OnConnectionRemoved( Port thisPort, Port otherPort, GraphElement other ); virtual override void OnRemoved(); virtual override void Restore( Func<BaseActionData, GraphElement> lookup, CreateConnectionProc addEdge ); virtual override void SetRuntimeControlsEnalbed( bool enabled, Action performAction, Action undoAction );
Detailed Documentation¶
Custom node for ChoiceActionData.
Methods¶
virtual override void Restore( Func<BaseActionData, GraphElement> lookup, CreateConnectionProc addEdge )
Restores the node conenctions from a serialized state.
Parameters:
lookup |
The lookup function. |
addEdge |
The add edge function. |
NotImplementedException |
This class should never be instantiated. |
virtual override void OnConnectionCreated( Port thisPort, Port otherPort, GraphElement other )
Called when a connection is created.
Parameters:
thisPort |
The port belonging to this node. |
otherPort |
The port belonging to the other node. |
other |
The other node. |
NotImplementedException |
This class should never be instantiated. |
virtual override void OnConnectionRemoved( Port thisPort, Port otherPort, GraphElement other )
Called when a connection is removed.
Parameters:
thisPort |
The port belonging to this node. |
otherPort |
The port belonging to the other node. |
other |
The other node. |
NotImplementedException |
This class should never be instantiated. |