/// <summary> /// Copy constructor. /// </summary> /// <param name="from">The axis to copy from.</param> public Log10Scale(Log10Scale from) { IsLinked = from.IsLinked; _dataBounds = null == from._dataBounds ? new PositiveFiniteNumericalBoundaries() { ParentObject = this } : (NumericalBoundaries)from._dataBounds.Clone(); _dataBounds.ParentObject = this; _decadesPerMajorTick = from._decadesPerMajorTick; _log10End = from._log10End; _log10Org = from._log10Org; _rescaling = null == from.Rescaling ? new LogarithmicScaleRescaleConditions() { ParentObject = this } : (LogarithmicScaleRescaleConditions)from.Rescaling.Clone(); _rescaling.ParentObject = this; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { Log10Scale s = null != o ? (Log10Scale)o : new Log10Scale(); s._log10Org = info.GetDouble("Log10Org"); s._log10End = info.GetDouble("Log10End"); s._decadesPerMajorTick = info.GetInt32("DecadesPerMajor"); // s.m_AxisOrgFixed = (bool)info.GetBoolean("OrgFixed"); // s.m_AxisEndFixed = (bool)info.GetBoolean("EndFixed"); s._dataBounds = (PositiveFiniteNumericalBoundaries)info.GetValue("Bounds", s); s._dataBounds.ParentObject = s; // new in version 1 s._rescaling = (LogarithmicScaleRescaleConditions)info.GetValue("Rescaling", s); return(s); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { Log10Scale s = null != o ? (Log10Scale)o : new Log10Scale(); s._log10Org = info.GetDouble("Log10Org"); s._log10End = info.GetDouble("Log10End"); s._decadesPerMajorTick = info.GetInt32("DecadesPerMajor"); bool AxisOrgFixed = info.GetBoolean("OrgFixed"); bool AxisEndFixed = info.GetBoolean("EndFixed"); s._dataBounds = (PositiveFiniteNumericalBoundaries)info.GetValue("Bounds", s); s._dataBounds.ParentObject = s; s._rescaling = new LogarithmicScaleRescaleConditions() { ParentObject = s }; s._rescaling.SetUserParameters(AxisOrgFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.Org, AxisEndFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.End); return(s); }
/// <summary> /// Copy constructor. /// </summary> /// <param name="from">The axis to copy from.</param> public Log10Scale(Log10Scale from) { this.IsLinked = from.IsLinked; this._dataBounds = null == from._dataBounds ? new PositiveFiniteNumericalBoundaries() { ParentObject = this } : (NumericalBoundaries)from._dataBounds.Clone(); this._dataBounds.ParentObject = this; this._decadesPerMajorTick = from._decadesPerMajorTick; this._log10End = from._log10End; this._log10Org = from._log10Org; this._rescaling = null == from.Rescaling ? new LogarithmicScaleRescaleConditions() { ParentObject = this } : (LogarithmicScaleRescaleConditions)from.Rescaling.Clone(); this._rescaling.ParentObject = this; }