Пример #1
0
        private ShapeNode NewNode(ShapeNode parent)
        {
            var node = new ShapeNode(this.NextNodeId(), parent)
            {
                Value = new ShapeNodeValue
                {
                    Transform = new SimpleTransform(this.CurrentScope.Transform)
                }
            };

            return(node);
        }
Пример #2
0
 private void AddNode(ShapeNode node)
 {
     if (this.Tree == null)
     {
         this.Tree = new TreeGraph(node);
     }
     else
     {
         if (this.currentNode != node.Parent)
         {
             throw new InvalidOperationException("The parent of the node is not the current node");
         }
         this.Tree.AddDirectedEdge(this.currentNode, node);
     }
 }
Пример #3
0
 public ShapeNode(string id, ShapeNode parent)
     : base(id, parent)
 {
 }