/// <summary> /// Push the renderer. /// </summary> public void push(CadKit.Scene.Visitors.Renderer r) { lock (this.Mutex) { _renderers.Push(r); CadKit.Referenced.Base.reference(r); } }
/// <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); } } }
/// <summary> /// Constructor /// </summary> protected Viewer(CadKit.Scene.Visitors.Renderer renderer) : base() { this.push(renderer); }