protected override IEnumerable <Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName() { if (null != _dataBounds) { yield return(new Main.DocumentNodeAndName(_dataBounds, () => _dataBounds = null, "DataBounds")); } if (null != _rescaling) { yield return(new Main.DocumentNodeAndName(_rescaling, () => _rescaling = null, "Rescaling")); } if (null != _tickSpacing) { yield return(new Main.DocumentNodeAndName(_tickSpacing, () => _tickSpacing = null, "TickSpacing")); } }
protected AngularScale(AngularTickSpacing tickSpacing) { if (null == tickSpacing) { throw new ArgumentNullException("tickSpacing"); } _cachedAxisSpan = 2 * Math.PI; _cachedOneByAxisSpan = 1 / _cachedAxisSpan; _dataBounds = new Boundaries.DummyNumericalBoundaries() { ParentObject = this }; _rescaling = new Rescaling.AngularRescaleConditions() { ParentObject = this }; ChildSetMember(ref _tickSpacing, tickSpacing); SetCachedValues(); UpdateTicksAndOrgEndUsingRescalingObject(); }
protected override IEnumerable<Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName() { if (null != _dataBounds) yield return new Main.DocumentNodeAndName(_dataBounds, () => _dataBounds = null, "DataBounds"); if (null != _rescaling) yield return new Main.DocumentNodeAndName(_rescaling, () => _rescaling = null, "Rescaling"); if (null != _tickSpacing) yield return new Main.DocumentNodeAndName(_tickSpacing, () => _tickSpacing = null, "TickSpacing"); }
protected AngularScale(AngularTickSpacing tickSpacing) { if (null == tickSpacing) throw new ArgumentNullException("tickSpacing"); _cachedAxisSpan = 2 * Math.PI; _cachedOneByAxisSpan = 1 / _cachedAxisSpan; _dataBounds = new Boundaries.DummyNumericalBoundaries() { ParentObject = this }; _rescaling = new Rescaling.AngularRescaleConditions() { ParentObject = this }; ChildSetMember(ref _tickSpacing, tickSpacing); SetCachedValues(); UpdateTicksAndOrgEndUsingRescalingObject(); }