Esempio n. 1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                AngularScale s = SDeserialize(o, info, parent);

                OnAfterDeserialization(s);
                return(s);
            }
Esempio n. 2
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                AngularScale s = (AngularScale)obj;


                info.AddValue("UseDegree", s._useDegree);
                info.AddValue("MajorTickDiv", s._majorTickDivider);
                info.AddValue("MinorTickDiv", s._minorTickDivider);
                info.AddValue("Org90", s._scaleOrigin);
                info.AddValue("PosNegAngles", s._usePositiveNegativeAngles);
            }
Esempio n. 3
0
 public AngularScale(AngularScale from)
 {
     this._useDegree                 = from._useDegree;
     this._majorTickDivider          = from._majorTickDivider;
     this._minorTickDivider          = from._minorTickDivider;
     this._scaleOrigin               = from._scaleOrigin;
     this._usePositiveNegativeAngles = from._usePositiveNegativeAngles;
     this._cachedAxisOrg             = from._cachedAxisOrg;
     this._cachedAxisSpan            = from._cachedAxisSpan;
     this._cachedOneByAxisSpan       = from._cachedOneByAxisSpan;
 }
Esempio n. 4
0
            protected virtual AngularScale SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                AngularScale s = null != o ? (AngularScale)o : new AngularScale();

                s._useDegree                 = info.GetBoolean("UseDegree");
                s._majorTickDivider          = info.GetInt32("MajorTickDiv");
                s._minorTickDivider          = info.GetInt32("MinorTickDiv");
                s._scaleOrigin               = info.GetInt32("Org90");
                s._usePositiveNegativeAngles = info.GetBoolean("PosNegAngles");
                // set cached values is called by the enclosing function
                return(s);
            }
Esempio n. 5
0
		public AngularScale(AngularScale from)
		{
			CopyFrom(from);
		}
Esempio n. 6
0
 protected virtual void OnAfterDeserialization(AngularScale s)
 {
     s.SetCachedValues();
 }
Esempio n. 7
0
 protected virtual void OnAfterDeserialization(AngularScale s)
 {
   s.SetCachedValues();
 }
Esempio n. 8
0
 public AngularScale(AngularScale from)
 {
   this._useDegree = from._useDegree;
   this._majorTickDivider = from._majorTickDivider;
   this._minorTickDivider = from._minorTickDivider;
   this._scaleOrigin = from._scaleOrigin;
   this._usePositiveNegativeAngles = from._usePositiveNegativeAngles;
   this._cachedAxisOrg = from._cachedAxisOrg;
   this._cachedAxisSpan = from._cachedAxisSpan;
   this._cachedOneByAxisSpan = from._cachedOneByAxisSpan;
 }
Esempio n. 9
0
 public AngularScale(AngularScale from)
 {
     CopyFrom(from);
 }