// ---------------------------------------------------------------------- public void Reset() { // Common ObjectType = VSObjectType.Unknown; NodeSpec = NodeSpecification.Default; PortSpec = PortSpecification.Default; InstanceId = -1; ParentId = -1; QualifiedType = ""; RawName = ""; LocalAnchorPosition = Vector2.zero; LayoutPriority = 0; DisplayOption = iCS_DisplayOptionEnum.Unfolded; // Node MethodName = null; NbOfParams = 0; IconGUID = null; Description = null; // Port Edge = NodeEdge.None; SourceId = -1; PortIndex = -1; InitialValueArchive = null; // State IsEntryState = false; }
// =================================================================== /// Sets the port specififcation. /// /// @param vsObject An object that is part of the connection. /// @param portSpec The new port specification. /// public static void SetPortSpec(iCS_EditorObject vsObject, PortSpecification portSpec) { var allConnectedPorts = GraphInfo.GetAllConnectedPorts(vsObject); foreach (var p in allConnectedPorts) { if (p.IsEnablePort) { p.PortSpec = PortSpecification.Enable; } else { p.PortSpec = portSpec; } AdjustPortIndexes(p.ParentNode); } }
// =================================================================== /// Sets the port specififcation. /// /// @param portSpec The new port specification. /// protected void SetPortSpec(PortSpecification portSpec) { GraphEditor.SetPortSpec(vsObject, portSpec); }