/// <summary> /// Remove the node. Returns true if the node was found and removed. /// </summary> public bool remove(CadKit.Scene.Nodes.Node node) { lock (this.Mutex) { return(this.remove(_nodes.IndexOf(node))); } }
/// <summary> /// Call to render the scene. /// </summary> public void render(CadKit.Scene.Nodes.Node node) { lock (this.Mutex) { if (null != node) { node.accept(this); } } }
/// <summary> /// Append the node. /// </summary> public void append(CadKit.Scene.Nodes.Node node) { lock (this.Mutex) { if (null != node) { _nodes.Add(node); node.reference(); } } }
/// <summary> /// Remove the node specified by the index. Returns true if the node was found and removed. /// </summary> public bool remove(int child) { lock (this.Mutex) { if (child > 0 && child < _nodes.Count) { CadKit.Scene.Nodes.Node node = _nodes[child]; _nodes.RemoveAt(child); CadKit.Referenced.Base.dereference(node); return(true); } return(false); } }
/// <summary> /// Visit this node. /// </summary> public override void visit(CadKit.Scene.Nodes.Node n) { }
/// <summary> /// Visit this node. /// </summary> public virtual void visit(CadKit.Scene.Nodes.Node n) { }