/// <summary> /// Constructor /// </summary> /// <param name="filters">List of filters used to determine when to create new graph</param> /// <param name="defaultMode">Default mode of the layer section</param> /// <param name="direction">The direction of the node</param> public LayerSectionNode(LayerSectionFilter[] filters, LayerSectionNodeDefaultMode defaultMode, LayerSectionGraphDirection direction) { _filters = filters; _defaultMode = defaultMode; _graphEntries = new Dictionary <string, GraphEntry>(); _direction = direction; IsMaster = true; }
/// <summary> /// Constructor /// </summary> /// <param name="filters">List of filters used to determine when to create new graph</param> /// <param name="defaultMode">Default mode of the layer section</param> /// <param name="direction">The direction of the node</param> public LayerSectionNode(LayerSectionFilter[] filters, LayerSectionNodeDefaultMode defaultMode, LayerSectionGraphDirection direction) { _filters = filters; _defaultMode = defaultMode; _graphEntries = new Dictionary<string, GraphEntry>(); _direction = direction; IsMaster = true; }
/// <summary> /// Linked constructor /// </summary> /// <param name="linkedNode">The linked node</param> public LayerSectionNode(LayerSectionNode linkedNode) { _filters = linkedNode._filters; _graphEntries = linkedNode._graphEntries; if (linkedNode._direction == LayerSectionGraphDirection.ClientToServer) { _direction = LayerSectionGraphDirection.ServerToClient; } else { _direction = LayerSectionGraphDirection.ClientToServer; } _linkedNode = linkedNode; _linkedNode._linkedNode = this; IsMaster = false; }
public LayerSectionDataAdapter GetOutputAdapter(LayerSectionGraphDirection direction) { return(direction == LayerSectionGraphDirection.ClientToServer ? _serverAdapter : _clientAdapter); }
public LayerSectionDataAdapter GetInputAdapter(LayerSectionGraphDirection direction) { return(direction == LayerSectionGraphDirection.ServerToClient ? _serverAdapter : _clientAdapter); }
public LayerSectionDataAdapter GetOutputAdapter(LayerSectionGraphDirection direction) { return direction == LayerSectionGraphDirection.ClientToServer ? _serverAdapter : _clientAdapter; }
public LayerSectionDataAdapter GetInputAdapter(LayerSectionGraphDirection direction) { return direction == LayerSectionGraphDirection.ServerToClient ? _serverAdapter : _clientAdapter; }