コード例 #1
0
ファイル: LayerSectionNode.cs プロジェクト: wflk/canape
 /// <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
ファイル: LayerSectionNode.cs プロジェクト: michyer/canape
 /// <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
ファイル: LayerSectionNode.cs プロジェクト: wflk/canape
        /// <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
ファイル: LayerSectionNode.cs プロジェクト: michyer/canape
        /// <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
ファイル: LayerSectionNode.cs プロジェクト: wflk/canape
 public LayerSectionDataAdapter GetOutputAdapter(LayerSectionGraphDirection direction)
 {
     return(direction == LayerSectionGraphDirection.ClientToServer ? _serverAdapter : _clientAdapter);
 }
コード例 #6
0
ファイル: LayerSectionNode.cs プロジェクト: wflk/canape
 public LayerSectionDataAdapter GetInputAdapter(LayerSectionGraphDirection direction)
 {
     return(direction == LayerSectionGraphDirection.ServerToClient ? _serverAdapter : _clientAdapter);
 }
コード例 #7
0
ファイル: LayerSectionNode.cs プロジェクト: michyer/canape
 public LayerSectionDataAdapter GetOutputAdapter(LayerSectionGraphDirection direction)
 {
     return direction == LayerSectionGraphDirection.ClientToServer ? _serverAdapter : _clientAdapter;
 }
コード例 #8
0
ファイル: LayerSectionNode.cs プロジェクト: michyer/canape
 public LayerSectionDataAdapter GetInputAdapter(LayerSectionGraphDirection direction)
 {
     return direction == LayerSectionGraphDirection.ServerToClient ? _serverAdapter : _clientAdapter;
 }