public override object Clone() { G2DPolarCoordinateSystem result = new G2DPolarCoordinateSystem(); result.CopyFrom(this); return(result); }
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { G2DPolarCoordinateSystem s = (G2DPolarCoordinateSystem)obj; info.AddValue("Rotation", 0.0); info.AddValue("XYInterchanged", s._isXYInterchanged); info.AddValue("XReverse", s._isXreverse); info.AddValue("YReverse", s._isYreverse); }
protected virtual G2DPolarCoordinateSystem SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { G2DPolarCoordinateSystem s = (o == null ? new G2DPolarCoordinateSystem() : (G2DPolarCoordinateSystem)o); double rotation = info.GetDouble("Rotation"); s._isXYInterchanged = info.GetBoolean("XYInterchanged"); s._isXreverse = info.GetBoolean("XReverse"); s._isYreverse = info.GetBoolean("YReverse"); return(s); }
/// <summary> /// Copies the member variables from another coordinate system. /// </summary> /// <param name="fromb">The coordinate system to copy from.</param> public override void CopyFrom(G2DCoordinateSystem fromb) { base.CopyFrom(fromb); if (fromb is G2DPolarCoordinateSystem) { G2DPolarCoordinateSystem from = (G2DPolarCoordinateSystem)fromb; this._isXYInterchanged = from._isXYInterchanged; this._isXreverse = from._isXreverse; this._isYreverse = from._isYreverse; this._radius = from._radius; this._midX = from._midX; this._midY = from._midY; } }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { G2DPolarCoordinateSystem s = SDeserialize(o, info, parent); return(s); }
public override object Clone() { G2DPolarCoordinateSystem result = new G2DPolarCoordinateSystem(); result.CopyFrom(this); return result; }
public G2DPolarCSController(G2DPolarCoordinateSystem doc) { _doc = doc; Initialize(true); }