Esempio n. 1
0
 public LinkedScale(Scale scaleToWrap)
 {
     _linkParameters = new LinkedScaleParameters()
     {
         ParentObject = this
     };
     WrappedScale = scaleToWrap;
 }
Esempio n. 2
0
 public LinkedScale(Scale scaleToWrap, int scaleNumberLinkedTo)
 {
     _linkParameters = new LinkedScaleParameters()
     {
         ParentObject = this
     };
     WrappedScale      = scaleToWrap;
     _linkedScaleIndex = scaleNumberLinkedTo;
 }
Esempio n. 3
0
            protected virtual LinkedScaleParameters SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LinkedScaleParameters s = null != o ? (LinkedScaleParameters)o : new LinkedScaleParameters();

                s._orgA = info.GetDouble("OrgA");
                s._orgB = info.GetDouble("OrgB");
                s._endA = info.GetDouble("EndA");
                s._endB = info.GetDouble("EndB");

                return(s);
            }
Esempio n. 4
0
        protected override System.Collections.Generic.IEnumerable <Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName()
        {
            if (null != _scaleWrapped)
            {
                yield return(new Main.DocumentNodeAndName(_scaleWrapped, () => _scaleWrapped = null, "ScaleWrapped"));
            }

            if (null != _linkParameters)
            {
                yield return(new Main.DocumentNodeAndName(_linkParameters, () => _linkParameters = null, "LinkParameters"));
            }

            if (null != _scaleLinkedToProxy)
            {
                yield return(new Main.DocumentNodeAndName(_scaleLinkedToProxy, () => _scaleLinkedToProxy = null, "ScaleLinkedTo"));
            }
        }
Esempio n. 5
0
		public LinkedScaleParameters(LinkedScaleParameters from)
		{
			CopyFrom(from);
		}
Esempio n. 6
0
		public void SetTo(LinkedScaleParameters from)
		{
			SetTo(from.OrgA, from.OrgB, from.EndA, from.EndB);
		}
Esempio n. 7
0
		protected override System.Collections.Generic.IEnumerable<Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName()
		{
			if (null != _scaleWrapped)
				yield return new Main.DocumentNodeAndName(_scaleWrapped, () => _scaleWrapped = null, "ScaleWrapped");

			if (null != _linkParameters)
				yield return new Main.DocumentNodeAndName(_linkParameters, () => _linkParameters = null, "LinkParameters");

			if (null != _scaleLinkedToProxy)
				yield return new Main.DocumentNodeAndName(_scaleLinkedToProxy, () => _scaleLinkedToProxy = null, "ScaleLinkedTo");
		}
Esempio n. 8
0
		public LinkedScale(Scale scaleToWrap, int scaleNumberLinkedTo)
		{
			_linkParameters = new LinkedScaleParameters() { ParentObject = this };
			WrappedScale = scaleToWrap;
			_linkedScaleIndex = scaleNumberLinkedTo;
		}
Esempio n. 9
0
		public LinkedScale(Scale scaleToWrap)
		{
			_linkParameters = new LinkedScaleParameters() { ParentObject = this };
			WrappedScale = scaleToWrap;
		}
Esempio n. 10
0
 public LinkedScaleParameters(LinkedScaleParameters from)
 {
     CopyFrom(from);
 }
Esempio n. 11
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LinkedScaleParameters s = SDeserialize(o, info, parent);

                return(s);
            }
Esempio n. 12
0
 public void SetTo(LinkedScaleParameters from)
 {
     SetTo(from.OrgA, from.OrgB, from.EndA, from.EndB);
 }