예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
        /// <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;
        }
예제 #4
0
        /// <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;
        }
예제 #5
0
 public LayerSectionDataAdapter GetOutputAdapter(LayerSectionGraphDirection direction)
 {
     return(direction == LayerSectionGraphDirection.ClientToServer ? _serverAdapter : _clientAdapter);
 }
예제 #6
0
 public LayerSectionDataAdapter GetInputAdapter(LayerSectionGraphDirection direction)
 {
     return(direction == LayerSectionGraphDirection.ServerToClient ? _serverAdapter : _clientAdapter);
 }
예제 #7
0
 public LayerSectionDataAdapter GetOutputAdapter(LayerSectionGraphDirection direction)
 {
     return direction == LayerSectionGraphDirection.ClientToServer ? _serverAdapter : _clientAdapter;
 }
예제 #8
0
 public LayerSectionDataAdapter GetInputAdapter(LayerSectionGraphDirection direction)
 {
     return direction == LayerSectionGraphDirection.ServerToClient ? _serverAdapter : _clientAdapter;
 }