Exemple #1
0
 public LinkedScale(Scale scaleToWrap)
 {
     _linkParameters = new LinkedScaleParameters()
     {
         ParentObject = this
     };
     WrappedScale = scaleToWrap;
 }
Exemple #2
0
 public LinkedScale(Scale scaleToWrap, int scaleNumberLinkedTo)
 {
     _linkParameters = new LinkedScaleParameters()
     {
         ParentObject = this
     };
     WrappedScale      = scaleToWrap;
     _linkedScaleIndex = scaleNumberLinkedTo;
 }
            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);
            }
Exemple #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"));
            }
        }
		public LinkedScaleParameters(LinkedScaleParameters from)
		{
			CopyFrom(from);
		}
		public void SetTo(LinkedScaleParameters from)
		{
			SetTo(from.OrgA, from.OrgB, from.EndA, from.EndB);
		}
Exemple #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");
		}
Exemple #8
0
		public LinkedScale(Scale scaleToWrap, int scaleNumberLinkedTo)
		{
			_linkParameters = new LinkedScaleParameters() { ParentObject = this };
			WrappedScale = scaleToWrap;
			_linkedScaleIndex = scaleNumberLinkedTo;
		}
Exemple #9
0
		public LinkedScale(Scale scaleToWrap)
		{
			_linkParameters = new LinkedScaleParameters() { ParentObject = this };
			WrappedScale = scaleToWrap;
		}
 public LinkedScaleParameters(LinkedScaleParameters from)
 {
     CopyFrom(from);
 }
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LinkedScaleParameters s = SDeserialize(o, info, parent);

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