예제 #1
0
 /// <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)));
     }
 }
예제 #2
0
파일: Renderer.cs 프로젝트: perryiv/cadkit
 /// <summary>
 /// Call to render the scene.
 /// </summary>
 public void render(CadKit.Scene.Nodes.Node node)
 {
     lock (this.Mutex)
     {
         if (null != node)
         {
             node.accept(this);
         }
     }
 }
예제 #3
0
 /// <summary>
 /// Append the node.
 /// </summary>
 public void append(CadKit.Scene.Nodes.Node node)
 {
     lock (this.Mutex)
     {
         if (null != node)
         {
             _nodes.Add(node);
             node.reference();
         }
     }
 }
예제 #4
0
 /// <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);
     }
 }
예제 #5
0
파일: Renderer.cs 프로젝트: perryiv/cadkit
 /// <summary>
 /// Visit this node.
 /// </summary>
 public override void visit(CadKit.Scene.Nodes.Node n)
 {
 }
예제 #6
0
파일: Visitor.cs 프로젝트: perryiv/cadkit
 /// <summary>
 /// Visit this node.
 /// </summary>
 public virtual void visit(CadKit.Scene.Nodes.Node n)
 {
 }