private ShapeNode NewNode(ShapeNode parent) { var node = new ShapeNode(this.NextNodeId(), parent) { Value = new ShapeNodeValue { Transform = new SimpleTransform(this.CurrentScope.Transform) } }; return(node); }
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); } }
public ShapeNode(string id, ShapeNode parent) : base(id, parent) { }