示例#1
0
 /// <summary>
 /// Push the renderer.
 /// </summary>
 public void push(CadKit.Scene.Visitors.Renderer r)
 {
     lock (this.Mutex)
     {
         _renderers.Push(r);
         CadKit.Referenced.Base.reference(r);
     }
 }
示例#2
0
 /// <summary>
 /// Pop the renderer.
 /// </summary>
 public void pop()
 {
     lock (this.Mutex)
     {
         if (_renderers.Count > 0)
         {
             CadKit.Scene.Visitors.Renderer r = _renderers.Pop();
             CadKit.Referenced.Base.dereference(r);
         }
     }
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 protected Viewer(CadKit.Scene.Visitors.Renderer renderer)
     : base()
 {
     this.push(renderer);
 }