Пример #1
0
        public override object Clone()
        {
            G2DPolarCoordinateSystem result = new G2DPolarCoordinateSystem();

            result.CopyFrom(this);
            return(result);
        }
Пример #2
0
            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);
            }
Пример #3
0
            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);
            }
Пример #4
0
        /// <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;
            }
        }
Пример #5
0
            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);
 }