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

                OnAfterDeserialization(s);
                return(s);
            }
예제 #2
0
 public AngularScale(AngularScale from)
 {
     _useDegree                 = from._useDegree;
     _majorTickDivider          = from._majorTickDivider;
     _minorTickDivider          = from._minorTickDivider;
     _scaleOrigin               = from._scaleOrigin;
     _usePositiveNegativeAngles = from._usePositiveNegativeAngles;
     _cachedAxisOrg             = from._cachedAxisOrg;
     _cachedAxisSpan            = from._cachedAxisSpan;
     _cachedOneByAxisSpan       = from._cachedOneByAxisSpan;
 }
예제 #3
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);
            }
예제 #4
0
 protected virtual void OnAfterDeserialization(AngularScale s)
 {
     s.SetCachedValues();
 }
예제 #5
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;
		}
예제 #6
0
			protected virtual void OnAfterDeserialization(AngularScale s)
			{
				s.SetCachedValues();
			}